@astrojs/cloudflare
14.4.1 · 19 Oct 2026MIT853.9k / weekRepositoryHomepagenpmAtom feed
Latest releases
All 183 releases14.4.1
19 Oct 2026Fixes
Cannot find package 'prismjs'errors whenprismjsisn't hoisted, such as with pnpm's global virtual store orhoist=false
Patch Changes
Fixes
Cannot find package 'prismjs'errors whenprismjsisn't hoisted, such as with pnpm's global virtual store orhoist=false
14.4.0
15 Oct 2026Reworks image processing on prerendered pages to use Astro's built-in image pipeline. Requires
astro@^7.4.0Images 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
assetQueryParamsandbuild.assetsPrefixare applied the same way as everywhere else.
Minor Changes
Reworks image processing on prerendered pages to use Astro's built-in image pipeline. Requires
astro@^7.4.0Images 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
assetQueryParamsandbuild.assetsPrefixare applied the same way as everywhere else.
14.3.4
6 Oct 2026Fixes the
globalThis.processshim being prepended to client-side scripts. The shim is now only added to the server output.Fixes the
@astrojs/cloudflare/honousage example soi18n()is mounted beforepages(). 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.metaorimport(
Patch Changes
Fixes the
globalThis.processshim being prepended to client-side scripts. The shim is now only added to the server output.Fixes the
@astrojs/cloudflare/honousage example soi18n()is mounted beforepages(). 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.metaorimport(Fixes remote images without a file extension failing with
400 Unsupported format: nullwhen using thecloudflare-bindingimage serviceAstro only adds the
f(format) parameter to/_imageURLs when it can infer a format from the source, and otherwise leaves it off so the image service resolves the format from the source itself. Extensionless remote images, such as GitHub avatars likehttps://avatars.githubusercontent.com/u/1234, take that path. The image transform endpoint now falls back to the source's media type whenfis absent, passing SVG sources through unchanged and encoding everything else as WebP. This also fixes SVG images, which are requested asf=svgand previously failed the same way.Fixes
astro buildfailing withfetch failed/connect ECONNREFUSED 127.0.0.1:<port>during prerendering on hosts wherelocalhostresolves to IPv6The prerenderer started its Vite preview server with
host: 'localhost'and then built the fetch URL by re-stating that same hostname.localhostwas therefore resolved twice, independently — once bylisten()to pick a bind address and once byfetch()to pick a connect address — with nothing making the two agree. On hosts where those resolutions land on different families, the preview server listens on::1whilefetchdials127.0.0.1, and every prerender request is refused. The URL is now derived from the address actually bound, so bind and connect agree by construction.
14.3.3
22 Sep 2026Fixes image transforms without a specified quality outputting an higher quality than expected on certain formats
Fixes
optimizeDeps.includeglobastro/runtime/**matching.d.tsfiles, which caused 83 unnecessary optimizer entries and empty output chunks per environment during devFixes image requests when using
imageService: 'compile'withpassthroughImageService().
Patch Changes
Fixes image transforms without a specified quality outputting an higher quality than expected on certain formats
Fixes
optimizeDeps.includeglobastro/runtime/**matching.d.tsfiles, which caused 83 unnecessary optimizer entries and empty output chunks per environment during devFixes image requests when using
imageService: 'compile'withpassthroughImageService().
14.3.2
16 Sep 2026Fixes a build failure when the wrangler config uses the
exportsfield to declare Durable Object classesFixes cold
astro devcrashes when using the passthrough image serviceFixes broken images on static sites by transforming prerendered images at build time with the default Cloudflare Images binding
Patch Changes
Fixes a build failure when the wrangler config uses the
exportsfield to declare Durable Object classesFixes cold
astro devcrashes when using the passthrough image serviceFixes broken images on static sites by transforming prerendered images at build time with the default Cloudflare Images binding
Pre-bundles renderer server entrypoints and the default console logger during dev so they are included in the initial optimization pass, preventing a mid-request re-optimization that could crash the dev server on Cloudflare (workerd).
Dependency tracking · free for 3 projects
Know when your own dependencies move
@astrojs/cloudflare had 1 security advisory in the last 12 months. Inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 21 Oct 2026. Releases and advisories last read 21 Oct 2026.