8000
Skip to content

Releases: withastro/astro

create-astro@4.11.1

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

  • #13257 6012e06 Thanks @ADTC! - Modify the template README file to reflect the correct package manager

astro@5.3.1

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

  • #13233 32fafeb Thanks @joshmkennedy! - Ensures consistent behaviour of Astro.rewrite/ctx.rewrite when using base and trailingSlash options.

  • #13003 ea79054 Thanks @chaegumi! - Fixes a bug that caused the vite.base value to be ignored when running astro dev

  • #13299 2e1321e Thanks @bluwy! - Uses tinyglobby for globbing files

  • #13233 32fafeb Thanks @joshmkennedy! - Ensures that Astro.url/ctx.url is correctly updated with the base path after rewrites.

    This change fixes an issue where Astro.url/ctx.url did not include the configured base path after Astro.rewrite was called. Now, the base path is correctly reflected in Astro.url.

    Previously, any rewrites performed through Astro.rewrite/ctx.rewrite failed to append the base path to Astro.url/ctx.rewrite, which could lead to incorrect URL handling in downstream logic. By fixing this, we ensure that all routes remain consistent and predictable after a rewrite.

    If you were relying on the work around of including the base path in astro.rewrite you can now remove it from the path.

@astrojs/vue@5.0.7

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

@astrojs/vercel@8.0.8

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

@astrojs/node@9.1.1

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

@astrojs/netlify@6.2.1

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

  • #13299 2e1321e Thanks @bluwy! - Uses tinyglobby for globbing files

  • Updated dependencies []:

    • @astrojs/underscore-redirects@0.6.0

@astrojs/cloudflare@12.2.2

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Feb 13:50
4cb3377

Patch Changes

  • #13304 6efd57d Thanks @ematipico! - Fixes a small issue where the package was pulling an outdated version of its internal dependencies.

  • #13201 065157c Thanks @ekwoka! - Includes onerror passthrough param for Cloudflare Image Service

  • #13299 2e1321e Thanks @bluwy! - Uses tinyglobby for globbing files

  • Updated dependencies []:

    • @astrojs/underscore-redirects@0.6.0

astro@5.3.0

Choose a tag to compare

@astrobot-houston astrobot-houston released this 13 Feb 14:26
adb58f9

Minor Changes

  • #13210 344e9bc Thanks @VitaliyR! - Handle HEAD requests to an endpoint when a handler is not defined.

    If an endpoint defines a handler for GET, but does not define a handler for HEAD, Astro will call the GET handler and return the headers and status but an empty body.

  • #13195 3b66955 Thanks @MatthewLymer! - Improves SSR performance for synchronous components by avoiding the use of Promises. With this change, SSR rendering of on-demand pages can be up to 4x faster.

  • #13145 8d4e566 Thanks @ascorbic! - Adds support for adapters auto-configuring experimental session storage drivers.

    Adapters can now configure a default session storage driver when the experimental.session flag is enabled. If a hosting platform has a storage primitive that can be used for session storage, the adapter can automatically configure the session storage using that driver. This allows Astro to provide a more seamless experience for users who want to use sessions without needing to manually configure the session storage.

Patch Changes

  • #13145 8d4e566 Thanks @ascorbic! - ⚠️ BREAKING CHANGE FOR EXPERIMENTAL SESSIONS ONLY ⚠️

    Changes the experimental.session option to a boolean flag and moves session config to a top-level value. This change is to allow the new automatic session driver support. You now need to separately enable the experimental.session flag, and then configure the session driver using the top-level session key if providing manual configuration.

    defineConfig({
      // ...
      experimental: {
    -    session: {
    -      driver: 'upstash',
    -    },
    +    session: true,
      },
    +  session: {
    +    driver: 'upstash',
    +  },
    });

    You no longer need to configure a session driver if you are using an adapter that supports automatic session driver configuration and wish to use its default settings.

    defineConfig({
      adapter: node({
        mode: "standalone",
      }),
      experimental: {
    -    session: {
    -      driver: 'fs',
    -      cookie: 'astro-cookie',
    -    },
    +    session: true,
      },
    +  session: {
    +    cookie: 'astro-cookie',
    +  },
    });

    However, you can still manually configure additional driver options or choose a non-default driver to use with your adapter with the new top-level session config option. For more information, see the experimental session docs.

  • #13101 2ed67d5 Thanks @corneliusroemer! - Fixes a bug where HEAD and OPTIONS requests for non-prerendered pages were incorrectly rejected with 403 FORBIDDEN

@astrojs/node@9.1.0

Choose a tag to compare

@astrobot-houston astrobot-houston released this 13 Feb 14:26
adb58f9

Minor Changes

  • #13145 8d4e566 Thanks @ascorbic! - Automatically configures filesystem storage when experimental session enabled

    If the experimental.session flag is enabled when using the Node adapter, Astro will automatically configure session storage using the filesystem driver. You can still manually configure session storage if you need to use a different driver or want to customize the session storage configuration.

    See the experimental session docs for more information on configuring session storage.

@astrojs/netlify@6.2.0

Choose a tag to compare

@astrobot-houston astrobot-houston released this 13 Feb 14:26
adb58f9

Minor Changes

  • #13194 1b5037b Thanks @dfdez! - Adds includedFiles and excludedFiles configuration options to customize SSR function bundle contents.

    The includeFiles property allows you to explicitly specify additional files that should be bundled with your function. This is useful for files that aren't automatically detected as dependencies, such as:

    • Data files loaded using fs operations
    • Configuration files
    • Template files

    Similarly, you can use the excludeFiles property to prevent specific files from being bundled that would otherwise be included. This is helpful for:

    • Reducing bundle size
    • Excluding large binaries
    • Preventing unwanted files from being deployed
    import { defineConfig } from 'astro/config';
    import netlify from '@astrojs/netlify';
    
    export default defineConfig({
      // ...
      output: 'server',
      adapter: netlify({
        includeFiles: ['./my-data.json'],
        excludeFiles: ['./node_modules/package/**/*', './src/**/*.test.js'],
      }),
    });

    See the Netlify adapter documentation for detailed usage instructions and examples.

  • #13145 8d4e566 Thanks @ascorbic! - Automatically configures Netlify Blobs storage when experimental session enabled

    If the experimental.session flag is enabled when using the Netlify adapter, Astro will automatically configure the session storage using the Netlify Blobs driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration.

    See the experimental session docs for more information on configuring session storage.

Patch Changes

  • Updated dependencies []:
    • @astrojs/underscore-redirects@0.6.0
0