Skip to content

Releases: withastro/astro

[email protected]

13 Jan 15:17
6c68269
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

13 Jan 15:17
6c68269
Compare
Choose a tag to compare

Patch Changes

  • #12739 1f9571b Thanks @gnify! - Updates displayed data to show both source and target versions

@astrojs/[email protected]

13 Jan 15:17
6c68269
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

13 Jan 15:17
6c68269
Compare
Choose a tag to compare

Patch Changes

  • #12923 c7642fb Thanks @bluwy! - Removes react-specific entrypoints in optimizeDeps.include and rely on @vitejs/plugin-react to add

[email protected]

10 Jan 09:26
2f9ba98
Compare
Choose a tag to compare

Patch Changes

  • #12934 673a518 Thanks @ematipico! - Fixes a regression where the Astro Container didn't work during the build, using pnpm

  • #12955 db447f2 Thanks @martrapp! - Lets TypeScript know about the "blocking" and "disabled" attributes of the <link> element.

  • #12922 faf74af Thanks @adamchal! - Improves performance of static asset generation by fixing a bug that caused image transforms to be performed serially. This fix ensures that processing uses all CPUs when running in a multi-core environment.

  • #12947 3c2292f Thanks @ascorbic! - Fixes a bug that caused empty content collections when running dev with NODE_ENV set

@astrojs/[email protected]

10 Jan 09:25
2f9ba98
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

10 Jan 09:26
2f9ba98
Compare
Choose a tag to compare

Patch Changes

  • #12959 3a267f3 Thanks @bluwy! - Reverts 9a3b48c which caused a regression for rendering inline MDX components and MDX files from content collections

@astrojs/[email protected]

10 Jan 09:26
2f9ba98
Compare
Choose a tag to compare

Patch Changes

[email protected]

09 Jan 09:48
5f16a4c
Compare
Choose a tag to compare

Patch Changes

  • #12927 ad2a752 Thanks @ematipico! - Fixes a bug where Astro attempted to decode a request URL multiple times, resulting in an unexpected behaviour when decoding the character %

  • #12912 0c0c66b Thanks @florian-lefebvre! - Improves the config error for invalid combinations of context and access properties under env.schema

  • #12935 3d47e6b Thanks @AirBorne04! - Fixes an issue where Astro.locals coming from an adapter weren't available in the 404.astro, when using the astro dev command,

  • #12925 44841fc Thanks @ascorbic! - Ensures image styles are not imported unless experimental responsive images are enabled

  • #12926 8e64bb7 Thanks @oliverlynch! - Improves remote image cache efficiency by separating image data and metadata into a binary and sidecar JSON file.

  • #12920 8b9d530 Thanks @bluwy! - Processes markdown with empty body as remark and rehype plugins may add additional content or frontmatter

  • #12918 fd12a26 Thanks @lameuler! - Fixes a bug where the logged output path does not match the actual output path when using build.format: 'preserve'

  • #12676 2ffc0fc Thanks @koyopro! - Allows configuring Astro modules TypeScript compilation with the vite.esbuild config

  • #12938 dbb04f3 Thanks @ascorbic! - Fixes a bug where content collections would sometimes appear empty when first running astro dev

  • #12937 30edb6d Thanks @ematipico! - Fixes a bug where users could use Astro.request.headers during a rewrite inside prerendered routes. This an invalid behaviour, and now Astro will show a warning if this happens.

  • #12937 30edb6d Thanks @ematipico! - Fixes an issue where the use of Astro.rewrite would trigger the invalid use of Astro.request.headers

@astrojs/[email protected]

09 Jan 09:48
5f16a4c
Compare
Choose a tag to compare

Minor Changes

  • #12924 3caa337 Thanks @florian-lefebvre! - Updates how the output is determined in createRedirectsFromAstroRoutes. Since v0.5.0, the output would use the buildOutput property and config.output as a fallback. It no longer uses this fallback.

  • #12924 3caa337 Thanks @florian-lefebvre! - Updates the input requirements of createRedirectsFromAstroRoutes:

    • routeToDynamicTargetMap keys are IntegrationResolvedRoute instead of IntegrationRouteData (obtained from the astro:routes:resolved hook)
    • There's a new assets property, that can be obtained from the astro:build:done hook
    function myIntegration() {
      let routes;
      let buildOutput;
      let config;
    
      return {
        name: 'my-integration',
        hooks: {
          'astro:routes:resolved': (params) => {
            routes = params.routes;
          },
          'astro:config:done': (params) => {
            buildOutput = params.buildOutput;
            config = params.config;
          },
          'astro:build:done': (params) => {
            const redirects = createRedirectsFromAstroRoutes({
              config,
              buildOutput,
              routeToDynamicTargetMap: new Map(routes.map((route) => [route, ''])),
              dir: params.dir,
              assets: params.assets,
            });
          },
        },
      };
    }