@astrojs/cloudflare
π Patch Changes
πΏ Minor Changes
-
#8655
3dd65bf88Thanks @alexanderniebuhr! - Introduces support for local KV bindings. Enhances development experience by allowing direct integration withastro dev. -
#8655
3dd65bf88Thanks @alexanderniebuhr! - Introduces support for local Durable Objects bindings. Enhances development experience by allowing direct integration withastro dev. -
#8655
3dd65bf88Thanks @alexanderniebuhr! - Introduces support for local D1 bindings. Enhances development experience by allowing direct integration withastro dev. -
#8655
3dd65bf88Thanks @alexanderniebuhr! - Introduces support for local R2 bindings. Enhances development experience by allowing direct integration withastro dev. -
#8655
3dd65bf88Thanks @alexanderniebuhr! - Introduces support for local Caches bindings. Enhances development experience by allowing direct integration withastro dev.
π Patch Changes
-
π Patch Changes
-
#7776
f5c617e3aThanks @aditsachde! - Include generated files starting with a dot in _routes.json -
#8654
f6ba533dfThanks @alexanderniebuhr! - Refactor codebase to enhance code readability and structure, to prioritize maintainability for long-term. -
Updated dependencies [
2167ffd72,408b50c5e,2167ffd72,2167ffd72,2167ffd72,e797b6816,824dd4670,2167ffd72,cfd895d87]:- astro@3.2.0
- @astrojs/underscore-redirects@0.3.0
-
πΏ Minor Changes
-
#8595
5b0b3c9a8Thanks @alexanderniebuhr! - Add support for the following Node.js Runtime APIs, which are availabe in Cloudflare using thenode:syntax.- assert
- AsyncLocalStorage
- Buffer
- Diagnostics Channel
- EventEmitter
- path
- process
- Streams
- StringDecoder
- util
import { Buffer } from 'node:buffer';
π Patch Changes
-
πΏ Minor Changes
- #8426
2c9614469Thanks @alexanderniebuhr! - Add support for Cloudflare Runtime (env vars, caches and req object), usingastro dev
π Patch Changes
- #8426
β¨ Major Changes
-
#8188
d0679a666Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
#8179
6011d52d3Thanks @matthewp! - Astro 3.0 Release Candidate -
#8188
7511a4980Thanks @ematipico! - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits ofastro:assetssuch as enforcingalt, no CLS etc to users -
#8078
2540feedbThanks @alexanderniebuhr! - The configurationbuild.splitandbuild.excludeMiddlewareare deprecated.You can now configure this behavior using
functionPerRoutein your Cloudflare integration config:import {defineConfig} from "astro/config";import cloudflare from '@astrojs/cloudflare';export default defineConfig({build: {split: true},adapter: cloudflare()adapter: cloudflare({mode: 'directory',functionPerRoute: true})})
πΏ Minor Changes
-
#8188
cd2d7e769Thanks @ematipico! - Introduced the concept of feature map. A feature map is a list of features that are built-in in Astro, and an Adapter can tell Astro if it can support it.import { AstroIntegration } from './astro';function myIntegration(): AstroIntegration {return {name: 'astro-awesome-list',// new feature mapsupportedAstroFeatures: {hybridOutput: 'experimental',staticOutput: 'stable',serverOutput: 'stable',assets: {supportKind: 'stable',isSharpCompatible: false,isSquooshCompatible: false,},},};}
π Patch Changes
-
#8079
7b77b34ceThanks @alexanderniebuhr! - Sync Astro Asset support across both modes -
Updated dependencies [
d0679a666,db39206cb,adf9fccfd,0c7b42dc6,46c4c0e05,364d861bd,2484dc408,81545197a,6011d52d3,c2c71d90c,cd2d7e769,80f1494cd,e45f30293,c0de7a7b0,65c354969,3c3100851,34cb20021,a824863ab,44f7a2872,1048aca55,be6bbd2c8,9e021a91c,7511a4980,c37632a20,acf652fc1,42785c7b7,8450379db,dbc97b121,7d2f311d4,2540feedb,ea7ff5177,68efd4a8b,7bd1b86f8,036388f66,519a1c4e8,1f58a7a1b,2ae9d37f0,a8f35777e,70f34f5a3,5208a3c8f,84af8ed9d,f003e7364,ffc9e2d3d,732111cdc,0f637c71e,33b8910cf,8a5b0c1f3,148e61d24,e79e3779d,632579dc2,3674584e0,1db4e92c1,e7f872e91,16f09dfff,4477bb41c,55c10d1d5,3e834293d,96beb883a,997a0db8a,80f1494cd,0f0625504,e1ae56e72,f32d093a2,f01eb585e,b76c166bd,a87cbe400,866ed4098,767eb6866,32669cd47]:- astro@3.0.0
- @astrojs/underscore-redirects@0.3.0
-
π Patch Changes
-
#8190
0be8d9bfaThanks @ematipico! - Improve documentation and export the types needed to type theruntimeobject. -
Updated dependencies [
52606a390]:- astro@2.10.14
-
β¨ Major Changes
π Patch Changes
β¨ Major Changes
-
#8078
2540feedbThanks @alexanderniebuhr! - The configurationbuild.splitandbuild.excludeMiddlewareare deprecated.You can now configure this behavior using
functionPerRoutein your Cloudflare integration config:import {defineConfig} from "astro/config";import cloudflare from '@astrojs/cloudflare';export default defineConfig({build: {split: true},adapter: cloudflare()adapter: cloudflare({mode: 'directory',functionPerRoute: true})})
π Patch Changes
-
#8079
7b77b34ceThanks @alexanderniebuhr! - Sync Astro Asset support across both modes -
Updated dependencies [
2484dc408,c2c71d90c,7177f7579,097a8e4e9,dbc97b121,2540feedb,ea7ff5177,68efd4a8b,0e0fa605d,5208a3c8f,8a5b0c1f3,d6b494376,4477bb41c,3e834293d,b76c166bd]:- astro@3.0.0-beta.3
- @astrojs/underscore-redirects@0.3.0-beta.0
-
πΏ Minor Changes
-
#7541
ffcfcddb7Thanks @alexanderniebuhr! - ThegetRuntimeutility has been deprecated and should be updated to the newAstro.localsAPI.import { getRuntime } from '@astrojs/cloudflare/runtime';getRuntime(Astro.request);const runtime = Astro.locals.runtime;
π Patch Changes
-
β¨ Major Changes
-
1eae2e3f7Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
c022a4217Thanks @Princesseuh! - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits ofastro:assetssuch as enforcingalt, no CLS etc to users
πΏ Minor Changes
-
9b4f70a62Thanks @ematipico! - Introduced the concept of feature map. A feature map is a list of features that are built-in in Astro, and an Adapter can tell Astro if it can support it.import { AstroIntegration } from './astro';function myIntegration(): AstroIntegration {return {name: 'astro-awesome-list',// new feature mapsupportedAstroFeatures: {hybridOutput: 'experimental',staticOutput: 'stable',serverOutput: 'stable',assets: {supportKind: 'stable',isSharpCompatible: false,isSquooshCompatible: false,},},};}
π Patch Changes
-
π Patch Changes
-
#7568
6ec040761Thanks @alexanderniebuhr! - Fix a bug where asset redirects caused Cloudflare error -
#7679
1a6f833c4Thanks @bluwy! - Fix runtime env var handling -
#7568
6ec040761Thanks @alexanderniebuhr! - Fix bug where.tsfiles are not renamed to.js -
Updated dependencies [
cc8e9de88,1a6f833c4,cc0f81c04]:- astro@2.8.4
-