From f0104203f6c039efb43e8a4058699832577d034f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 May 2023 12:59:49 +0100 Subject: [PATCH] Version Packages (#213) --- .changeset/chilly-fireants-fold.md | 5 ----- .changeset/friendly-poets-smile.md | 12 ------------ .changeset/hot-eagles-love.md | 11 ----------- .changeset/new-waves-refuse.md | 9 --------- .changeset/orange-sloths-love.md | 7 ------- .changeset/pre.json | 20 -------------------- .changeset/red-radios-hug.md | 5 ----- .changeset/rotten-ducks-brush.md | 11 ----------- .changeset/six-squids-tickle.md | 5 ----- .changeset/slow-suits-deliver.md | 6 ------ .changeset/strong-llamas-protect.md | 5 ----- .changeset/tame-feet-think.md | 5 ----- .changeset/tricky-turtles-drum.md | 5 ----- .changeset/unlucky-chicken-join.md | 5 ----- CHANGELOG.md | 9 ++++++++- package.json | 2 +- 16 files changed, 9 insertions(+), 113 deletions(-) delete mode 100644 .changeset/chilly-fireants-fold.md delete mode 100644 .changeset/friendly-poets-smile.md delete mode 100644 .changeset/hot-eagles-love.md delete mode 100644 .changeset/new-waves-refuse.md delete mode 100644 .changeset/orange-sloths-love.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/red-radios-hug.md delete mode 100644 .changeset/rotten-ducks-brush.md delete mode 100644 .changeset/six-squids-tickle.md delete mode 100644 .changeset/slow-suits-deliver.md delete mode 100644 .changeset/strong-llamas-protect.md delete mode 100644 .changeset/tame-feet-think.md delete mode 100644 .changeset/tricky-turtles-drum.md delete mode 100644 .changeset/unlucky-chicken-join.md diff --git a/.changeset/chilly-fireants-fold.md b/.changeset/chilly-fireants-fold.md deleted file mode 100644 index 7e215eb16..000000000 --- a/.changeset/chilly-fireants-fold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Function generation now includes all node modules instead of only node:buffer diff --git a/.changeset/friendly-poets-smile.md b/.changeset/friendly-poets-smile.md deleted file mode 100644 index 577e405d4..000000000 --- a/.changeset/friendly-poets-smile.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -make the experimental minification the default behavior and add an option to disabled it - -as part of this: - -- make `--experimental-minify`|`-e` a no-op argument which simply shows a warning which indicates that it is - a deprecated option (we aren't removing the flag so that we don't break existing build scripts) -- add a `--disable-worker-minification`|`-m` option to disable the minification of the \_worker.js script (which - currently coincides with the experimental minification) diff --git a/.changeset/hot-eagles-love.md b/.changeset/hot-eagles-love.md deleted file mode 100644 index 5235933f6..000000000 --- a/.changeset/hot-eagles-love.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@cloudflare/next-on-pages': major ---- - -use and rely on AsyncLocalStorage - -previously we've been using the node AsyncLocalStorage in a non-breaking way but now we are committing -to in and using it to store the global env variables as well - -this is a breaking change since moving forward all app running using @cloudflare/next-on-pages must -have the nodejs_compat compatibility flag set (before not all needed that) diff --git a/.changeset/new-waves-refuse.md b/.changeset/new-waves-refuse.md deleted file mode 100644 index 19e651415..000000000 --- a/.changeset/new-waves-refuse.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -add nodejs_compat runtime check - -add a runtime check for the presence of the nodejs_compat flag at runtime so that if developers -forget to use such flag instead of receiving an internal server error they receive an error specifically -telling them that they have not specified the flag diff --git a/.changeset/orange-sloths-love.md b/.changeset/orange-sloths-love.md deleted file mode 100644 index 6943014b4..000000000 --- a/.changeset/orange-sloths-love.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -New routing system runtime handling and implementation. - -Improves support for advanced routing with Next.js applications on Pages, through leveraging the Vercel build output configuration. The Vercel build output specifies the relevant routing steps that are taken during the lifetime of a request, and this change implements a new system that handles these steps. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 5ce3f8139..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "mode": "pre", - "tag": "rc", - "initialVersions": { - "@cloudflare/next-on-pages": "0.10.1" - }, - "changesets": [ - "friendly-poets-smile", - "hot-eagles-love", - "orange-sloths-love", - "red-radios-hug", - "rotten-ducks-brush", - "six-squids-tickle", - "slow-suits-deliver", - "strong-llamas-protect", - "tame-feet-think", - "tricky-turtles-drum", - "unlucky-chicken-join" - ] -} diff --git a/.changeset/red-radios-hug.md b/.changeset/red-radios-hug.md deleted file mode 100644 index f3c4b8219..000000000 --- a/.changeset/red-radios-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -remove disable-chunks-dedup flag diff --git a/.changeset/rotten-ducks-brush.md b/.changeset/rotten-ducks-brush.md deleted file mode 100644 index 5506fd735..000000000 --- a/.changeset/rotten-ducks-brush.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -add pnpm files to ignored list for watch mode - -add the following files to the list of files we ignore for watch mode: - -- `pnpm-lock.yaml`: for consistency since all the other lock files are ignored -- `.pnpm-store`: to prevent potential infinite loops (https://github.com/cloudflare/next-on-pages/issues/212) -- `_tmp_*`: to prevent infinite loops, this is needed because pnpm saves/deletes temporary files to get the relative path to its store (https://github.com/pnpm/pnpm/blob/3f85e75dad4f5560a17367e5faad5a387bd47d05/store/store-path/src/index.ts#L41), such files start with `_tmp_` (see: https://github.com/zkochan/packages/blob/f559aef5b63c2477dd72ce156f35d6111af780f6/path-temp/index.js#L6) diff --git a/.changeset/six-squids-tickle.md b/.changeset/six-squids-tickle.md deleted file mode 100644 index 8cecbf189..000000000 --- a/.changeset/six-squids-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -Support for the internationalization (`i18n`) option in `next.config.js`, and locale redirects. diff --git a/.changeset/slow-suits-deliver.md b/.changeset/slow-suits-deliver.md deleted file mode 100644 index 460cda00e..000000000 --- a/.changeset/slow-suits-deliver.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -utilize Wrangler new capability of dynamically importing code to avoid the evaluation/run of javascript code -when not necessary, reducing the app's startup time (which causes apps to often hit the script startup CPU time limit) diff --git a/.changeset/strong-llamas-protect.md b/.changeset/strong-llamas-protect.md deleted file mode 100644 index 9d40d93ae..000000000 --- a/.changeset/strong-llamas-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Exit with non-zero status if vercel build fails in non-watch mode diff --git a/.changeset/tame-feet-think.md b/.changeset/tame-feet-think.md deleted file mode 100644 index 4a2cc45f5..000000000 --- a/.changeset/tame-feet-think.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Fix the prerendered route handling for favicons. diff --git a/.changeset/tricky-turtles-drum.md b/.changeset/tricky-turtles-drum.md deleted file mode 100644 index 30c2594c1..000000000 --- a/.changeset/tricky-turtles-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Fix the prerendered route handling for generated JSON files. diff --git a/.changeset/unlucky-chicken-join.md b/.changeset/unlucky-chicken-join.md deleted file mode 100644 index 15a89f763..000000000 --- a/.changeset/unlucky-chicken-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Prevent infinite loops from occuring when checking phases during routing. diff --git a/CHANGELOG.md b/CHANGELOG.md index dadda5a0f..6323a54c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # @cloudflare/next-on-pages -## 1.0.0-rc.0 +## 1.0.0 ### Major Changes @@ -23,6 +23,12 @@ - add a `--disable-worker-minification`|`-m` option to disable the minification of the \_worker.js script (which currently coincides with the experimental minification) +- e053756: add nodejs_compat runtime check + + add a runtime check for the presence of the nodejs_compat flag at runtime so that if developers + forget to use such flag instead of receiving an internal server error they receive an error specifically + telling them that they have not specified the flag + - 87e183b: New routing system runtime handling and implementation. Improves support for advanced routing with Next.js applications on Pages, through leveraging the Vercel build output configuration. The Vercel build output specifies the relevant routing steps that are taken during the lifetime of a request, and this change implements a new system that handles these steps. @@ -34,6 +40,7 @@ ### Patch Changes +- b3ff89f: Function generation now includes all node modules instead of only node:buffer - d81c2e3: add pnpm files to ignored list for watch mode add the following files to the list of files we ignore for watch mode: diff --git a/package.json b/package.json index 275a91149..dc988011a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/next-on-pages", - "version": "1.0.0-rc.0", + "version": "1.0.0", "bin": "./bin/index.js", "scripts": { "prettier": "npx prettier --ignore-unknown --ignore-path=.gitignore .",