github withastro/astro astro@7.4.14

Patch Changes

  • #18847 8ae8783 Thanks @astro-factory! - Fixes a dev server bug where changing a collection schema in src/content.config.ts together with one of its data files could store entries parsed with the old schema until the data store was deleted

  • #18515 7b40892 Thanks @ossaidqadri! - Fixes fontProviders.npm({ remote: false }) failing with CannotFetchFontFile by reading font files from the installed package on disk

  • #18801 c6adb7b Thanks @astro-factory! - Fixes optimized fallbacks generated by the Fonts API rendering bold and italic text as regular and upright while the web font loads

  • #18765 e549bbf Thanks @astro-factory! - Fixes a bug on Cloudflare Workers where a request cancelled while Astro was still loading the middleware, session driver, actions, cache provider, or logger caused every later request to fail with "This promise was created by a request that has since ended"

  • #18735 c629a63 Thanks @astro-factory! - Fixes memoryCache() returning a 500 error when serving a cached 204, 205 or 304 response

  • 399c94c Thanks @matthewp! - Fixes a bug where an action name that was percent-encoded more than once could reach a different action than the name reported by getActionContext(). Action requests are now only accepted when the name uses the same encoding Astro's client produces, so middleware that checks action.name always sees the action that runs

  • #18878 069d9fb Thanks @astro-factory! - Fixes type errors reported in the <ClientRouter /> component when type-checking a project with noPropertyAccessFromIndexSignature enabled

  • #18901 009ec24 Thanks @tunetheweb! - Add loading attribute to MediaHTMLAttributes type

  • #17076 11069ff Thanks @alexanderdombroski! - Offers to add .wrangler/ and worker-configuration.d.ts to .gitignore when you run astro add cloudflare, and .netlify/ when you run astro add netlify.

  • 6159064 Thanks @matthewp! - Fixes HTML escaping of non-string values in template expressions and JSX/MDX. Objects that stringify to text, such as an Error or a boxed String, are now escaped instead of being rendered as raw HTML

  • #18819 9842674 Thanks @umeraamir69! - Fixes session.set() after session.destroy() not sending a cookie for the new session when the session had already been written earlier in the same request

  • #18741 d62f405 Thanks @ydnmu! - Fixes stale content collection file paths and build failures after renaming files without changing their contents or IDs

  • #17891 6fb274e Thanks @ryansolid! - Updates the Solid tsconfig preset for Solid 2.0: astro add solid-js now writes jsxImportSource: "@solidjs/web" (renderer packages own their JSX namespaces and jsx-runtime type entries in 2.0; solid-js no longer exports one)

  • #18776 db5e3ec Thanks @astro-factory! - Fixes an unclear Cannot find package 'esbuild' build failure when vite.build.cssMinify or vite.build.minify is set to 'esbuild'. Astro now reports that esbuild must be installed in your project to use these options.

  • 62e631d Thanks @matthewp! - Fixes image.domains and image.remotePatterns entries without a protocol allowing data URIs written with a host, such as data://cdn.example.com/,....

    image.domains entries and image.remotePatterns entries without a protocol now only allow http and https, the same as security.allowedDomains. To allow data URIs, add a pattern with protocol: 'data'. This also applies to remotePatterns: [{}], which no longer allows data URIs on its own:

    // astro.config.mjs
    export default defineConfig({
      image: {
        remotePatterns: [{}, { protocol: 'data' }],
      },
    });

    A remotePatterns entry with a port now also matches URLs that use that protocol's default port, so port: '443' matches https://example.com.

  • #18866 2602f49 Thanks @astro-factory! - Fixes the dev toolbar throwing an error and failing to load when performance.addEventListener is unavailable, such as when Playwright's fake clock (page.clock.install()) is installed

  • Updated dependencies [d5af08b, 6159064, 791d0ad, db5e3ec, 62e631d]:

    • @astrojs/runtime@0.1.3
    • @astrojs/vite-plugin-astro@0.1.4
    • @astrojs/internal-helpers@0.13.3

Don't miss a new astro release

NewReleases is sending notifications on new releases.