Skip to content

Commit 38d462b

Browse files
Version Packages (#852)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f80c801 commit 38d462b

File tree

6 files changed

+55
-61
lines changed

6 files changed

+55
-61
lines changed

.changeset/four-walls-read.md

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

.changeset/gentle-ideas-change.md

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

.changeset/lovely-gifts-cough.md

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

.changeset/six-days-watch.md

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

packages/cloudflare/CHANGELOG.md

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

3+
## 1.7.0
4+
5+
### Minor Changes
6+
7+
- [#848](https://github.com/opennextjs/opennextjs-cloudflare/pull/848) [`f80c801`](https://github.com/opennextjs/opennextjs-cloudflare/commit/f80c8019ab1536b6cf4ba4d3c5a82b57d6716537) Thanks [@sommeeeer](https://github.com/sommeeeer)! - Ensure that the initial request.signal is passed to the wrapper
8+
9+
`request.signal.onabort` is now supported in route handlers. It requires that the signal from the original worker's request is passed to the handler. It will then pass along that `AbortSignal` through the `streamCreator` in the wrapper. This signal will destroy the response sent to NextServer when a client aborts, thus triggering the signal in the route handler.
10+
11+
See the changelog in Cloudflare [here](https://developers.cloudflare.com/changelog/2025-05-22-handle-request-cancellation/).
12+
13+
**Note:**
14+
If you have a custom worker, you must update your code to pass the original `request.signal` to the handler. You also need to enable the compatibility flag `enable_request_signal` to use this feature.
15+
16+
For example:
17+
18+
```js
19+
// Before:
20+
return handler(reqOrResp, env, ctx);
21+
22+
// After:
23+
return handler(reqOrResp, env, ctx, request.signal);
24+
```
25+
26+
- [#850](https://github.com/opennextjs/opennextjs-cloudflare/pull/850) [`ce5c7b4`](https://github.com/opennextjs/opennextjs-cloudflare/commit/ce5c7b417d44ead633128e676bb0971ad68040ba) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Add option for regional cache to skip tagCache on cache hits
27+
28+
When the tag regional cache finds a value in the incremental cache, checking such value in the tagCache can be skipped, this helps reducing response times at the tradeoff that the user needs to either use the automatic cache purging or manually purge the cache when appropriate. For this the `bypassTagCacheOnCacheHit` option is being added to the `RegionalCache` class.
29+
30+
Example:
31+
32+
```js
33+
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
34+
import d1NextTagCache from "@opennextjs/cloudflare/overrides/tag-cache/d1-next-tag-cache";
35+
import memoryQueue from "@opennextjs/cloudflare/overrides/queue/memory-queue";
36+
import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
37+
import { withRegionalCache } from "@opennextjs/cloudflare/overrides/incremental-cache/regional-cache";
38+
39+
export default defineCloudflareConfig({
40+
incrementalCache: withRegionalCache(r2IncrementalCache, {
41+
mode: "long-lived",
42+
bypassTagCacheOnCacheHit: true,
43+
}),
44+
tagCache: d1NextTagCache,
45+
queue: memoryQueue,
46+
});
47+
```
48+
49+
### Patch Changes
50+
51+
- [#858](https://github.com/opennextjs/opennextjs-cloudflare/pull/858) [`7233c03`](https://github.com/opennextjs/opennextjs-cloudflare/commit/7233c035c132b0642e8a891d9b3ff3a3c739be5e) Thanks [@vicb](https://github.com/vicb)! - bump @opennextjs/aws to 3.7.6
52+
53+
See the changes at <https://github.com/opennextjs/opennextjs-aws/compare/v3.7.4...v3.7.6>
54+
55+
- [#857](https://github.com/opennextjs/opennextjs-cloudflare/pull/857) [`b8b38ee`](https://github.com/opennextjs/opennextjs-cloudflare/commit/b8b38ee8af25bb76cf41fa208cc25ed5cafda851) Thanks [@vicb](https://github.com/vicb)! - Clean output directory before `next build`
56+
357
## 1.6.5
458

559
### Patch 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.6.5",
4+
"version": "1.7.0",
55
"type": "module",
66
"scripts": {
77
"clean": "rimraf dist",

0 commit comments

Comments
 (0)