Skip to content

Commit 68a8fae

Browse files
Version Packages
1 parent cc1ecbd commit 68a8fae

File tree

5 files changed

+36
-39
lines changed

5 files changed

+36
-39
lines changed

.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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# @opennextjs/cloudflare
22

3+
## 1.7.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
9+
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.
10+
11+
Example:
12+
13+
```js
14+
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
15+
import d1NextTagCache from "@opennextjs/cloudflare/overrides/tag-cache/d1-next-tag-cache";
16+
import memoryQueue from "@opennextjs/cloudflare/overrides/queue/memory-queue";
17+
import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
18+
import { withRegionalCache } from "@opennextjs/cloudflare/overrides/incremental-cache/regional-cache";
19+
20+
export default defineCloudflareConfig({
21+
incrementalCache: withRegionalCache(r2IncrementalCache, {
22+
mode: "long-lived",
23+
bypassTagCacheOnCacheHit: true,
24+
}),
25+
tagCache: d1NextTagCache,
26+
queue: memoryQueue,
27+
});
28+
```
29+
30+
### Patch Changes
31+
32+
- [#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
33+
34+
See the changes at <https://github.com/opennextjs/opennextjs-aws/compare/v3.7.4...v3.7.6>
35+
36+
- [#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`
37+
338
## 1.6.5
439

540
### 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)