diff --git a/.changeset/deep-nails-behave.md b/.changeset/deep-nails-behave.md deleted file mode 100644 index 4c95a8b8..00000000 --- a/.changeset/deep-nails-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix: escape shell arguments when populating the cache diff --git a/.changeset/dull-terms-invite.md b/.changeset/dull-terms-invite.md deleted file mode 100644 index 0c0c1ea2..00000000 --- a/.changeset/dull-terms-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix issues with build conditions and wasm diff --git a/.changeset/famous-weeks-deliver.md b/.changeset/famous-weeks-deliver.md deleted file mode 100644 index f996e6fd..00000000 --- a/.changeset/famous-weeks-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -global timer functions now use the one from node:timers diff --git a/.changeset/grumpy-dingos-pretend.md b/.changeset/grumpy-dingos-pretend.md deleted file mode 100644 index ab16650c..00000000 --- a/.changeset/grumpy-dingos-pretend.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -"@opennextjs/cloudflare": minor ---- - -Bump aws to 3.6.0 - -Introduce support for the composable cache - -BREAKING CHANGE: The interface for the Incremental cache has changed. The new interface use a Cache type instead of a boolean to distinguish between the different types of caches. It also includes a new Cache type for the composable cache. The new interface is as follows: - -```ts -export type CacheEntryType = "cache" | "fetch" | "composable"; - -export type IncrementalCache = { - get( - key: string, - cacheType?: CacheType - ): Promise> | null>; - set( - key: string, - value: CacheValue, - isFetch?: CacheType - ): Promise; - delete(key: string): Promise; - name: string; -}; -``` - -NextModeTagCache also get a new function `getLastRevalidated` used for the composable cache: - -```ts - getLastRevalidated(tags: string[]): Promise; -``` diff --git a/.changeset/large-adults-report.md b/.changeset/large-adults-report.md deleted file mode 100644 index 64e99874..00000000 --- a/.changeset/large-adults-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -Use the workerd build condition by default diff --git a/.changeset/lovely-rooms-taste.md b/.changeset/lovely-rooms-taste.md deleted file mode 100644 index cc18f892..00000000 --- a/.changeset/lovely-rooms-taste.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -some performance improvements - -- `enableCacheInterception` can be enabled using `defineCloudflareConfig`, it loads ISR/SSG pages from cache without waiting for the js page bundle to load. PPR is not supported at the moment -- `routePreloadingBehavior` is now set to `withWaitUntil`, which means a single route js will be lazy loaded on cold start, but other routes will be preloaded using `waitUntil` for better performance diff --git a/.changeset/soft-rats-punch.md b/.changeset/soft-rats-punch.md deleted file mode 100644 index bdf53457..00000000 --- a/.changeset/soft-rats-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -polyfill import.meta.url diff --git a/.changeset/thirty-camels-reflect.md b/.changeset/thirty-camels-reflect.md deleted file mode 100644 index 444c708c..00000000 --- a/.changeset/thirty-camels-reflect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -feat: use `getPlatformProxy` for cache population prefix vars diff --git a/.changeset/two-paws-boil.md b/.changeset/two-paws-boil.md deleted file mode 100644 index d49a39b6..00000000 --- a/.changeset/two-paws-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -feat: prefix for kv cache keys diff --git a/.changeset/violet-lemons-think.md b/.changeset/violet-lemons-think.md deleted file mode 100644 index 4f01eef2..00000000 --- a/.changeset/violet-lemons-think.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix cache population for R2 diff --git a/.changeset/wet-monkeys-look.md b/.changeset/wet-monkeys-look.md deleted file mode 100644 index eda465fb..00000000 --- a/.changeset/wet-monkeys-look.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -feat: bulk insert cache entries to KV diff --git a/packages/cloudflare/CHANGELOG.md b/packages/cloudflare/CHANGELOG.md index 81e67d40..2edbc08e 100644 --- a/packages/cloudflare/CHANGELOG.md +++ b/packages/cloudflare/CHANGELOG.md @@ -1,5 +1,64 @@ # @opennextjs/cloudflare +## 1.0.0 + +### Minor Changes + +- [#613](https://github.com/opennextjs/opennextjs-cloudflare/pull/613) [`2d82fad`](https://github.com/opennextjs/opennextjs-cloudflare/commit/2d82fadfbbc2883e990a79197c8793afb8bf400d) Thanks [@conico974](https://github.com/conico974)! - Bump aws to 3.6.0 + + Introduce support for the composable cache + + BREAKING CHANGE: The interface for the Incremental cache has changed. The new interface use a Cache type instead of a boolean to distinguish between the different types of caches. It also includes a new Cache type for the composable cache. The new interface is as follows: + + ```ts + export type CacheEntryType = "cache" | "fetch" | "composable"; + + export type IncrementalCache = { + get( + key: string, + cacheType?: CacheType + ): Promise> | null>; + set( + key: string, + value: CacheValue, + isFetch?: CacheType + ): Promise; + delete(key: string): Promise; + name: string; + }; + ``` + + NextModeTagCache also get a new function `getLastRevalidated` used for the composable cache: + + ```ts + getLastRevalidated(tags: string[]): Promise; + ``` + +### Patch Changes + +- [#640](https://github.com/opennextjs/opennextjs-cloudflare/pull/640) [`af60dea`](https://github.com/opennextjs/opennextjs-cloudflare/commit/af60deae5460bc72bf3abd2e87ed442d102d533f) Thanks [@vicb](https://github.com/vicb)! - fix: escape shell arguments when populating the cache + +- [#628](https://github.com/opennextjs/opennextjs-cloudflare/pull/628) [`a169b76`](https://github.com/opennextjs/opennextjs-cloudflare/commit/a169b7669544a26f1b66cf9d5061b554d2f09edc) Thanks [@conico974](https://github.com/conico974)! - fix issues with build conditions and wasm + +- [#619](https://github.com/opennextjs/opennextjs-cloudflare/pull/619) [`09aaf35`](https://github.com/opennextjs/opennextjs-cloudflare/commit/09aaf359b2515b0aaab83f1cb50f2b2be6cb8ca7) Thanks [@conico974](https://github.com/conico974)! - global timer functions now use the one from node:timers + +- [#593](https://github.com/opennextjs/opennextjs-cloudflare/pull/593) [`faca3e1`](https://github.com/opennextjs/opennextjs-cloudflare/commit/faca3e1376dd47216f97a5dcaef6275fd16d84cb) Thanks [@vicb](https://github.com/vicb)! - Use the workerd build condition by default + +- [#641](https://github.com/opennextjs/opennextjs-cloudflare/pull/641) [`e07a2ed`](https://github.com/opennextjs/opennextjs-cloudflare/commit/e07a2ede88896982fc4e91f1a2f131590bcdcd32) Thanks [@conico974](https://github.com/conico974)! - some performance improvements + + - `enableCacheInterception` can be enabled using `defineCloudflareConfig`, it loads ISR/SSG pages from cache without waiting for the js page bundle to load. PPR is not supported at the moment + - `routePreloadingBehavior` is now set to `withWaitUntil`, which means a single route js will be lazy loaded on cold start, but other routes will be preloaded using `waitUntil` for better performance + +- [#639](https://github.com/opennextjs/opennextjs-cloudflare/pull/639) [`c4d278e`](https://github.com/opennextjs/opennextjs-cloudflare/commit/c4d278eb2e727b508cb432929e9dc0882b8e4242) Thanks [@conico974](https://github.com/conico974)! - polyfill import.meta.url + +- [#622](https://github.com/opennextjs/opennextjs-cloudflare/pull/622) [`f5264d2`](https://github.com/opennextjs/opennextjs-cloudflare/commit/f5264d2b6f7c72ff7c25a382a36c9de9bf897985) Thanks [@james-elicx](https://github.com/james-elicx)! - feat: use `getPlatformProxy` for cache population prefix vars + +- [#616](https://github.com/opennextjs/opennextjs-cloudflare/pull/616) [`f129602`](https://github.com/opennextjs/opennextjs-cloudflare/commit/f12960266c1ceb381b8a6abb6234226e901f416e) Thanks [@james-elicx](https://github.com/james-elicx)! - feat: prefix for kv cache keys + +- [#644](https://github.com/opennextjs/opennextjs-cloudflare/pull/644) [`899bae0`](https://github.com/opennextjs/opennextjs-cloudflare/commit/899bae04ec981272868dfe3b3b20484019d00c8e) Thanks [@conico974](https://github.com/conico974)! - fix cache population for R2 + +- [#626](https://github.com/opennextjs/opennextjs-cloudflare/pull/626) [`de9e05a`](https://github.com/opennextjs/opennextjs-cloudflare/commit/de9e05a414ddfe9055868194ee8e5df3489f82f7) Thanks [@james-elicx](https://github.com/james-elicx)! - feat: bulk insert cache entries to KV + ## 1.0.0-beta.4 ### Changes diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index e330c9bb..7e95c669 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -1,7 +1,7 @@ { "name": "@opennextjs/cloudflare", "description": "Cloudflare builder for next apps", - "version": "1.0.0-beta.4", + "version": "1.0.0", "type": "module", "scripts": { "clean": "rimraf dist",