From 502b4cd03f1d215972b4c9916e608ada28dba067 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:48:12 +0100 Subject: [PATCH] Version Packages (#837) Co-authored-by: github-actions[bot] --- .changeset/curly-weeks-sin.md | 5 ---- .changeset/silly-coins-protect.md | 23 --------------- .changeset/warm-rivers-reply.md | 5 ---- .../eslint-plugin-next-on-pages/CHANGELOG.md | 2 ++ .../eslint-plugin-next-on-pages/package.json | 2 +- packages/next-on-pages/CHANGELOG.md | 29 +++++++++++++++++++ packages/next-on-pages/package.json | 2 +- 7 files changed, 33 insertions(+), 35 deletions(-) delete mode 100644 .changeset/curly-weeks-sin.md delete mode 100644 .changeset/silly-coins-protect.md delete mode 100644 .changeset/warm-rivers-reply.md diff --git a/.changeset/curly-weeks-sin.md b/.changeset/curly-weeks-sin.md deleted file mode 100644 index 4dc270fb0..000000000 --- a/.changeset/curly-weeks-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -Use `request.cf.regionCode` for `x-vercel-ip-country-region` for keeping behavior consistent with documentation diff --git a/.changeset/silly-coins-protect.md b/.changeset/silly-coins-protect.md deleted file mode 100644 index d4fca8145..000000000 --- a/.changeset/silly-coins-protect.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -Add support for custom worker entrypoints. - -Example: - -```ts -import nextOnPagesHandler from '@cloudflare/next-on-pages/fetch-handler'; - -export default { - async fetch(request, env, ctx) { - // do something before running the next-on-pages handler - - const response = await nextOnPagesHandler.fetch(request, env, ctx); - - // do something after running the next-on-pages handler - - return response; - }, -} as ExportedHandler<{ ASSETS: Fetcher }>; -``` diff --git a/.changeset/warm-rivers-reply.md b/.changeset/warm-rivers-reply.md deleted file mode 100644 index 0e3904778..000000000 --- a/.changeset/warm-rivers-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Account for the Vercel CLI no longer generating prerender configs for dynamic ISR functions. diff --git a/packages/eslint-plugin-next-on-pages/CHANGELOG.md b/packages/eslint-plugin-next-on-pages/CHANGELOG.md index b439f760a..526830cb2 100644 --- a/packages/eslint-plugin-next-on-pages/CHANGELOG.md +++ b/packages/eslint-plugin-next-on-pages/CHANGELOG.md @@ -1,5 +1,7 @@ # eslint-plugin-next-on-pages +## 1.13.0 + ## 1.12.1 ## 1.12.0 diff --git a/packages/eslint-plugin-next-on-pages/package.json b/packages/eslint-plugin-next-on-pages/package.json index 5e69c4e03..6bf27c7d6 100644 --- a/packages/eslint-plugin-next-on-pages/package.json +++ b/packages/eslint-plugin-next-on-pages/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-next-on-pages", - "version": "1.12.1", + "version": "1.13.0", "main": "dist/index.js", "scripts": { "prebuild": "rimraf dist", diff --git a/packages/next-on-pages/CHANGELOG.md b/packages/next-on-pages/CHANGELOG.md index fcf7a6c95..23f8f6d46 100644 --- a/packages/next-on-pages/CHANGELOG.md +++ b/packages/next-on-pages/CHANGELOG.md @@ -1,5 +1,34 @@ # @cloudflare/next-on-pages +## 1.13.0 + +### Minor Changes + +- 4bd4c19: Use `request.cf.regionCode` for `x-vercel-ip-country-region` for keeping behavior consistent with documentation +- 78accfd: Add support for custom worker entrypoints. + + Example: + + ```ts + import nextOnPagesHandler from '@cloudflare/next-on-pages/fetch-handler'; + + export default { + async fetch(request, env, ctx) { + // do something before running the next-on-pages handler + + const response = await nextOnPagesHandler.fetch(request, env, ctx); + + // do something after running the next-on-pages handler + + return response; + }, + } as ExportedHandler<{ ASSETS: Fetcher }>; + ``` + +### Patch Changes + +- 2527917: Account for the Vercel CLI no longer generating prerender configs for dynamic ISR functions. + ## 1.12.1 ### Patch Changes diff --git a/packages/next-on-pages/package.json b/packages/next-on-pages/package.json index e692d3742..26cba25a3 100644 --- a/packages/next-on-pages/package.json +++ b/packages/next-on-pages/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/next-on-pages", - "version": "1.12.1", + "version": "1.13.0", "bin": "./bin/index.js", "exports": { ".": {