From c63b16abcfee6f593a7262a71f3179fa5353f574 Mon Sep 17 00:00:00 2001 From: workers-frameworks <145479816+workers-frameworks@users.noreply.github.com> Date: Thu, 10 Oct 2024 07:37:31 +0100 Subject: [PATCH] Version Packages (#75) Co-authored-by: github-actions[bot] --- .changeset/slow-dolphins-sparkle.md | 7 ------- .changeset/yellow-cougars-explain.md | 7 ------- packages/cloudflare/CHANGELOG.md | 14 ++++++++++++++ packages/cloudflare/package.json | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 .changeset/slow-dolphins-sparkle.md delete mode 100644 .changeset/yellow-cougars-explain.md diff --git a/.changeset/slow-dolphins-sparkle.md b/.changeset/slow-dolphins-sparkle.md deleted file mode 100644 index 1cc5c28..0000000 --- a/.changeset/slow-dolphins-sparkle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -refactor: retrieve cache handler kv instance inside constructor - -The cache handler was retrieving it's KV instance as a static property on the class that was defined at some point during the execution of the Next.js server. This moves the retrieval of the KV instance to happen inside the constructor for the class, so that it is retrieved during instantiation instead. diff --git a/.changeset/yellow-cougars-explain.md b/.changeset/yellow-cougars-explain.md deleted file mode 100644 index 030a2ef..0000000 --- a/.changeset/yellow-cougars-explain.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/cloudflare": minor ---- - -feat: configure kv binding name with env var - -The Workers KV binding used in the Next.js cache handler can be given a custom name with the `__OPENNEXT_KV_BINDING_NAME` environment variable at build-time, instead of defaulting to `NEXT_CACHE_WORKERS_KV`. diff --git a/packages/cloudflare/CHANGELOG.md b/packages/cloudflare/CHANGELOG.md index 9ad9581..f114594 100644 --- a/packages/cloudflare/CHANGELOG.md +++ b/packages/cloudflare/CHANGELOG.md @@ -1,5 +1,19 @@ # @opennextjs/cloudflare +## 0.1.0 + +### Minor Changes + +- 87f4fb5: feat: configure kv binding name with env var + + The Workers KV binding used in the Next.js cache handler can be given a custom name with the `__OPENNEXT_KV_BINDING_NAME` environment variable at build-time, instead of defaulting to `NEXT_CACHE_WORKERS_KV`. + +### Patch Changes + +- 83abcfe: refactor: retrieve cache handler kv instance inside constructor + + The cache handler was retrieving it's KV instance as a static property on the class that was defined at some point during the execution of the Next.js server. This moves the retrieval of the KV instance to happen inside the constructor for the class, so that it is retrieved during instantiation instead. + ## 0.0.3 ### Patch Changes diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index 59207ce..8b221af 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": "0.0.3", + "version": "0.1.0", "scripts": { "build": "tsup", "build:watch": "tsup --watch src",