Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] release (beta) #7952

Merged
merged 1 commit into from
Aug 11, 2023
Merged

[ci] release (beta) #7952

merged 1 commit into from
Aug 11, 2023

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Aug 4, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

next is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on next.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

astro@3.0.0-beta.1

Major Changes

  • #7952 3c3100851 Thanks @astrobot-houston! - Remove support for Astro.__renderMarkdown which is used by @astrojs/markdown-component.

    The <Markdown /> component was deprecated in Astro v1 and is completely removed in v3. This integration must now be removed from your project.

    As an alternative, you can use community packages that provide a similar component like https://github.com/natemoo-re/astro-remote instead.

  • #8019 34cb20021 Thanks @bluwy! - Remove backwards-compatible kebab-case transform for camelCase CSS variable names passed to the style attribute. If you were relying on the kebab-case transform in your styles, make sure to use the camelCase version to prevent missing styles. For example:

    ---
    const myValue = 'red';
    ---
    
    <!-- input -->
    <div style={{ '--myValue': myValue }}></div>
    
    <!-- output (before) -->
    <div style="--my-value:var(--myValue);--myValue:red"></div>
    
    <!-- output (after) -->
    <div style="--myValue:red"></div>
    <style>
      div {
    -   color: var(--my-value);
    +   color: var(--myValue);
      }
    </style>
  • #7893 7bd1b86f8 Thanks @ematipico! - Implements a new scope style strategy called "attribute". When enabled, styles are applied using data-* attributes.

    The default value of scopedStyleStrategy is "attribute".

    If you want to use the previous behaviour, you have to use the "where" option:

    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
    +    scopedStyleStrategy: 'where',
    });
  • #7924 519a1c4e8 Thanks @matthewp! - Astro's JSX handling has been refactored with better support for each framework.

    Previously, Astro automatically scanned your components to determine which framework-specific transformations should be used. In practice, supporting advanced features like Fast Refresh with this approach proved difficult.

    Now, Astro determines which framework to use with include and exclude config options where you can specify files and folders on a per-framework basis. When using multiple JSX frameworks in the same project, users should manually control which files belong to each framework using the include and exclude options.

    export default defineConfig({
      // The `include` config is only needed in projects that use multiple JSX frameworks;
      // if only using one no extra config is needed.
      integrations: [
        preact({
          include: ['**/preact/*'],
        }),
        react({
          include: ['**/react/*'],
        }),
        solid({
          include: ['**/solid/*'],
        }),
      ],
    });
  • #7878 0f637c71e Thanks @bluwy! - The value of import.meta.env.BASE_URL, which is derived from the base option, will no longer have a trailing slash added by default or when trailingSlash: "ignore" is set. The existing behavior of base in combination with trailingSlash: "always" or trailingSlash: "never" is unchanged.

    If your base already has a trailing slash, no change is needed.

    If your base does not have a trailing slash, add one to preserve the previous behaviour:

    // astro.config.mjs
    - base: 'my-base',
    + base: 'my-base/',

Minor Changes

  • #8012 866ed4098 Thanks @ematipico! - Add a new astro/errors module. Developers can import AstroUserError, and provide a message and an optional hint

Patch Changes

@astrojs/netlify@3.0.0-beta.1

Major Changes

  • #8029 2ee418e06 Thanks @matthewp! - Remove the Netlify Edge adapter

    @astrojs/netlify/functions now supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    - import netlify from '@astrojs/netlify/edge';
    + import netlify from '@astrojs/netlify/functions';
    
    export default defineConfig({
     output: 'server',
     adapter: netlify({
    +    edgeMiddleware: true
     }),
    });

    This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter.

Patch Changes

@astrojs/preact@3.0.0-beta.1

Major Changes

  • #7924 519a1c4e8 Thanks @matthewp! - New include and exclude config options

    The Preact integration now has new include and exclude config options. Use these if you want to use Preact alongside another JSX framework; include specifies files to be compiled for Preact and exclude does the opposite.

@astrojs/react@3.0.0-beta.1

Major Changes

  • #7924 519a1c4e8 Thanks @matthewp! - Support for React Refresh

    The React integration now fully supports React Refresh and is backed by @vitejs/plugin-react.

    Also included in this change are new include and exclude config options. Use these if you want to use React alongside another JSX framework; include specifies files to be compiled for React and exclude does the opposite.

@astrojs/solid-js@3.0.0-beta.1

Major Changes

  • #7924 519a1c4e8 Thanks @matthewp! - New include and exclude config options

    The Solid integration now has new include and exclude config options. Use these if you want to use Solid alongside another JSX framework; include specifies files to be compiled for Solid and exclude does the opposite.

@astrojs/vercel@4.0.0-beta.1

Major Changes

  • #8015 9cc4e48e6 Thanks @matthewp! - Remove the Vercel Edge adapter

    @astrojs/vercel/serverless now supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    - import vercel from '@astrojs/vercel/edge';
    + import vercel from '@astrojs/vercel/serverless';
    
    export default defineConfig({
     output: 'server',
     adapter: vercel({
    +    edgeMiddleware: true
     }),
    });

    This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter.

Patch Changes

@astrojs/cloudflare@7.0.0-beta.1

Minor Changes

Patch Changes

@astrojs/telemetry@3.0.0-beta.1

Patch Changes

@github-actions github-actions bot added pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Aug 4, 2023
@github-actions github-actions bot force-pushed the changeset-release/next branch 2 times, most recently from 9750b62 to 7b28c3a Compare August 8, 2023 07:09
@ematipico ematipico requested a review from a team as a code owner August 8, 2023 10:04
@github-actions github-actions bot force-pushed the changeset-release/next branch 13 times, most recently from b5cc762 to 8265739 Compare August 11, 2023 14:06
@matthewp matthewp merged commit 40efae6 into next Aug 11, 2023
@matthewp matthewp deleted the changeset-release/next branch August 11, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants