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 #8540

Merged
merged 1 commit into from
Sep 14, 2023
Merged

[ci] release #8540

merged 1 commit into from
Sep 14, 2023

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Sep 13, 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 main, this PR will be updated.

Releases

@astrojs/vercel@5.0.0

Major Changes

  • #8445 91380378c Thanks @Princesseuh! - Adds a configuration option devImageService to choose which of the built-in image services to use in development. Defaults to sharp.

  • #8546 b79e11f3c Thanks @matthewp! - Turn off functionPerRoute by default

    In the previous version of @astrojs/vercel, the default for functionPerRoute was changed to true. While this option has several advantages, if you're a free tier user you are likely to run into the limit of 12 functions per deployment. This will result in an error when you attempt to deploy.

    For this reason, the functionPerRoute option is now back to defaulting to false. It's still a useful option if you have a paid plan and have previously run into issues with your single function exceeding the size limits.

Minor Changes

  • #8021 2e8726fee Thanks @chriswdmr! - Enable Vercel Speed Insights and Vercel Web Analytics individually.
    Deprecates the analytics property in astro.config.mjs in favor of speedInsights and webAnalytics.

    If you're using the analytics property, you'll need to update your config to use the new properties:

    // astro.config.mjs
    export default defineConfig({
    	adapter: vercel({
    -		analytics: true,
    +		webAnalytics: {
    +			enabled: true
    +		},
    +		speedInsights: {
    +			enabled: true
    +		}
    	})
    });

    Allow configuration of Web Analytics with all available configuration options.
    Bumps @vercel/analytics package to the latest version.

Patch Changes

astro@3.1.0

Minor Changes

  • #8467 ecc65abbf Thanks @Princesseuh! - Add a new image.endpoint setting to allow using a custom endpoint in dev and SSR

  • #8518 2c4fc878b Thanks @Princesseuh! - Adds support for using AVIF (.avif) files with the Image component. Importing an AVIF file will now correctly return the same object shape as other image file types. See the Image docs for more information on the different properties available on the returned object.

  • #8464 c92e0acd7 Thanks @Princesseuh! - Add types for the object syntax for style (ex: style={{color: 'red'}})

Patch Changes

create-astro@4.1.0

Minor Changes

  • #8456 ed952b4ce Thanks @natemoo-re! - Improve startup performance by removing dependencies, lazily initializing async contextual values

@astrojs/mdx@1.1.0

Minor Changes

  • #8468 a8d72ceae Thanks @bholmesdev! - Support the img component export for optimized images. This allows you to customize how optimized images are styled and rendered.

    When rendering an optimized image, Astro will pass the ImageMetadata object to your img component as the src prop. For unoptimized images (i.e. images using URLs or absolute paths), Astro will continue to pass the src as a string.

    This example handles both cases and applies custom styling:

    ---
    // src/components/MyImage.astro
    import type { ImageMetadata } from 'astro';
    import { Image } from 'astro:assets';
    
    type Props = {
      src: string | ImageMetadata;
      alt: string;
    };
    
    const { src, alt } = Astro.props;
    ---
    
    {
      typeof src === 'string' ? (
        <img class="custom-styles" src={src} alt={alt} />
      ) : (
        <Image class="custom-styles" {src} {alt} />
      )
    }
    
    <style>
      .custom-styles {
        border: 1px solid red;
      }
    </style>

    Now, this components can be applied to the img component props object or file export:

    import MyImage from '../../components/MyImage.astro';
    
    export const components = { img: MyImage };
    
    # My MDX article

Patch Changes

@astrojs/markdown-remark@3.2.0

Minor Changes

  • #8475 d93987824 Thanks @webpro! - feat(markdown): Add support for imageReference paths when collecting images

  • #8532 7522bb491 Thanks @bluwy! - Export createMarkdownProcessor and deprecate renderMarkdown API

Patch Changes

@github-actions github-actions bot added the pkg: create-astro Related to the `create-astro` package (scope) label Sep 13, 2023
@github-actions github-actions bot force-pushed the changeset-release/main branch 20 times, most recently from 1650033 to 9fc86fa Compare September 14, 2023 12:17
@github-actions github-actions bot requested a review from a team as a code owner September 14, 2023 12:17
@matthewp matthewp merged commit fca6892 into main Sep 14, 2023
@matthewp matthewp deleted the changeset-release/main branch September 14, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: create-astro Related to the `create-astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants