Packages

@astrojs/cloudflare

14.4.1 · 19 Oct 2026MIT853.9k / weekRepositoryHomepagenpmAtom feed

183 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 14.x · latest line
  2. 14.4.1

    19 Oct 2026
    • Fixes Cannot find package 'prismjs' errors when prismjs isn't hoisted, such as with pnpm's global virtual store or hoist=false

  3. 14.4.0

    15 Oct 2026
    • Reworks image processing on prerendered pages to use Astro's built-in image pipeline. Requires astro@^7.4.0

      Images on prerendered pages now behave the same as on other adapters. Images optimized with the Cloudflare Images binding are now properly cached between builds, and image options such as assetQueryParams and build.assetsPrefix are applied the same way as everywhere else.

  4. 14.3.4

    6 Oct 2026
    • Fixes the globalThis.process shim being prepended to client-side scripts. The shim is now only added to the server output.

    • Fixes the @astrojs/cloudflare/hono usage example so i18n() is mounted before pages(). In the old order, i18n() never ran, so locale redirects and fallbacks were skipped.

    • Fixes dev dependency scan failing when a frontmatter line starts with import.meta or import(

  5. 14.3.3

    22 Sep 2026
    • Fixes image transforms without a specified quality outputting an higher quality than expected on certain formats

    • Fixes optimizeDeps.include glob astro/runtime/** matching .d.ts files, which caused 83 unnecessary optimizer entries and empty output chunks per environment during dev

    • Fixes image requests when using imageService: 'compile' with passthroughImageService().

  6. 14.3.2

    16 Sep 2026
    • Fixes a build failure when the wrangler config uses the exports field to declare Durable Object classes

    • Fixes cold astro dev crashes when using the passthrough image service

    • Fixes broken images on static sites by transforming prerendered images at build time with the default Cloudflare Images binding

  7. 14.3.1

    8 Sep 2026
    • Fixes a build crash when a custom worker entrypoint exports Durable Object classes alongside prerendered pages. The prerender worker no longer inherits durable_objects, migrations, or workflows from the entry worker config.

  8. 14.3.0

    3 Sep 2026
    • Adds concurrent rendering support for experimental.incrementalBuild, including when using @astrojs/cloudflare

      Incremental builds no longer disable caching when build.concurrency is greater than 1. Projects that set build.concurrency: 1 to keep the cache enabled can remove that workaround. Cloudflare builds also reduce serialization overhead for large prerendered pages.

    • Adds a Cloudflare finalize() response handler for custom request handlers

      Call finalize() to apply cookies and Cloudflare CDN cache defaults to the response from an astro/fetch pipeline:

      import { astro, FetchState } from 'astro/fetch';
      import { cf, finalize } from '@astrojs/cloudflare/fetch';
      
      export default {
        async fetch(request: Request, env: Env, context: ExecutionContext) {
          const state = new FetchState(request);
          const asset = await cf(state, env, context);
          if (asset) return asset;
      
          return finalize(state, await astro(state));
        },
      };

      The @astrojs/cloudflare/hono middleware applies these response headers automatically. Cloudflare custom entrypoints also fall back to static assets when no Astro route matches and use the default server entrypoint when prerendering through workerd.

    • Fixes cold astro dev crashes by adding astro/app/manifest and @astrojs/cloudflare/cache/provider to the optimizeDeps.include list

  9. 14.2.6

    31 Aug 2026
    • Added @astrojs/prism to the list of dependencies to optimise. The dev server is now faster for sites that use Prism as code highlighter.

    • Fixes React SSR failures on the first Cloudflare dev request when JSON logging is enabled

  10. 14.2.5

    25 Aug 2026
    • Updates generated and default Cloudflare compatibility_date values to match the installed runtime and requires Wrangler ^4.125.0

    • Adds the Worker version to the cache metadata of cached responses when the CF_VERSION_METADATA binding is configured. Responses carry an astro-version:<id> cache tag for version-specific purging, and responses that already send Last-Modified get a weak ETag that folds the version in. Conditional revalidation then returns fresh content after a deploy that changes rendered output but not content — most commonly the hashed asset URLs in server-rendered HTML. Without the binding, nothing changes.

  11. 14.2.4

    24 Aug 2026
    • Fixes dep scanning failure when .astro frontmatter contains regex literals with quote characters (e.g. /"/g)

  12. 14.2.2 – 14.2.32 releases that only update dependencies@astrojs/internal-helpers 0.10.4@astrojs/underscore-redirects 1.0.4Show each
  13. 14.2.1

    11 Aug 2026
    • Fixes the astro peer dependency range from ^7.0.0 to ^7.2.0. The adapter imports symbols (beginContentEntryCollection, beginImageCollection, endContentEntryCollection, endImageCollection) from astro/app that were added in Astro 7.2.0, so earlier versions fail at build time with a MISSING_EXPORT error.

  14. 14.2.0

    6 Aug 2026
    • Adds opt-in build-time image optimization for the cloudflare-binding image service.

      When enabled, the Cloudflare IMAGES binding transforms static images in the workerd prerender environment, and the optimized bytes are written directly to the output directory. If the binding fails, it falls back to Sharp.

      To opt in, use the compound configuration form:

      export default defineConfig({
        adapter: cloudflare({
          imageService: { build: 'cloudflare-binding', runtime: 'cloudflare-binding' },
        }),
      });

      The string shorthand imageService: 'cloudflare-binding' preserves the current runtime-only behavior and is unaffected.

    • When session: false is set in astro.config, the adapter no longer auto-wires the Cloudflare KV session driver. Combined with the matching astro change, this lets the session runtime tree-shake out of the Worker bundle.

    • Supports Astro's experimental incremental static builds. When experimental.incrementalBuild is enabled, the adapter skips unchanged pages between builds.

  15. 14.1.7

    29 Jul 2026
    • Fixes a bug where Cloudflare couldn't load chunked collections via experimental.collectionStorage: 'chunked'.

  16. 14.1.5

    27 Jul 2026
    • Fixes a bug where an explicit cache: { enabled: false } in your wrangler config was overridden and forced to true when a Workers cache provider was configured

  17. 14.1.4

    20 Jul 2026

    Reading the note…

  18. 14.1.3

    13 Jul 2026

    Reading the note…

  19. 14.1.2

    8 Jul 2026

    Reading the note…

  20. 14.1.1

    2 Jul 2026

    Reading the note…

  21. 14.1.0

    1 Jul 2026

    Reading the note…

  22. 14.0.2

    30 Jun 2026

    Reading the note…

  23. 14.0.1

    25 Jun 2026

    Reading the note…

  24. 14.0.0

    22 Jun 2026

    Reading the note…

  25. 13.x
  26. 13.7.0

    9 Jun 2026

    Reading the note…

  27. 13.6.1

    2 Jun 2026

    Reading the note…

  28. 13.6.0

    28 May 2026

    Reading the note…

  29. 13.5.5

    26 May 2026

    Reading the note…

  30. 13.5.4

    21 May 2026

    Reading the note…

  31. 13.5.3

    20 May 2026

    Reading the note…

  32. 13.5.2

    18 May 2026

    Reading the note…

  33. 13.5.1

    13 May 2026

    Reading the note…

  34. 13.5.0

    7 May 2026

    Reading the note…

  35. 13.4.0

    7 May 2026

    Reading the note…

  36. 13.3.1

    4 May 2026

    Reading the note…

  37. 13.3.0

    30 Apr 2026

    Reading the note…

  38. 13.2.2

    28 Apr 2026

    Reading the note…

  39. 13.2.1

    23 Apr 2026

    Reading the note…

  40. 13.2.0

    22 Apr 2026

    Reading the note…

  41. 13.1.10

    15 Apr 2026

    Reading the note…

  42. 13.1.9

    13 Apr 2026

    Reading the note…

  43. 13.1.8

    8 Apr 2026

    Reading the note…

  44. 13.1.7

    1 Apr 2026

    Reading the note…

  45. 13.1.6

    30 Mar 2026

    Reading the note…

  46. 13.1.5

    30 Mar 2026

    Reading the note…

  47. 13.1.4

    26 Mar 2026

    Reading the note…

  48. 13.1.3

    20 Mar 2026

    Reading the note…

  49. 13.1.2

    16 Mar 2026

    Reading the note…

  50. 13.1.1

    12 Mar 2026

    Reading the note…