astro

The web framework for content-driven websites. ⭐️ Star to support our work!

OTHER License

Downloads
8.9M
Stars
43K
Committers
807
astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

  • #8595 5b0b3c9a8 Thanks @alexanderniebuhr! - Add support for the following Node.js Runtime APIs, which are availabe in Cloudflare using the node: syntax.

    • assert
    • AsyncLocalStorage
    • Buffer
    • Diagnostics Channel
    • EventEmitter
    • path
    • process
    • Streams
    • StringDecoder
    • util
    import { Buffer } from 'node:buffer';
    

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

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

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

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 - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

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

astro - [email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

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

Published by astrobot-houston about 1 year ago

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

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

Package Rankings
Top 0.43% on Npmjs.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
CI License npm version astro version create-astro version @astrojs/react version @astrojs/preact version @astrojs/solid version @astrojs/svelte version @astrojs/vue version @astrojs/lit version @astrojs/node version @astrojs/vercel version @astrojs/cloudflare version @astrojs/partytown version @astrojs/sitemap version @astrojs/tailwind version @astrojs/alpinejs version @astrojs/mdx version @astrojs/db version @astrojs/rss version @astrojs/netlify version CII Best Practices Astro's sponsors.