-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to remove "TypeError: Expected signal to be an instanceof AbortSignal"? #784
Comments
I can not provide reproducible code for now. sorry. How I encounter this problem?I am building a Electron.js app that can upload file to Azure Storage. This |
I hope this problem can be fixed, |
Using |
@Richienb Thank you for helping, so should I send a PR or? What's the next step? |
@1c7 PRs are welcome to fix this issue. |
@Richienb Really appreciate that, Thanks! Thanks for building node-fetch, helpful lib! |
Done, fixed itEnviroment
Solution:This can still minify code,
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackMainProcess: config => {
config.plugins.delete('uglify')
config.plugin('uglify').use(TerserPlugin, [{
terserOptions: {
mangle: false,
sourceMap: true,
compress: false,
keep_classnames: true,
keep_fnames: true,
output: {
comments: false,
},
}
}])
config.optimization.minimize(false);
console.log(config.toString())
},
}
},
} Result (This worked)This is
|
I couldn't get the TerserPlugin to work, so I fixed it another way, maybe someone else has a use for this as well. I wrapped the abort signal in the following class: https://gist.github.com/RuurdBijlsma/66e31f47c1e2f2c14b4652b43f65a8fc So instead of passing |
RuurdBijlsma sugarcode looks nice, but, can not be use in a typescript project:
Setting #1001 fix the issue, but only on NodeJS v15+ |
node-fetch expects the signal to be an instanceof their signal deferring abort signals for a future feat Solutions proposed here node-fetch/node-fetch#784
WA, which save single name // keep_classnames is required to workaround node-fetch Expected signal to be an instanceof AbortSignal
config.optimization = {
minimizer: [
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: true, // Must be set to true if using source-maps in production
terserOptions: {
// https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions
mangle: false,
sourceMap: true,
// compress: false,
keep_classnames: /AbortSignal/,
keep_fnames: /AbortSignal/,
output: {
beautify: true,
indent_level: 1
}
}
}),
],
}; |
… versions 9.0.0+ fail due to node-fetch/node-fetch#784
For those using esbuild, an equivalent solution to 1c7's solution is to set the "keepNames" option to true. |
I came up to this problem (using Esbuild) and fixed that by making the package that uses // build.js
// ...
const baseConfig = {
external: ['@sanity/client', /* ... other external dependencies ... */]
} I tried the suggestion from @domgenv to set |
#784 (comment) How could I achieve this with nuxtjs? |
A bit more information, in case anyone is curious: As mentioned in #784 (comment), current versions of node-fetch use |
Node.js 16.x internal AbortController can use in node-fetch 2.x. |
This could fix the AbortSignal error. I'm not sure. NodeJS is weird. This shouldn't ever be an issue. What the fuck? Relevant issues: - actions/toolkit#687 - node-fetch/node-fetch#784
For reference, when using terser with optimization: {
minimizer: [
new TerserPlugin({
minify: TerserPlugin.swcMinify,
terserOptions: {
mangle: {
// older versions of node-fetch requires AbortSignal to be untouched.
// https://github.com/node-fetch/node-fetch/issues/784
reserved: ['AbortSignal'],
},
},
}),
]
}, |
Some packages are very sensitive to minification. For example: node-fetch/node-fetch#784 which ends up in runtime error, and is hard to notice as they don't reproduce on local dev. Setting `--keep-names` should prevent those edge cases: https://esbuild.github.io/api/#keep-names
commit 9a73cbec2c10dce760d15b8421d619bf9ed27ee5 Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Date: Tue Feb 6 19:52:44 2024 +0000 Version Packages commit d21bb9f87e1d837666fe8104d4e199b2590725d6 Author: Javi Velasco <[email protected]> Date: Tue Feb 6 20:51:38 2024 +0100 [next] Preload common chunks (#11126) This PR adds requiring the modules that _we know_ will be required in the Next.js Lambda in the module scope in a attempt to make a better use of resources. --------- Co-authored-by: JJ Kasper <[email protected]> commit ab24444660339eaeacdaad7ff74594171a142b1e Author: Shohei Maeda <[email protected]> Date: Tue Feb 6 06:15:50 2024 +0900 [gatsby-plugin-vercel-builder] use --keep-names esbuild flag (#11117) Some packages are very sensitive to minification. For example: https://github.com/node-fetch/node-fetch/issues/784 which ends up in runtime error, and is hard to notice as they don't reproduce on local dev. Setting `--keep-names` should prevent those edge cases: https://esbuild.github.io/api/#keep-names commit 20080d4ae7697578f5c9c894304456f48d86ca6f Author: Vercel Release Bot <[email protected]> Date: Mon Feb 5 10:34:48 2024 -0500 [tests] Upgrade Turbo to version 1.12.2 (#11122) This auto-generated PR updates Turbo to version 1.12.2 commit c32a909afcedf0ee55777d5dcaecc0c8383dd8c8 Author: Steven <[email protected]> Date: Thu Feb 1 16:56:27 2024 -0500 [node][next][redwood][remix] bump `@vercel/[email protected]` (#11115) https://github.com/vercel/nft/releases/tag/0.26.3 commit abaa700cea44c723cfc851baa2dfe9e1ae2e8a5c Author: Andy <[email protected]> Date: Thu Feb 1 15:44:38 2024 +0100 [build-utils] Update variants type (#11111) Follow up to https://github.com/vercel/vercel/pull/11098 to address the type changes. commit 8ba0ce932434c6295fedb5307bee59a804b7e6a8 Author: Andy <[email protected]> Date: Thu Feb 1 10:28:12 2024 +0100 [cli] Add Variants to Build Output API (#11098) Makes adjustments to replace `flags` with `variants`. Also marks the current `flags` implementation as deprecated, as it should get removed soon. Which I'll do in a follow up PR. commit 4027a1833718a92be74b2b3c5a4df23745d19a36 Author: JJ Kasper <[email protected]> Date: Wed Jan 31 14:13:23 2024 -0800 Fix index normalizing for app outputs (#11099) This ensures we don't apply the index output normalizing for app paths which was previously already gated for prerenders but not all routes. commit 3bad73401b4ec1f61e515965732cde8dcc052b17 Author: JJ Kasper <[email protected]> Date: Tue Jan 30 16:34:17 2024 -0600 Fix rewrite RSC handling with trailingSlash (#11107) This ensures our rewrite patching to handle RSC requests handles a trailing slash being present with added regression tests. commit 50e135ea474751aa4839cfb1d8eb1f7407c4f4b3 Author: Vercel Release Bot <[email protected]> Date: Tue Jan 30 17:07:17 2024 -0500 Version Packages (#11106) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @vercel/[email protected] ### Minor Changes - Default ruby to only currently supported version (3.2.0) ([#11104](https://github.com/vercel/vercel/pull/11104)) ### Patch Changes - [tests] Update Gatsby fixture versions ([#11101](https://github.com/vercel/vercel/pull/11101)) ## [email protected] ### Patch Changes - Updated dependencies \[[`d05e41eea`](https://github.com/vercel/vercel/commit/d05e41eeaf97a024157d2bd843782c95c39389be), [`de63e3562`](https://github.com/vercel/vercel/commit/de63e356223467447cda539ddc435a892303afc7)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - More helpful error message when `vc deploy --prebuilt` has missing files ([#11105](https://github.com/vercel/vercel/pull/11105)) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit d05e41eeaf97a024157d2bd843782c95c39389be Author: Vercel Release Bot <[email protected]> Date: Tue Jan 30 16:35:14 2024 -0500 [tests] Update Gatsby fixture versions (#11101) Automatically generated PR to update Gatsby fixture versions in `@vercel/static-build` commit de63e356223467447cda539ddc435a892303afc7 Author: Trek Glowacki <[email protected]> Date: Tue Jan 30 15:10:17 2024 -0600 Default ruby to only currently supported version (3.2.0) (#11104) We're currently using the directory name at `./vendor/bundle/ruby/`[0] to determine ruby version. This directory is created as part of running `bundle install` during the build process. However, when multiple ruby versions are available, you can end up with multiple directories and the 0th entry at `./vendor/bundle/ruby/` isn't guaranteed to be the Ruby version specified in the project. Other companies in this space seem to do some order of - check for value in `.ruby-version` file - check for value passed into `ruby` directive in the Gemfile - check the value in the `*.gemspec` file if the Gemfile has a `gemspec` directive. We'll do that work in a future PR but for _now_ our only supported Ruby version is Ruby 3.2.x [as of 2023-11-22](https://vercel.com/changelog/upgrading-ruby-v2-7-to-v3-2). So this can be hard-coded for the moment. Skipping ruby tests now since these target _current_ prod where Ruby 3.2.x is not in `PATH` until we redeploy after this gets deployed. commit 4d1ab422d39bb1d2894b0018a4c69dd6646db873 Author: Nathan Rajlich <[email protected]> Date: Mon Jan 29 21:09:33 2024 -0800 [client] More helpful error message when `vc deploy --prebuilt` has missing files (#11105) Print a more helpful error message for the scenario the user encountered here: https://github.com/orgs/vercel/discussions/5612 What was happening in they were running `vc build` in one GH Action job, and then `vc deploy --prebuilt` in a different job. The later job was does not have `node_modules` populated, causing the deploy command to fail: <img width="1374" alt="Screenshot 2024-01-29 at 6 31 19 PM" src="https://github.com/vercel/vercel/assets/71256/0402c2fb-35bb-435c-bf4c-10368a27f3ee"> The updated error message hints to the user that the `node_modules` should be installed for the command to succeed: <img width="813" alt="Screenshot 2024-01-29 at 6 30 54 PM" src="https://github.com/vercel/vercel/assets/71256/2c095e61-9b8a-4dac-9eb7-56363a8b89b8"> commit a03cfa1040c03f4b82629adfd1640dae9a08d752 Author: Vercel Release Bot <[email protected]> Date: Mon Jan 29 12:19:25 2024 -0500 Version Packages (#11103) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Minor Changes - Added a new option to add a sensitive environment variable ([#11033](https://github.com/vercel/vercel/pull/11033)) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit eaae86d7764de38d4ae4ce0641c484c09085445f Author: Trek Glowacki <[email protected]> Date: Mon Jan 29 10:08:28 2024 -0600 [static-build] update umijs@4 fixture to latest (#11089) commit 77bc00f92e97a36f4979a8d64f6a769a7de5e00e Author: Ana Trajkovska <[email protected]> Date: Mon Jan 29 16:48:07 2024 +0100 [cli] Add support for sensitive env var (#11033) This PR updates the `vercel env add` command to support a new option called `--sensitive` that allows an env var to be created of type `sensitive`. commit 19a373288f967648ad1bb85394289f9a43e6902c Author: Vercel Release Bot <[email protected]> Date: Thu Jan 25 15:29:57 2024 -0500 Version Packages (#11079) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Minor Changes - Emit "filePathMap" in `vc-config.json` for `FileFsRef` instances ([#11060](https://github.com/vercel/vercel/pull/11060)) ### Patch Changes - Update `vc dev` to support `Lambda` instances without `zipBuffer` ([#11080](https://github.com/vercel/vercel/pull/11080)) - Updated dependencies \[[`322c88536`](https://github.com/vercel/vercel/commit/322c88536dfa0ba3892eb580858ee54f6b04ed3f), [`62ca2efa7`](https://github.com/vercel/vercel/commit/62ca2efa731c4df46d586b94078b2dcb1c0bb934)]: - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Minor Changes - Upload files referenced by "filePathMap" during `vc deploy --prebuilt` ([#11077](https://github.com/vercel/vercel/pull/11077)) ## @vercel/[email protected] ### Patch Changes - Remove deprecated `createLambda()` usage ([#11080](https://github.com/vercel/vercel/pull/11080)) ## @vercel/[email protected] ### Patch Changes - add ruby3 to path during build ([#11094](https://github.com/vercel/vercel/pull/11094)) - Remove deprecated `createLambda()` usage ([#11080](https://github.com/vercel/vercel/pull/11080)) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit 322c88536dfa0ba3892eb580858ee54f6b04ed3f Author: Sean Massa <[email protected]> Date: Thu Jan 25 14:16:53 2024 -0600 add ruby3 to path during build (#11094) Add ruby to the path plus some debug code. I'll remove the debug code after we verify this works. commit 1f259d5eb996c82bc276fd4ab46d8fa812a47270 Author: Trek Glowacki <[email protected]> Date: Wed Jan 24 15:51:10 2024 -0600 [static-build] Update parcel@2 fixture to latest minor (#11087) commit 3759da57ab5875b99e3c82960f7ffa5aa3808aa3 Author: Trek Glowacki <[email protected]> Date: Wed Jan 24 10:15:16 2024 -0600 [static-build] update blitzjs@2 fixture to latest minor (#11086) update blitzjs@2 fixture to latest minor commit 30ba68edf92488c8fa561d8e8af952a13bb8184f Author: Nathan Rajlich <[email protected]> Date: Tue Jan 23 12:54:34 2024 -0800 [cli] Emit "filePathMap" in `vc-config.json` for `FileFsRef` instances (#11060) This is a performance / bandwidth / storage space optimization for the **Build Output API**. When a Builder returns function which contains a file that is a `FileFsRef` instance, it _won't_ be copied into the corresponding `.func` directory, but instead will be added to a `"files"` mapping in the `.vc-config.json` file. This mapping represents keys which are destination file paths within the function filesystem, and values which are relative paths from the root of the project codebase. This allows for common files (i.e. `node_modules`) to be referenced (instead of physically copied on the disk). This introduces an additional complexity to `vc deploy --prebuilt`, in such that now it needs to build up the list of `"files"` referenced from the `.vc-config.json` files, and _also_ upload those file paths along with the `.vercel/output` directory. Depends on: * https://github.com/vercel/vercel/pull/11077 * https://github.com/vercel/vercel/pull/11080 commit 62ca2efa731c4df46d586b94078b2dcb1c0bb934 Author: Nathan Rajlich <[email protected]> Date: Tue Jan 23 11:53:36 2024 -0800 [python][ruby][cli] Remove deprecated `createLambda()` usage (#11080) * Use `Lambda` constructor instead of `createLambda()` * Return `FileBlob` instance for the entrypoint files, so that they do not get written to cwd * In `vc dev`, support `Lambda` instances which do not have `zipBuffer` property commit 2b71ee6b427996dc26547a8601cf8b65c74a2ccd Author: Nathan Rajlich <[email protected]> Date: Mon Jan 22 14:48:12 2024 -0800 [client] Upload files referenced by "filePathMap" during `vc deploy --prebuilt` (#11077) Ensure that files referenced by the `filePathMap` property in the `.vc-config.json` files for functions in the Build Output API `.vercel/output` directory are uploaded during the prebuilt deployment process. Related to / precursor for https://github.com/vercel/vercel/pull/11060. commit acb2acf953b2dfe921b7c27e9cb6479f3245921c Author: Vercel Release Bot <[email protected]> Date: Fri Jan 19 17:07:42 2024 -0500 Version Packages (#11034) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Minor Changes - chore: deprecate next/nuxt/gastby Speed Insights injection in favor of @vercel/speed-insights ([#11048](https://github.com/vercel/vercel/pull/11048)) ### Patch Changes - fix error when @vercel/analytics is a transitive dependency of the deployed application ([#10892](https://github.com/vercel/vercel/pull/10892)) - [cli] Add documentation string for `skip-domain` option ([#11051](https://github.com/vercel/vercel/pull/11051)) - Updated dependencies \[[`260125784`](https://github.com/vercel/vercel/commit/2601257846fa201fc9efde021a906c706f6191aa), [`cdddb33ad`](https://github.com/vercel/vercel/commit/cdddb33ad49f6080c49f4fff3767e6111acd0bbe), [`72d8604c9`](https://github.com/vercel/vercel/commit/72d8604c9dba108ccca41d6288b765a7ba727295), [`90d0455e1`](https://github.com/vercel/vercel/commit/90d0455e1ff7b5892ff4960226535f57f704ef6f), [`0716130e5`](https://github.com/vercel/vercel/commit/0716130e580a920d92d249d029ed37f92f2ca847), [`b6b151f39`](https://github.com/vercel/vercel/commit/b6b151f3917c5cb47226951446b9dbb96c7d872b), [`b185a7e20`](https://github.com/vercel/vercel/commit/b185a7e207b153c378bd3db2618eece3a3b6a93e)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Minor Changes - fix error when @vercel/analytics is a transitive dependency of the deployed application ([#10892](https://github.com/vercel/vercel/pull/10892)) ### Patch Changes - Use `worker.name` instead of edge function name to fix type error in `@vercel/next` ([#11050](https://github.com/vercel/vercel/pull/11050)) ## @vercel/[email protected] ### Minor Changes - chore: deprecate next/nuxt/gastby Speed Insights injection in favor of @vercel/speed-insights ([#11048](https://github.com/vercel/vercel/pull/11048)) ### Patch Changes - Updated dependencies \[]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Add experimental field to Lambda and size to FileFsRef output ([#11059](https://github.com/vercel/vercel/pull/11059)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`cdddb33ad`](https://github.com/vercel/vercel/commit/cdddb33ad49f6080c49f4fff3767e6111acd0bbe)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`cdddb33ad`](https://github.com/vercel/vercel/commit/cdddb33ad49f6080c49f4fff3767e6111acd0bbe)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`cdddb33ad`](https://github.com/vercel/vercel/commit/cdddb33ad49f6080c49f4fff3767e6111acd0bbe)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Fix functions without a output path edge case ([#11038](https://github.com/vercel/vercel/pull/11038)) - Update `@remix-run/dev` fork to v2.5.0 ([#11054](https://github.com/vercel/vercel/pull/11054)) - Update `@remix-run/dev` fork to v2.5.1 ([#11065](https://github.com/vercel/vercel/pull/11065)) ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`cdddb33ad`](https://github.com/vercel/vercel/commit/cdddb33ad49f6080c49f4fff3767e6111acd0bbe)]: - @vercel/[email protected] commit 2601257846fa201fc9efde021a906c706f6191aa Author: Damien Simonin Feugas <[email protected]> Date: Fri Jan 19 20:10:31 2024 +0100 [cli, static-builds] deprecation notice for speed insights injection (#11048) ### 🧐 What's in there? With the recent release of [`@vercel/speed-insights`](https://vercel.com/docs/speed-insights/package) own package (like [`@vercel/analytics`](https://vercel.com/docs/analytics/package)), it's time to encourage users to migrate. With the availability of `@vercel/speed-insights`, users will have to opt-in explicitly by installing the package. Their benefit is a better and fine-grained control of the reporting (in particular, per-application sample rate). ### ❗ Note to reviewers I used `console.warn` and hope it will stands out in the build logs. I'm happy to use anything else if you have better suggestions. There's also a deprecation warning in Next.js, which covers a related but slightly different case, when users explicitly pass analyticsId in their configuration. https://github.com/vercel/next.js/pull/60677 commit 30b0925218c3cee05d5f70996dc9059073e3c555 Author: jane <[email protected]> Date: Fri Jan 19 09:55:43 2024 -0700 fix support link (#11067) commit eddd432e066812721dc8d9cee0279a62365c081c Author: Vercel Release Bot <[email protected]> Date: Fri Jan 19 11:08:14 2024 -0500 [examples][tests] Upgrade Next.js to version 14.1.0 (#11066) This auto-generated PR updates 7 packages to Next.js version 14.1.0 Co-authored-by: Steven <[email protected]> commit b185a7e207b153c378bd3db2618eece3a3b6a93e Author: Vercel Release Bot <[email protected]> Date: Thu Jan 18 19:29:36 2024 -0500 [remix] Update `@remix-run/dev` to v2.5.1 (#11065) This auto-generated PR updates `@remix-run/dev` to version 2.5.1. commit 5c910bf93724ab9003a7f56a968b05a1f09fc85b Author: Trek Glowacki <[email protected]> Date: Thu Jan 18 17:15:45 2024 -0600 [static-build] bump stencil test fixture to latest (#11058) Bump stencil test fixture to latest commit cdddb33ad49f6080c49f4fff3767e6111acd0bbe Author: JJ Kasper <[email protected]> Date: Thu Jan 18 14:51:54 2024 -0800 Add experimental field to Lambda and size to FileFsRef output (#11059) This adds a new experimental field for new bundling behavior. This also adds an optional `size` field to the FileFsRef output since we already stat to avoid having to re-stat to get this value. commit 0da7ea7b78416d352c3c3bc4e19b82f471f4f791 Author: JJ Kasper <[email protected]> Date: Thu Jan 18 13:17:49 2024 -0800 Add retry handling when hitting SSO (#11061) This aims to reduce flakiness when SSO disabling for a test project is still disabling/propagating. x-ref: https://github.com/vercel/vercel/actions/runs/7563953104/job/20597320056?pr=11059 x-ref: https://github.com/vercel/vercel/actions/runs/7563953104/job/20597322078?pr=11059 --------- Co-authored-by: Nathan Rajlich <[email protected]> Co-authored-by: Sean Massa <[email protected]> commit 7de754398eeb4e3cfe77961a4e066125708eb522 Author: Trek Glowacki <[email protected]> Date: Thu Jan 18 12:10:22 2024 -0600 [cli] Add documentation string for `skip-domain` option (#11051) Text taken directly from https://vercel.com/docs/cli/deploy#skip-domain commit d4cc520814e23cb496c8ecac5331bc3c95a19317 Author: Trek Glowacki <[email protected]> Date: Wed Jan 17 13:57:44 2024 -0600 [tests] update FastAPI fixture to latest (#11053) Bumping this test fixture for python to keep up with releases. commit 03d07dd163ec3abf6e2198db6b4638d03f6d6516 Author: Sean Massa <[email protected]> Date: Wed Jan 17 11:22:47 2024 -0600 update codeowners (#11057) Update codeowners for shifting responsibilities. commit b6b151f3917c5cb47226951446b9dbb96c7d872b Author: Vercel Release Bot <[email protected]> Date: Wed Jan 17 00:07:26 2024 -0500 [remix] Update `@remix-run/dev` to v2.5.0 (#11054) This auto-generated PR updates `@remix-run/dev` to version 2.5.0. commit 8c4b732d415b5220877d526be9c3c8f15b406666 Author: Vercel Release Bot <[email protected]> Date: Tue Jan 16 19:07:06 2024 -0500 [tests] Upgrade Turbo to version 1.11.3 (#11021) This auto-generated PR updates Turbo to version 1.11.3 commit d4335f0b5600c753a61983e3c2fb3cc78fcaa43b Author: Nathan Rajlich <[email protected]> Date: Tue Jan 16 15:43:30 2024 -0800 Remove `@cb1kenobi` from CODEOWNERS (#11039) :salute: commit 90d0455e1ff7b5892ff4960226535f57f704ef6f Author: Nathan Rajlich <[email protected]> Date: Tue Jan 16 14:37:05 2024 -0800 [remix] Fix functions without a output path edge case (#11038) Fixes an edge case where a route without a path was causing the build to fail. Reproducible with this `remix.config.js` file: ```js export default { ignoredRouteFiles: ["**/.*"], routes(defineRoutes) { return defineRoutes((route) => { route("/", "foo.tsx", { index: true }); }); }, }; ``` commit 0716130e580a920d92d249d029ed37f92f2ca847 Author: Ethan Arrowood <[email protected]> Date: Tue Jan 16 13:56:28 2024 -0700 Use `worker.name` instead of edge function name to fix type error in `@vercel/next` (#11050) Uses another `name` property instead of the now deprecated one. commit 8b7479fb6e6c0560cfe317c223d2514930979041 Author: Ethan Arrowood <[email protected]> Date: Tue Jan 16 09:53:55 2024 -0700 [python] update fastapi to 0.105.0 (#10958) Updates python fixture `fastapi` to version `0.105.1` commit 72d8604c9dba108ccca41d6288b765a7ba727295 Author: Damien Simonin Feugas <[email protected]> Date: Thu Jan 11 15:48:20 2024 +0100 [cli] fix error when @vercel/analytics is a transitive dependency of the deployed application (#10892) commit 5fe7b57b8d07a2566dd2d04bd772d0ea74edc96b Author: Vercel Release Bot <[email protected]> Date: Wed Jan 10 16:51:08 2024 -0500 Version Packages (#11015) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @vercel/[email protected] ### Minor Changes - Deprecate `EdgeFunction#name` property ([#11010](https://github.com/vercel/vercel/pull/11010)) ## [email protected] ### Minor Changes - Serialize duplicate `EdgeFunction` references as symlinks in `vc build` ([#11027](https://github.com/vercel/vercel/pull/11027)) ### Patch Changes - Handle rate limit response when fetching /teams ([#11013](https://github.com/vercel/vercel/pull/11013)) - Display actual deployment's 'target' ([#11025](https://github.com/vercel/vercel/pull/11025)) - Updated dependencies \[[`98040ec24`](https://github.com/vercel/vercel/commit/98040ec24e1ee585865d11eb216b6525d39d209e)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`98040ec24`](https://github.com/vercel/vercel/commit/98040ec24e1ee585865d11eb216b6525d39d209e)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`98040ec24`](https://github.com/vercel/vercel/commit/98040ec24e1ee585865d11eb216b6525d39d209e)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Deprecate `EdgeFunction#name` property ([#11010](https://github.com/vercel/vercel/pull/11010)) ## @vercel/[email protected] ### Patch Changes - Deprecate `EdgeFunction#name` property ([#11010](https://github.com/vercel/vercel/pull/11010)) - Updated dependencies \[[`98040ec24`](https://github.com/vercel/vercel/commit/98040ec24e1ee585865d11eb216b6525d39d209e)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Deprecate `EdgeFunction#name` property ([#11010](https://github.com/vercel/vercel/pull/11010)) ## @vercel/[email protected] ### Patch Changes - Deprecate `EdgeFunction#name` property ([#11010](https://github.com/vercel/vercel/pull/11010)) - Updated dependencies \[]: - @vercel/[email protected] ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`98040ec24`](https://github.com/vercel/vercel/commit/98040ec24e1ee585865d11eb216b6525d39d209e)]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit ab826eb83d72747789abd95d47c7c3f7f92113c9 Author: Nathan Rajlich <[email protected]> Date: Wed Jan 10 13:17:59 2024 -0800 [cli] Serialize duplicate `EdgeFunction` references as symlinks in `vc build` (#11027) Enables the symlink optimization that currently exists for `Lambda` instances, but now for `EdgeFunction` instances as well. This will be particularly beneficial for Remix applications which use edge functions for many routes, since they will now all be represented by the same underling function in production. --------- Co-authored-by: Sean Massa <[email protected]> commit 98040ec24e1ee585865d11eb216b6525d39d209e Author: Nathan Rajlich <[email protected]> Date: Wed Jan 10 12:32:38 2024 -0800 [build-utils] Deprecate `EdgeFunction#name` property (#11010) The `name` property of the `EdgeFunction` class is no longer necessary on the infra side. Instead, its value is inferred based on the URL path that the function is representing. So deprecate the property on the class, and remove its usage throughout the codebase. commit 21c700aa93916fbb97c3d2778839b4b67f042b91 Author: Chris Barber <[email protected]> Date: Wed Jan 10 08:05:52 2024 -0600 [cli] Display actual deployment's 'target' (#11025) The CLI renders the deploy URL with the "Preview" label on first deploy because the CLI treats deploys as previews unless `--prod` is set. However the first deploy for a new project is always production, so the CLI needs to render the deploy URL based on the actual deployment's `target`. commit 50ed13b6edc14cabc5e4efe138258ac25f05477c Author: Juan Pinilla <[email protected]> Date: Mon Jan 8 22:26:57 2024 -0500 [docs] fix edge IP_HEADER_NAME header typedoc typo (#11028) Fix small typo in the `IP_HEADER_NAME` description. <img width="362" alt="Screenshot 2024-01-08 at 7 25 34 PM" src="https://github.com/vercel/vercel/assets/762112/db4d684a-5a12-45d0-8428-981bf2489999"> commit 597508ffa6bb59852e6d8ee2e1a42ba3c37fb233 Author: Trek Glowacki <[email protected]> Date: Thu Jan 4 09:04:54 2024 -0600 [cli] handle rate limit respones when fetching /teams endpoint (#11013) Not the biggest fan of handling this here but of all the various location we do response handling, this seems to be the appropriate location. commit 57ee3e1fd5f302fa2b3bc2c692a09c142be1f5bc Author: Vercel Release Bot <[email protected]> Date: Thu Jan 4 08:08:17 2024 +0100 [tests] Update Gatsby fixture versions (#10995) Automatically generated PR to update Gatsby fixture versions in `@vercel/static-build` commit 83952e45c2f3f6037e2324e801f6daea241573f2 Author: Vercel Release Bot <[email protected]> Date: Wed Jan 3 23:20:58 2024 +0100 Version Packages (#10982) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - Log extension execution failures ([#10937](https://github.com/vercel/vercel/pull/10937)) - Updated dependencies \[[`fbe08fe57`](https://github.com/vercel/vercel/commit/fbe08fe57eededc0bcd2409692b23d185c70069d), [`77585013d`](https://github.com/vercel/vercel/commit/77585013dec5fc406b8b7ea00918e49fdb8f10ec), [`c536a74bc`](https://github.com/vercel/vercel/commit/c536a74bc9e7188a87b292615fa88d6fc506b105), [`91f8763ed`](https://github.com/vercel/vercel/commit/91f8763edce672a3c05b6096db6084f1e6741384), [`7f8f5f865`](https://github.com/vercel/vercel/commit/7f8f5f86516934acb0c4b936ea601433c8d30c5c)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Remove `VERCEL_USE_GO_PROVIDED_RUNTIME` env var check ([#10968](https://github.com/vercel/vercel/pull/10968)) ## @vercel/[email protected] ### Patch Changes - Ensure rewrites handle RSC requests ([#11005](https://github.com/vercel/vercel/pull/11005)) - [next][node][redwood][remix] Bump `@vercel/[email protected]` ([#11009](https://github.com/vercel/vercel/pull/11009)) ## @vercel/[email protected] ### Patch Changes - Await waitUntil promises to resolve before exiting ([#10915](https://github.com/vercel/vercel/pull/10915)) - [next][node][redwood][remix] Bump `@vercel/[email protected]` ([#11009](https://github.com/vercel/vercel/pull/11009)) ## @vercel/[email protected] ### Patch Changes - [next][node][redwood][remix] Bump `@vercel/[email protected]` ([#11009](https://github.com/vercel/vercel/pull/11009)) ## @vercel/[email protected] ### Patch Changes - [next][node][redwood][remix] Bump `@vercel/[email protected]` ([#11009](https://github.com/vercel/vercel/pull/11009)) - Update `@remix-run/dev` fork to v2.4.1 ([#10992](https://github.com/vercel/vercel/pull/10992)) commit 8e8f44a21d642c49c5e69b7302467c44b3a75cc2 Author: Trek Glowacki <[email protected]> Date: Wed Jan 3 15:13:45 2024 -0600 [static-build] Update stencil fixture to latest 4.x (#10990) Update stencil framework fixture to latest minor in the major. commit 91f8763edce672a3c05b6096db6084f1e6741384 Author: Steven <[email protected]> Date: Wed Jan 3 15:18:30 2024 -0500 [next][node][redwood][remix] Bump `@vercel/[email protected]` (#11009) https://github.com/vercel/nft/releases/tag/0.26.2 https://github.com/vercel/nft/releases/tag/0.26.1 https://github.com/vercel/nft/releases/tag/0.25.0 commit b1e0523e7115d896513f0548c00d2228463dc9a8 Author: Brody McKee <[email protected]> Date: Wed Jan 3 16:05:18 2024 +1100 [cli] log extension execution failures (#10937) Co-authored-by: Nathan Rajlich <[email protected]> commit 7f8f5f86516934acb0c4b936ea601433c8d30c5c Author: Vercel Release Bot <[email protected]> Date: Wed Jan 3 01:05:52 2024 +0100 [remix] Update `@remix-run/dev` to v2.4.1 (#10992) This auto-generated PR updates `@remix-run/dev` to version 2.4.1. commit fbe08fe57eededc0bcd2409692b23d185c70069d Author: JJ Kasper <[email protected]> Date: Tue Jan 2 10:46:31 2024 -0800 [next] Ensure rewrites handle RSC requests (#11005) This ensures we add handling for our internal `.rsc` suffixes for rewrites since this currently fail to match by default unless the user manually adds handling for this. Updated our test fixture to ensure this is tested properly. commit 9903f11cc3a4face9e4690d8b40af966ea84c3d1 Author: Luc Leray <[email protected]> Date: Thu Dec 21 20:21:53 2023 +0100 [examples] Fix `ERR_PNPM_OUTDATED_LOCKFILE` when deploying SvelteKit example (#10984) Currently, [the SvelteKit (v1)](https://vercel.com/new/clone?b=main&s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fsveltekit-1&showOptionalTeamCreation=false&template=sveltekit-1&teamCreateStatus=hidden) example fails with: ``` ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json ``` This fixes the lockfile, and therefore fixes the example. --- As a side-quest, I also fixed the "unmet peer" warnings: ``` └─┬ @vercel/style-guide 4.0.2 ├── ✕ unmet peer eslint@^8.24.0: found 8.14.0 ├── ✕ unmet peer prettier@^2.7.0: found 2.6.2 └─┬ eslint-plugin-unicorn 43.0.2 └── ✕ unmet peer eslint@>=8.18.0: found 8.14.0 ``` commit 04f5f3f3d2f14399124d8bc1cc3b4e34c73b05f6 Author: Luc Leray <[email protected]> Date: Thu Dec 21 20:04:26 2023 +0100 [examples] Fix TypeScript error in ionic react example (#10985) The ionic react build currently fails with: ``` $ react-scripts build 09:06:23.084 | Creating an optimized production build... 09:06:45.231 | Failed to compile. 09:06:45.231 | 09:06:45.232 | /vercel/path0/node_modules/@types/babel__traverse/index.d.ts 09:06:45.232 | TypeScript error in /vercel/path0/node_modules/@types/babel__traverse/index.d.ts(314,13): 09:06:45.232 | Type expected. TS1110 09:06:45.232 | 09:06:45.232 | 312 \| // too complex for TS. So we type it as a general visitor only if the key contains `\|` 09:06:45.232 | 313 \| // this is good enough for non-visitor traverse options e.g. `noScope` 09:06:45.232 | > 314 \| [k: `${string}\|${string}`]: VisitNode<S, Node>; 09:06:45.232 | \| ^ 09:06:45.232 | 315 \| }; 09:06:45.232 | 316 \| 09:06:45.232 | 317 \| export type VisitNode<S, P extends Node> = VisitNodeFunction<S, P> \| VisitNodeObject<S, P>; 09:06:45.232 ``` Upgrading to TypeScript 4 fixes the issue. --------- Co-authored-by: Trek Glowacki <[email protected]> commit 5e3c077b6b99166f4d7f3652b4d7581f9ee7d3d5 Author: Trek Glowacki <[email protected]> Date: Thu Dec 21 11:01:52 2023 -0600 [static-build] update ionic/angular to latest v7 (#10986) update ionic/angular to latest v7. Needed to add and `overrides` entry. Some packages just specify angular >= 14 and this bumps us to angular 17, which we're not ready for yet. commit 2cc2fac8195790969cd31ff09ebc32cd6df15144 Author: Trek Glowacki <[email protected]> Date: Thu Dec 21 10:17:38 2023 -0600 Revert #10980 (#10989) Undoes #10980 (mostly). This appears to be some kind of caching issue. Works locally until you run `eslint` without `--cache` and then it will reproduce. Hopefully this is the last time and we're not playing whack-a-mole with these pragmas every day? commit c536a74bc9e7188a87b292615fa88d6fc506b105 Author: Seiya Nuta <[email protected]> Date: Thu Dec 21 19:11:34 2023 +0900 [node] Await waitUntil promises to resolve before exiting (#10915) Say you have a middleware (`middleware.js`) that looks like this: ```js export async default function middleware(req, ctx) { ctx.waitUntil(tooLongFunction()) } async function tooLongFunction() { console.log('tooLongFunction started') await new Promise((resolve) => setTimeout(resolve, 10000)) console.log('tooLongFunction finished') } ``` When you run this middleware locally with `vercel dev`, you won't see the `tooLongFunction finished` message because the server process is killed right after finishing the response. While Edge Runtime's `server.close()`, which awaits all `waitUntil` promises, is called, but `exit-hook`'s callback in CLI doesn't wait for the `close` promise to resolve. This PR fixes this by allowing an optional graceful shutdown callback instead of killing the process immediately. commit 838d56c31caaf4a57435aa33e75f2144fe8fe2ec Author: Trek Glowacki <[email protected]> Date: Wed Dec 20 15:25:04 2023 -0600 [static-build] Add Angular 17 fixture (#10969) Add Angular 17 fixture commit 77585013dec5fc406b8b7ea00918e49fdb8f10ec Author: Nathan Rajlich <[email protected]> Date: Wed Dec 20 11:35:12 2023 -0800 [go] Remove `VERCEL_USE_GO_PROVIDED_RUNTIME` env var check (#10968) Feature flag has been rolled out for long enough now. Remove this check. commit 44569e692933f853c4c7cd7055a19bb5997a4957 Author: Trek Glowacki <[email protected]> Date: Wed Dec 20 12:14:10 2023 -0600 Remove unneeded global directives (#10980) An update to latest `turbo` somehow made these no longer required? 🤷 --------- Co-authored-by: Sean Massa <[email protected]> commit 6194e8ca8daabd0cc5fd8a9c8691730cc7dbd78c Author: Vercel Release Bot <[email protected]> Date: Wed Dec 20 15:34:34 2023 +0100 Version Packages (#10971) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit 7b0adf371bae64d33ed0a1b966fc50b1f7c9639b Author: Wyatt Johnson <[email protected]> Date: Tue Dec 19 14:03:18 2023 -0700 [next] App Pages Prerender Manifest Update (#10978) Previously routes that did not have a `dataRoute` key in the `prerender-manifest.json` would be treated as an App Route. The logic has been updated (for partial prerendering support) to also consider the new `prefetchDataRoute`. Entries with either of these keys are treated as an App Page instead of an App Route. This also addressed the scenerio where a app route (`route.ts`) with a dynamic segment (`/api/[slug]/route.ts`) which doesn't emit a `.body` during build doesn't cause the build to fail by checking for the file first. commit 471bdd5b4506f1410afd7bca6efae3bc696cd939 Author: S3Prototype <[email protected]> Date: Wed Dec 20 05:29:59 2023 +0900 Update nuxt logo (#10977) We're using an out of date Nuxt logo, and the team has requested an update. This PR updates it commit 67fa2f3dd6a6d5a3504b7f9081e56deff7b36eab Author: Nathan Rajlich <[email protected]> Date: Mon Dec 18 15:45:45 2023 -0800 [build-utils] Extend Node v16 discontinue date to 2024-06-15 (#10967) AWS has extended the discontinue date for `nodejs16.x` Lambda runtime, so we will follow suit. commit b67b97023b884a5a37fad420945979e2683d1e6f Author: Vercel Release Bot <[email protected]> Date: Mon Dec 18 20:25:56 2023 +0100 Version Packages (#10944) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Major Changes - [cli] replace `--deprecated` with `--update-required` in `vc project ls` ([#10965](https://github.com/vercel/vercel/pull/10965)) ### Patch Changes - Fix `vercel bisect` selecting too many deployments ([#10956](https://github.com/vercel/vercel/pull/10956)) - Updated dependencies \[[`6a9002f22`](https://github.com/vercel/vercel/commit/6a9002f2296c5ccce4522c0fa9a8938c3d7a4849), [`4d63d9e95`](https://github.com/vercel/vercel/commit/4d63d9e954549d811063d259250d1865b7de2ba1)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Minor Changes - Adds new helper `getPathForPackageManager()` ([#10918](https://github.com/vercel/vercel/pull/10918)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`4d63d9e95`](https://github.com/vercel/vercel/commit/4d63d9e954549d811063d259250d1865b7de2ba1)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Add support for "rewrites" ([#10954](https://github.com/vercel/vercel/pull/10954)) - Updated dependencies \[[`4d63d9e95`](https://github.com/vercel/vercel/commit/4d63d9e954549d811063d259250d1865b7de2ba1)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`4d63d9e95`](https://github.com/vercel/vercel/commit/4d63d9e954549d811063d259250d1865b7de2ba1)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Update `@remix-run/dev` fork to v2.4.0 ([#10943](https://github.com/vercel/vercel/pull/10943)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`652a31275`](https://github.com/vercel/vercel/commit/652a3127533974c426ea8e5b1047af1aecddb57e)]: - @vercel/[email protected] ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`4d63d9e95`](https://github.com/vercel/vercel/commit/4d63d9e954549d811063d259250d1865b7de2ba1)]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit 9146885f80f342c18671b3bc1c28e08cb217c2f1 Author: Ethan Arrowood <[email protected]> Date: Mon Dec 18 12:10:07 2023 -0700 [cli] replace `--deprecated` with `--update-required` in `vc project ls` (#10965) Replaces the new `--deprecated` option with `--update-required` in the `vc project ls` command. commit 98bc41d49a58c0b932bbd355138ba372b8b25a55 Author: Mitch (a.k.a Voz) <[email protected]> Date: Mon Dec 18 10:59:19 2023 -0600 fix: Doc links in auth files (#10955) Fixed the links in the auth files to reflect what the doc links currently are. commit a38c102208204b27b63de85a7048fff7200749e4 Author: Vercel Release Bot <[email protected]> Date: Mon Dec 18 17:39:28 2023 +0100 [tests] Upgrade Turbo to version 1.11.2 (#10960) This auto-generated PR updates Turbo to version 1.11.2 commit 211c74a7d2a3a65fa2a7a4bcf1cf0154067a394d Author: Trek Glowacki <[email protected]> Date: Fri Dec 15 12:58:29 2023 -0600 [static-build] Add vite@5 test fixture (#10953) Add vite@5 test fixture commit 2a40ff564e5ae25e735893c4d29b6b81827dbf37 Author: Trek Glowacki <[email protected]> Date: Fri Dec 15 12:32:14 2023 -0600 [static-build] update ember-v5 fixture to latest minor (#10957) Update ember-v5 fixture to latest minor. commit d4cf2b9ae6c168d81d0a6f83bdee3024302b9896 Author: Trek Glowacki <[email protected]> Date: Fri Dec 15 12:07:55 2023 -0600 [static-build] Update astro-v3 to fixture to latest (#10952) Update astro-v3 to fixture to latest commit 7695316cd4150170b8fa31a99473b5bdf746f3d0 Author: Trek Glowacki <[email protected]> Date: Fri Dec 15 10:22:00 2023 -0600 [examples] Update sveltekit1 fixture to latest 1.x (#10948) Update sveltekit1 fixture to latest 1.x commit 7ecb146fdb82a18997ffd00f208e8a6fd947c0c6 Author: Trek Glowacki <[email protected]> Date: Fri Dec 15 03:02:18 2023 -0600 [examples] Update ionic-react to latest (#10949) Update ionic-react example to latest minor of its current major. commit ec3d6ad640b2f5ba313b133e7502e97b2b4a1a05 Author: Trek Glowacki <[email protected]> Date: Fri Dec 15 02:38:45 2023 -0600 [static-build] Update storybook-v7 fixture to latest (#10951) Update storybook-v7 fixture to latest commit 5d521af586e0691c8b61b3138bf159b64d9d5be1 Author: Nathan Rajlich <[email protected]> Date: Fri Dec 15 00:17:29 2023 -0800 [cli] Fix `vc bisect` selecting too many deployments (#10956) commit 652a3127533974c426ea8e5b1047af1aecddb57e Author: Nathan Rajlich <[email protected]> Date: Thu Dec 14 17:08:07 2023 -0800 [gatsby-plugin-vercel-builder] Add support for "rewrites" (#10954) commit bd516c505b3d30b92dcef294dd9809f876efd37b Author: Trek Glowacki <[email protected]> Date: Thu Dec 14 11:18:43 2023 -0600 [static-build] Update test fixture stencil-v4 to latest (#10950) Update test fixture stencil-v4 to latest commit 4d63d9e954549d811063d259250d1865b7de2ba1 Author: Felix Haus <[email protected]> Date: Thu Dec 14 16:17:20 2023 +0100 [build-utils] Add getPathForPackageManager (#10918) To use this outside of CLI we want a way to suppress the `console.log`s in `getEnvForPackageManager`. For achieving this, we introduce a new helper `getPathForPackageManager()` which contains the core logic. Best to review commit by commit + hide whitespace. **X-Ref** - [Internal Context](https://vercel.slack.com/archives/C03F2CMNGKG/p1701970097725689) commit 6a9002f2296c5ccce4522c0fa9a8938c3d7a4849 Author: Vercel Release Bot <[email protected]> Date: Thu Dec 14 05:05:10 2023 +0100 [remix] Update `@remix-run/dev` to v2.4.0 (#10943) This auto-generated PR updates `@remix-run/dev` to version 2.4.0. commit 2829d541b80c9deb6e3ccdb62b50ccb709912bba Author: Vercel Release Bot <[email protected]> Date: Wed Dec 13 15:46:11 2023 +0100 Version Packages (#10939) commit 6880dcb3c34f2a621cecb8f44273770c3ab71c05 Author: Ethan Arrowood <[email protected]> Date: Wed Dec 13 00:22:10 2023 -0700 [cli] Use new `deprecated` query param in projects api for `vc project ls --deprecated` (#10938) Uses the new `deprecated` query param for the GET /projects API instead of client-side filtering. This enables a better UX so that results are properly paginated. Here are some example runs: Pagination works as expected: <img width="831" alt="Screenshot 2023-12-12 at 20 59 57" src="https://github.com/vercel/vercel/assets/16144158/c592752d-bf49-41a0-8dae-8b8e233052f8"> Usage without the flag results in different output (as expected!) <img width="830" alt="Screenshot 2023-12-12 at 21 04 52" src="https://github.com/vercel/vercel/assets/16144158/c65461e0-b4a0-4725-aaae-a63739e6c8e9"> commit 832ba4b69a4618765ab4172e17b6975c1d8b593f Author: Trek Glowacki <[email protected]> Date: Tue Dec 12 15:08:12 2023 -0600 [tests] Add "Summary" Step to release workflow (#10936) commit 9a250d528c82caa58785567ef9abd7fd6aedf1ce Author: Vercel Release Bot <[email protected]> Date: Tue Dec 12 18:31:23 2023 +0100 Version Packages (#10935) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - [cli] double page limit for vc project ls --deprecated ([#10932](https://github.com/vercel/vercel/pull/10932)) - Updated dependencies \[[`d09dd1794`](https://github.com/vercel/vercel/commit/d09dd1794b5ffa28c15d3ad2880b90db2f4c06f0)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Reinstall dependencies during `prepareCache()` ([#10922](https://github.com/vercel/vercel/pull/10922)) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit 382ff2f526a04e5b16a0c861ca2243d90f5ef6f6 Author: Vercel Release Bot <[email protected]> Date: Tue Dec 12 17:52:07 2023 +0100 [tests] Update Gatsby fixture versions (#10931) Automatically generated PR to update Gatsby fixture versions in `@vercel/static-build` --------- Co-authored-by: Ethan Arrowood <[email protected]> commit f80a59c73fbab90981abc15e87292611518e766f Author: Ethan Arrowood <[email protected]> Date: Tue Dec 12 08:27:25 2023 -0700 [cli] double page limit for vc project ls --deprecated (#10932) As titled. Increases api page size for `vc project ls` when `--deprecated` is used. This is a temporary workaround since we do the filtering "client-side". We will eventually update the API itself to support this and then we can remove the client-based filter and reduce the page limit back to the ideal `20`. --------- Co-authored-by: Sean Massa <[email protected]> commit d09dd1794b5ffa28c15d3ad2880b90db2f4c06f0 Author: Nathan Rajlich <[email protected]> Date: Mon Dec 11 16:41:51 2023 -0800 [remix] Reinstall dependencies during `prepareCache()` (#10922) https://github.com/vercel/vercel/pull/10819 introduced a bug causing the `prepareCache()` function to fail (due to `@remix-run/dev` no longer being require-able). Even if it were not failing, the deps installed are not a valid representation of the user's `package.json` / lockfile. So to have more truthful cache contents, run `npm install` once again during `prepareCache()` to fix both issues at the same time. commit ab34a262054d34999796b80629b413d0ee8abc86 Author: Zack Tanner <[email protected]> Date: Mon Dec 11 16:24:43 2023 -0800 [tests] fix brittle next rewrite probe test (#10934) It seems the intention of this test was to verify that the rewritten file matches the original file, but it does so by just asserting on arbitrary script text, which is brittle and broke as a result of https://github.com/vercel/next.js/pull/56294 The right way to test this would be to fetch the original script and compare the contents with the rewritten script, but this relies on `__NEXT_SCRIPT__` magic which is only available in probe checks. For now this just asserts on a valid status code, as a chunk that isn't properly rewritten should 404 in this case. commit 7582571d943b1e5cfa2cea01b03493eee78c135f Author: Vercel Release Bot <[email protected]> Date: Mon Dec 11 17:39:34 2023 +0100 Version Packages (#10913) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit e6aaf79d04fafd032d9a28143b02d28766add415 Author: John Pham <[email protected]> Date: Fri Dec 8 11:25:42 2023 -0800 Update Next.js screenshot preview (#10921) This new screenshot matches the template. It removes the version number so this screenshot will not go stale. commit a1df25a197f5562dea7735c885f4adfba298cde4 Author: Ethan Arrowood <[email protected]> Date: Fri Dec 8 10:55:24 2023 -0700 [cli] Clean up `project ls --deprecate` (#10926) Follow up to #10919 Removes console.log statements and changes log into warning. commit dfe47f6e6c1d395ae24d802f4b7c98e39b9f90f4 Author: Ethan Arrowood <[email protected]> Date: Fri Dec 8 10:09:18 2023 -0700 [cli] add `--deprecated` option to `vc project ls` command (#10919) Adds a `--deprecated` option to the `vc project ls` command that will only show projects currently running on a soon-to-be-deprecated Node.js version. It also adds additional output providing more information to the user about what versions and a link to our documentation so they can learn more. Example: <img width="836" alt="Screenshot 2023-12-07 at 15 01 22" src="https://github.com/vercel/vercel/assets/16144158/3b7f7b13-802e-4af1-a76e-a158a477beb4"> commit 3a584316956d97865c4d6b930055b7fa522657f3 Author: Vercel Release Bot <[email protected]> Date: Fri Dec 8 05:17:39 2023 -0500 [examples][tests] Upgrade Next.js to version 14.0.4 (#10923) This auto-generated PR updates 7 packages to Next.js version 14.0.4 commit 204c3592c78fc544e62f0210b0e7e1e4cd382a0c Author: Vercel Release Bot <[email protected]> Date: Wed Dec 6 20:29:54 2023 -0500 [remix] Update `@remix-run/dev` to v2.3.1 (#10908) This auto-generated PR updates `@remix-run/dev` to version 2.3.1. commit 3cede43ca7ea3aec3ff33864b7d33da57891ddb2 Author: Nathan Rajlich <[email protected]> Date: Wed Dec 6 17:28:17 2023 -0800 [ruby] Remove `VERCEL_ALLOW_RUBY32` env var check (#10910) commit 1dbb22bb6d33657faa78376f527fe350188c5257 Author: Nathan Rajlich <[email protected]> Date: Wed Dec 6 16:57:10 2023 -0800 [ruby] Use Ruby 3.2 in test fixtures (#10909) commit f124779b35bce740e61a8797e4a547d4b9ba068b Author: Matt Straka <[email protected]> Date: Sat Dec 2 14:23:03 2023 -0500 Update README.md (#10898) commit 371c7a08f2b79a69c64f818fd26313e8d9ca41d7 Author: Vercel Release Bot <[email protected]> Date: Fri Dec 1 14:43:49 2023 -0500 Version Packages (#10896) commit 447c20fb99de5b7709641541b48ced0343e38352 Author: Ethan Arrowood <[email protected]> Date: Fri Dec 1 12:39:07 2023 -0700 Add GitHub Runner Image Version to turbo-cache-key.json (#10887) Add GitHub Runner Image Version to turbo-cache-key.json commit 0fe8c07194631b64cb054de5819032dbb69c0dbf Author: Nathan Rajlich <[email protected]> Date: Fri Dec 1 11:35:04 2023 -0800 [cli] Revert "forbids globally installed @vercel/speed-insights and @vercel/analytics (#10848)" (#10895) This reverts commit 6afdd7fb0b6172ae3a37e60162d9e9f1e8a7098e. commit 78d1d548d910de9b6edd2107d53262fdf48557d7 Author: Vercel Release Bot <[email protected]> Date: Thu Nov 30 14:01:27 2023 -0500 Version Packages (#10865) commit c41ff450c0420047a3e6988dd964647fb81520f6 Author: Trek Glowacki <[email protected]> Date: Wed Nov 29 08:15:17 2023 -0600 [cli] Fix behavior for combination of northstar user + team scope provided to cli as an argument. (#10884) Fixes a neat little bug with the intersection of northstar users, teams, and the behavior of `Array#find_index`: When selecting an org for various cli actions _non_ northstar users will see a select list with their user in the 0th position, and their teams in the 1..nth positions, like so: ``` // user: Logan // teams: [Avengers, X-Men] ○ Logan ○ Avengers ○ X-Men ``` We'd like to preselect either a team referenced in `client.config.currentTeam` or if said team cannot be found in the collection of a user's teams, preselect the user. So if `X-Men` is `currentTeam`, we find that item (element `1` in the teams array) and increment that value by `1` to account for the user being element `0` in the list of choices: ``` // currentTeam: X-Men // user: Logan // teams: [Avengers, X-Men] ○ Logan ○ Avengers ● X-Men ``` If we _can't_ find the `currentTeam` in the list of teams (or one isn't provided), `Array#find_index` returns `-1`, which we increment to by `1` to get the 0th element in the list of choices: ``` // currentTeam: undefined // user: Logan // teams: [Avengers, X-Men] ● Logan ○ Avengers ○ X-Men ``` Neat trick! However, Northstar users _don't_ use the user account as the 0th element in the list of choices. Northstar users will in fact have a team that represents a hidden default team with the same name as their `user.name` and this will be the 0th element in their teams: ``` // user: Logan // teams: [Logan, Avengers, X-Men] ○ Logan ○ Avengers ○ X-Men ``` This of course means the trick of `+1` to index of the team selects the wrong item _and_ can result in `undefined` in cases where the `currentTeam` references the last team. ``` // currentTeam: X-Men // user: Logan // teams: [Logan, Avengers, X-Men] ○ Logan ○ Avengers ○ X-Men ``` ● how'd we get out here?!?! 👀 To address the issue this PR: 1. calls `findIndex` on the array of _choices_ checking for matches to `currentTeam` 2. wraps that in `Math.max` to set to `0` if `find_index` returns `-1` when a `currentTeam` can't be found. commit ca2cbf06fbf252e23aff6e007d0df5ffc243b56e Author: Chris Barber <[email protected]> Date: Tue Nov 28 17:22:36 2023 -0600 [remix] Resolve static dir using non-parent `publicPath` segments (#10685) commit 2d86a2d4ba109176b8152925101cc45b07371b81 Author: Trek Glowacki <[email protected]> Date: Tue Nov 28 17:21:32 2023 -0600 [tests] tidy and make select-org tests more realistic (#10882) Tracking down a bug with "northstar" users and have a little prefactor that a) isolates setup code so it's less repeated b) makes the "northstar" tests more reflective of actual execution. Northstar users will always have a `currentTeam` value on their `client.config`: https://github.com/vercel/vercel/blob/aa0f3d712b6be4aa1af2f28acb0f4c7a6cdf9f16/packages/cli/src/util/get-scope.ts#L18-L20 And finally c) add tests for the case of a non-northstar users where a team scope is supplied. The final hypothetical matching group (northstart users with team scope provided) is the bug that I'll fix with a refactor. commit 4edfcd74b6dfd8e9cbc05a71d47578051a2a7d63 Author: Nathan Rajlich <[email protected]> Date: Tue Nov 28 14:41:39 2023 -0800 [remix] Fix issue where `npm install` was not properly injecting forked compiler (#10819) User reported a scenario in which npm was ignoring the second `npm install` command to replace the Remix compiler with our forked version. This seems like a bug in npm. Workaround that seems to work is to remove `@remix-run/dev` entirely and install our forked version as a "standard" dependency (instead of using the `npm:` syntax). The `bin` entry for `remix` should at that point be our forked compiler. commit c52bdf77585dfa41b25cabe2f9403827d0964169 Author: Nathan Rajlich <[email protected]> Date: Tue Nov 28 14:38:37 2023 -0800 [go] Set Lambda runtime to "provided.al2" behind env var (#10880) This is a re-land of https://github.com/vercel/vercel/pull/10856, but with the addition of the env var check so that we can feature flag this change. commit bc5ac1ec508998432cf134e2d7f01fd0efb4e11d Author: Nathan Rajlich <[email protected]> Date: Tue Nov 28 10:49:02 2023 -0800 [static-build] Add `yarn.lock` and force jsdom@22 to fix "umi-v2" test fixture (#10881) `jsdom@23` does not work with Node 16, but UmiJS v2 does not work with Node 18. So use the lower common denominator and force a older version of jsdom that still works with 16.x. commit aa0f3d712b6be4aa1af2f28acb0f4c7a6cdf9f16 Author: Lee Robinson <[email protected]> Date: Mon Nov 27 19:40:30 2023 -0600 chore: update Nuxt example (#10869) This updates the default Nuxt example to start with a static route, plus updates dependencies with the latest version. Demo: https://nuxt-vercel-inky.vercel.app/ --------- Co-authored-by: Trek Glowacki <[email protected]> commit e02212ae80af095abc1a660f39e4646c7763aca9 Author: Csaba Palfi <[email protected]> Date: Tue Nov 28 00:38:02 2023 +0000 Fix changeset lint for forks (#10737) commit a8934da6232b66a98e9ce43ebf5342eac664d40d Author: Lee Robinson <[email protected]> Date: Mon Nov 27 10:54:49 2023 -0600 Update placeholder for Nuxt to be correct command. (#10873) Co-authored-by: Trek Glowacki <[email protected]> commit 0e9bb30fd285492beadc365bece2ab1df67b387b Author: Vercel Release Bot <[email protected]> Date: Mon Nov 27 09:56:18 2023 -0500 [tests] Update Gatsby fixture versions (#10875) Automatically generated PR to update Gatsby fixture versions in `@vercel/static-build` commit 6afdd7fb0b6172ae3a37e60162d9e9f1e8a7098e Author: Damien Simonin Feugas <[email protected]> Date: Wed Nov 22 09:29:40 2023 +0100 [cli] forbids globally installed @vercel/speed-insights and @vercel/analytics (#10848) commit fdef0339f2d4a6d55507ad7c52fe91721e291467 Author: Vercel Release Bot <[email protected]> Date: Tue Nov 21 16:59:05 2023 -0500 Version Packages (#10861) commit 4636ae54c6c17709c1a058169cdca19c3df73ddb Author: Nathan Rajlich <[email protected]> Date: Tue Nov 21 13:57:23 2023 -0800 [ruby] Enable `ruby3.2` runtime (#10859) Allows for Ruby 3.2 Serverless Functions to be created. **Note:** New test fixtures will be added after this is deployed to production. commit 61a23f13824d6b6c836cedc0e78e32003ae483fb Author: Nathan Rajlich <[email protected]> Date: Tue Nov 21 13:13:24 2023 -0800 Revert "[go] Set Lambda runtime to `provided.al2`" (#10864) This reverts commit 4b8b4992c4524eb8bb97e90a72c137e329dbbeb1. We'll re-land this after Thanksgiving. commit 4b8b4992c4524eb8bb97e90a72c137e329dbbeb1 Author: Nathan Rajlich <[email protected]> Date: Tue Nov 21 11:29:53 2023 -0800 [go] Set Lambda runtime to "provided.al2" (#10856) Migrate from the deprecated `go1.x` runtime to the `provided.al2` runtime, [as suggested by AWS in their migration guide](https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-from-the-go1-x-runtime-to-the-custom-runtime-on-amazon-linux-2/). commit 611fbdd5ac55c74f58388f831a452c26de2ecbc0 Author: Zack Tanner <[email protected]> Date: Tue Nov 21 08:21:56 2023 -0800 Revert "[cli][tests] Work around Yarn + Corepack issue in tests" (#10860) commit ffd2f34c6c3d53bbb673aa3241845abc50e67c5e Author: Zack Tanner <[email protected]> Date: Mon Nov 20 16:44:46 2023 -0800 [next] ensure function configs apply to route groups (#10855) `getSourceFilePathFromPage` attempts to match patterns found in `vercel.json` with source files. However, the `page` argument to this function is stripped of route groups, so these files are erroneously skipped and function settings are not applied. For app-dir routes which might contain route groups, this checks an internal mapping which maps the "normalized" paths (e.g. `app/dashboard/[slug]/page.js`) to the file-system path (e.g. `app/dashboard/[slug]/(group)/page.js`) commit 8feaa9c3b35fae5f7aa5b475c08b362d273f8765 Author: Nathan Rajlich <[email protected]> Date: Mon Nov 20 13:47:39 2023 -0800 [cli][tests] Work around Yarn + Corepack issue in tests (#10858) CI started failing on corepack related tests with error: ``` error This project's package.json defines "packageManager": "yarn@[email protected]". However the current global version of Yarn is 1.22.21. ``` This appears to be a bug in the Yarn v1.22.21, which was released a week ago: https://github.com/yarnpkg/yarn/releases/tag/v1.22.21 Setting the `SKIP_YARN_COREPACK_CHECK` env var disables this new check which fixes the issue for us. **NOTE:** Review with [whitespace changes disabled](https://github.com/vercel/vercel/pull/10858/files?w=1) for an easier view. commit 31daff66affc115e0a3087b9dfefd28230c83e8b Author: Vercel Release Bot <[email protected]> Date: Sun Nov 19 13:54:04 2023 -0500 [examples][tests] Upgrade Next.js to version 14.0.3 (#10847) commit 48c6b2dcc3bb4817498efcee5daa80037c162af2 Author: Simon H <[email protected]> Date: Sun Nov 19 05:43:16 2023 +0100 [docs] mention nodejs20.x in LambdaRuntime (#10849) The error message when trying to deploy with an invalid runtime value leads you there, where `nodejs20.x` is missing currently commit 6f3ae1a0edb89c5e263bcff17b8fb1d72660acd8 Author: Vercel Release Bot <[email protected]> Date: Thu Nov 16 00:19:35 2023 -0500 Version Packages (#10836) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit 88da7463ce12df91d49fbde85cb617030d55f558 Auth…
FYI if anyone stumbles on this. I get this error in nextjs 14 application with "@azure/storage-blob": "^12.17.0": To bypass the error you can disable server minification via next.config.js file like this:
|
If anyone is using https://github.com/actions/toolkit/tree/main/packages/artifact v2 with esbuild and facing this issue, using |
https://github.com/node-fetch/node-fetch/blob/master/src/request.js?ts=2#L120
This line causing problem
Let's check out ths
isAbortSignal
functionWhen would it happen?
After Webpack bundle my code, code minification would change the name,
object[NAME] === 'AbortSignal'
is not true anymoreso this error would pop up,
The only solution is to turn off code minification
There should be a better way than this
Propose (What to do next)
object[NAME] === 'AbortSignal'
,in Ruby we have
class.name
to get the class name, I am not sure what's the equivalent in JSMaybe this StackOverflow question helpful: How to get a JavaScript object's class?
Thanks
The text was updated successfully, but these errors were encountered: