Skip to content

Commit 1e92d6a

Browse files
authored
release 1.0.0 (#646)
1 parent b4855fa commit 1e92d6a

13 files changed

+56
-87
lines changed

.changeset/deep-nails-behave.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/dull-terms-invite.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/famous-weeks-deliver.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/grumpy-dingos-pretend.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

.changeset/large-adults-report.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/lovely-rooms-taste.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/soft-rats-punch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/thirty-camels-reflect.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/two-paws-boil.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/violet-lemons-think.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/wet-monkeys-look.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cloudflare/CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# @opennextjs/cloudflare
22

3+
## 1.0.0
4+
5+
- [#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
6+
7+
Introduce support for the composable cache
8+
9+
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:
10+
11+
```ts
12+
export type CacheEntryType = "cache" | "fetch" | "composable";
13+
14+
export type IncrementalCache = {
15+
get<CacheType extends CacheEntryType = "cache">(
16+
key: string,
17+
cacheType?: CacheType
18+
): Promise<WithLastModified<CacheValue<CacheType>> | null>;
19+
set<CacheType extends CacheEntryType = "cache">(
20+
key: string,
21+
value: CacheValue<CacheType>,
22+
isFetch?: CacheType
23+
): Promise<void>;
24+
delete(key: string): Promise<void>;
25+
name: string;
26+
};
27+
```
28+
29+
NextModeTagCache also get a new function `getLastRevalidated` used for the composable cache:
30+
31+
```ts
32+
getLastRevalidated(tags: string[]): Promise<number>;
33+
```
34+
35+
- [#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
36+
37+
- [#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
38+
39+
- [#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
40+
41+
- [#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
42+
43+
- [#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
44+
45+
- `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
46+
- `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
47+
48+
- [#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
49+
50+
- [#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
51+
52+
- [#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
53+
54+
- [#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
55+
56+
- [#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
57+
358
## 1.0.0-beta.4
459

560
### Changes

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opennextjs/cloudflare",
33
"description": "Cloudflare builder for next apps",
4-
"version": "1.0.0-beta.4",
4+
"version": "1.0.0",
55
"type": "module",
66
"scripts": {
77
"clean": "rimraf dist",

0 commit comments

Comments
 (0)