From eae9f6a14ddcf745654aa72793851cebddcf11c6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 21:16:23 +0100 Subject: [PATCH] Version Packages (#387) Co-authored-by: github-actions[bot] --- .changeset/breezy-owls-rescue.md | 5 ---- .changeset/chilly-comics-doubt.md | 5 ---- .changeset/early-crabs-talk.md | 5 ---- .changeset/gorgeous-carrots-breathe.md | 5 ---- .changeset/khaki-parrots-visit.md | 5 ---- .changeset/seven-socks-roll.md | 5 ---- .changeset/strange-pianos-fry.md | 5 ---- .changeset/tame-goats-perform.md | 12 ---------- .changeset/tough-ghosts-boil.md | 5 ---- .../eslint-plugin-next-on-pages/CHANGELOG.md | 2 ++ .../eslint-plugin-next-on-pages/package.json | 2 +- packages/next-on-pages/CHANGELOG.md | 24 +++++++++++++++++++ packages/next-on-pages/package.json | 2 +- 13 files changed, 28 insertions(+), 54 deletions(-) delete mode 100644 .changeset/breezy-owls-rescue.md delete mode 100644 .changeset/chilly-comics-doubt.md delete mode 100644 .changeset/early-crabs-talk.md delete mode 100644 .changeset/gorgeous-carrots-breathe.md delete mode 100644 .changeset/khaki-parrots-visit.md delete mode 100644 .changeset/seven-socks-roll.md delete mode 100644 .changeset/strange-pianos-fry.md delete mode 100644 .changeset/tame-goats-perform.md delete mode 100644 .changeset/tough-ghosts-boil.md diff --git a/.changeset/breezy-owls-rescue.md b/.changeset/breezy-owls-rescue.md deleted file mode 100644 index 6d024faa4..000000000 --- a/.changeset/breezy-owls-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -Optimize build output function processing to increase next-on-pages' build speed by 2-4x. diff --git a/.changeset/chilly-comics-doubt.md b/.changeset/chilly-comics-doubt.md deleted file mode 100644 index 4d6cdac09..000000000 --- a/.changeset/chilly-comics-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Prevent prerender files from overwriting in the output directory when the file hashes are the same. diff --git a/.changeset/early-crabs-talk.md b/.changeset/early-crabs-talk.md deleted file mode 100644 index b6cdcc417..000000000 --- a/.changeset/early-crabs-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Completely avoid processing rsc functions due to them being identical to non-rsc functions. diff --git a/.changeset/gorgeous-carrots-breathe.md b/.changeset/gorgeous-carrots-breathe.md deleted file mode 100644 index 55b3acccf..000000000 --- a/.changeset/gorgeous-carrots-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Fix `next.config.js` rewrites unintentionally redirecting the user instead of rewriting the request. diff --git a/.changeset/khaki-parrots-visit.md b/.changeset/khaki-parrots-visit.md deleted file mode 100644 index 672d606ce..000000000 --- a/.changeset/khaki-parrots-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -Group code block identifiers by the function files that they are consumed in. This reduces the total number of unique files created for identifiers that are used in multiple functions, like Webpack chunks or manifests. diff --git a/.changeset/seven-socks-roll.md b/.changeset/seven-socks-roll.md deleted file mode 100644 index e8bacce7b..000000000 --- a/.changeset/seven-socks-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Fix middleware redirects not always bailing out of the routing stages. diff --git a/.changeset/strange-pianos-fry.md b/.changeset/strange-pianos-fry.md deleted file mode 100644 index e26f8b2f8..000000000 --- a/.changeset/strange-pianos-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -clarify that Yarn Plug'n'Play can't be used simply because not supported by vercel diff --git a/.changeset/tame-goats-perform.md b/.changeset/tame-goats-perform.md deleted file mode 100644 index 940d6ff77..000000000 --- a/.changeset/tame-goats-perform.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@cloudflare/next-on-pages': minor ---- - -add user-agent header to outgoing fetch requests - -mimic Next.js' behavior of setting (if not already present) a `user-agent` header set to `Next.js Middleware` -see: https://github.com/vercel/next.js/blob/6705c803021d3bdea7fec20e5d98f6899e49836d/packages/next/src/server/web/sandbox/context.ts#L318-L320 - -this helps making next-on-pages more consistent with Next.js on Vercel -(it and can solve issues in which such header is necessary, as for example when making Github rest api calls, -see: https://github.com/cloudflare/next-on-pages/issues/376#issuecomment-1628416988) diff --git a/.changeset/tough-ghosts-boil.md b/.changeset/tough-ghosts-boil.md deleted file mode 100644 index 649c0442b..000000000 --- a/.changeset/tough-ghosts-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/next-on-pages': patch ---- - -Fix the `/_next/static` exclusion in `_routes.json` being incorrect when the directory is not in the root. diff --git a/packages/eslint-plugin-next-on-pages/CHANGELOG.md b/packages/eslint-plugin-next-on-pages/CHANGELOG.md index 5777d5bae..b1697e7a2 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.4.0 + ## 1.3.1 ## 1.3.0 diff --git a/packages/eslint-plugin-next-on-pages/package.json b/packages/eslint-plugin-next-on-pages/package.json index 0b9333742..6faa349f2 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.3.1", + "version": "1.4.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 e897edbd4..af2e157bc 100644 --- a/packages/next-on-pages/CHANGELOG.md +++ b/packages/next-on-pages/CHANGELOG.md @@ -1,5 +1,29 @@ # @cloudflare/next-on-pages +## 1.4.0 + +### Minor Changes + +- 660ed5e: Optimize build output function processing to increase next-on-pages' build speed by 2-4x. +- 11afe0a: Group code block identifiers by the function files that they are consumed in. This reduces the total number of unique files created for identifiers that are used in multiple functions, like Webpack chunks or manifests. +- ee6b7dc: add user-agent header to outgoing fetch requests + + mimic Next.js' behavior of setting (if not already present) a `user-agent` header set to `Next.js Middleware` + see: https://github.com/vercel/next.js/blob/6705c803021d3bdea7fec20e5d98f6899e49836d/packages/next/src/server/web/sandbox/context.ts#L318-L320 + + this helps making next-on-pages more consistent with Next.js on Vercel + (it and can solve issues in which such header is necessary, as for example when making Github rest api calls, + see: https://github.com/cloudflare/next-on-pages/issues/376#issuecomment-1628416988) + +### Patch Changes + +- 660ed5e: Prevent prerender files from overwriting in the output directory when the file hashes are the same. +- 660ed5e: Completely avoid processing rsc functions due to them being identical to non-rsc functions. +- f08f2b9: Fix `next.config.js` rewrites unintentionally redirecting the user instead of rewriting the request. +- 6c28128: Fix middleware redirects not always bailing out of the routing stages. +- 9734795: clarify that Yarn Plug'n'Play can't be used simply because not supported by vercel +- 551fa05: Fix the `/_next/static` exclusion in `_routes.json` being incorrect when the directory is not in the root. + ## 1.3.1 ### Patch Changes diff --git a/packages/next-on-pages/package.json b/packages/next-on-pages/package.json index e36597873..44bbec28e 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.3.1", + "version": "1.4.0", "bin": "./bin/index.js", "scripts": { "lint": "eslint src",