Compare commits

...

9 Commits

Author SHA1 Message Date
Vercel Release Bot
c97407da49 Version Packages (#10361)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-21 15:10:45 -05:00
Steven
37f5c62700 BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 (#10369)
https://vercel.com/changelog/node-js-14-and-16-are-being-deprecated


https://github.com/nodejs/Release/blob/main/README.md#end-of-life-releases
2023-08-21 08:51:38 -04:00
Trek Glowacki
104ab0332d [cli] Wrap description in help output (#10370)
Co-authored-by: Trek Glowacki <trek.glowacki@vercel.com>
2023-08-18 15:01:45 -05:00
Vercel Release Bot
8ed71bea65 [examples][tests] Upgrade Next.js to version 13.4.18 (#10366)
This auto-generated PR updates 3 packages to Next.js version 13.4.18
2023-08-18 13:36:13 -04:00
Chris Barber
bc7a5d38be Exclude Gatsby from default 404 error route (#10365)
All static builds (except Next.js) have a default 404 error route. This PR add the exclusion of Gatsby from being assigned a 404 error route. The error routes are now introduced by the `gatsby-plugin-vercel-builder`.

Linear: https://linear.app/vercel/issue/VCCLI-749/fix-gatsby-404500-pages-directory-listing-bug
2023-08-18 17:10:40 +00:00
Nathan Rajlich
09174df6cf [remix] Only add workspace check flag for Yarn v1 (#10364)
Yarn v2/v3 do not require this flag.
2023-08-17 19:17:28 +00:00
Trek Glowacki
6aa2dc6f51 Connecting Datadog / GH Actions / Turbo / Jest to detect flakey tests (#10334)
Co-authored-by: Trek Glowacki <trek.glowacki@vercel.com>
Co-authored-by: Steven <steven@ceriously.com>
2023-08-17 10:31:16 -05:00
Vercel Release Bot
9db3794735 [examples][tests] Upgrade Next.js to version 13.4.17 (#10362)
This auto-generated PR updates 3 packages to Next.js version 13.4.17
2023-08-17 10:09:28 -04:00
Nathan Rajlich
ed806d8a6b [frameworks][fs-detectors] Add "supersedes" prop to Framework interface (#10345)
The `supersedes` property on the `Framework` interface may be specified by a framework in which the superseded framework should _not_ be included in the resulting framework matches during detection.

For example, a Hydrogen v2 project matches both the "remix" and "hydrogen" framework detectors, but we really only want "remix" to be selected.
2023-08-17 07:30:32 +00:00
85 changed files with 981 additions and 349 deletions

View File

@@ -47,7 +47,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 360
check_interval: 5
test:
timeout-minutes: 120
runs-on: ${{ matrix.runner }}
@@ -75,7 +74,6 @@ jobs:
run: npm i -g pnpm@8.3.1
- run: pnpm install
- name: fetch ssl certificate before build (linux, os x)
if: matrix.runner != 'windows-latest'
run: echo | openssl s_client -showcerts -servername 'api.vercel.com' -connect 76.76.21.21:443
@@ -88,6 +86,7 @@ jobs:
run: node utils/gen.js && node_modules/.bin/turbo run test --cache-dir=".turbo" --log-order=stream --scope=${{matrix.packageName}} --no-deps -- ${{ join(matrix.testPaths, ' ') }}
shell: bash
env:
JEST_JUNIT_OUTPUT_FILE: ${{github.workspace}}/.junit-reports/${{matrix.scriptName}}-${{matrix.packageName}}-${{matrix.chunkNumber}}-${{ matrix.runner }}.xml
VERCEL_CLI_VERSION: ${{ needs.setup.outputs.dplUrl }}/tarballs/vercel.tgz
VERCEL_TEST_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }}
VERCEL_TEST_REGISTRATION_URL: ${{ secrets.VERCEL_TEST_REGISTRATION_URL }}
@@ -97,6 +96,13 @@ jobs:
if: matrix.runner != 'windows-latest'
run: echo | openssl s_client -showcerts -servername 'api.vercel.com' -connect 76.76.21.21:443
- name: 'Upload Test Report to Datadog'
if: always()
run: 'npx @datadog/datadog-ci@2.18.1 junit upload --service vercel-cli .junit-reports'
env:
DATADOG_API_KEY: ${{secrets.DATADOG_API_KEY_CLI}}
DD_ENV: ci
summary:
name: Summary
runs-on: ubuntu-latest

1
.gitignore vendored
View File

@@ -31,3 +31,4 @@ __pycache__
.turbo
.eslintcache
turbo-cache-key.json
junit.xml

View File

@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2021",
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,

View File

@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es2021",
"module": "esnext",
"moduleResolution": "node16",
"lib": ["dom", "dom.iterable", "scripthost", "es2020"],
"lib": ["dom", "dom.iterable", "scripthost", "es2021"],
"jsx": "react-jsx",
"types": ["vite/client", "vitest/globals"],
"strict": true,

View File

@@ -13,9 +13,9 @@
"@types/react-dom": "18.2.7",
"autoprefixer": "10.4.15",
"eslint": "8.47.0",
"eslint-config-next": "13.4.16",
"next": "13.4.16",
"postcss": "8.4.27",
"eslint-config-next": "13.4.18",
"next": "13.4.18",
"postcss": "8.4.28",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwindcss": "3.3.3",
@@ -178,22 +178,22 @@
}
},
"node_modules/@next/env": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/env/-/env-13.4.16.tgz",
"integrity": "sha512-pCU0sJBqdfKP9mwDadxvZd+eLz3fZrTlmmDHY12Hdpl3DD0vy8ou5HWKVfG0zZS6tqhL4wnQqRbspdY5nqa7MA=="
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/env/-/env-13.4.18.tgz",
"integrity": "sha512-ZUG5Y/KSSerggdeD2LIYgiYziKTuSE9oE2RnW8bhNw6WunA8MrVfrWaCDTYSx/UG8qzPpSF+BiZNiHUiALxCdA=="
},
"node_modules/@next/eslint-plugin-next": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.4.16.tgz",
"integrity": "sha512-QuFtQl+oSEEQb0HMYBdvBoUaTiMxbY3go/MFkF3zOnfY0t84+IbAX78cw8ZCfr6cA6UcTq3nMIlCrHwDC/moxg==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.4.18.tgz",
"integrity": "sha512-GlOmUjZYYTjKl782mKk5a0bYEmKaouGaxPhi6t9yDILqrppU7JTIyONzLKQPszRXDCVZge0NFd4gwRs1ARZsMg==",
"dependencies": {
"glob": "7.1.7"
}
},
"node_modules/@next/swc-darwin-arm64": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.16.tgz",
"integrity": "sha512-Rl6i1uUq0ciRa3VfEpw6GnWAJTSKo9oM2OrkGXPsm7rMxdd2FR5NkKc0C9xzFCI4+QtmBviWBdF2m3ur3Nqstw==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.18.tgz",
"integrity": "sha512-d/73jvZe7dNTjLugDsIIy2AdQrwE2dFC9/QRr7yHmFm8mS5EiIHeDKzaqIsv9+JXKD9ZB1i/c0x7+F0PlKo1vQ==",
"cpu": [
"arm64"
],
@@ -206,9 +206,9 @@
}
},
"node_modules/@next/swc-darwin-x64": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.16.tgz",
"integrity": "sha512-o1vIKYbZORyDmTrPV1hApt9NLyWrS5vr2p5hhLGpOnkBY1cz6DAXjv8Lgan8t6X87+83F0EUDlu7klN8ieZ06A==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.18.tgz",
"integrity": "sha512-PwfvxgxG5rvUJppF02IdVAVx4HTtbZrS/Nz9qHfYfeFOQ9a+PijL8Xr9BJ21jiIS+dPQjwzvpsOdsC+DOrlzhg==",
"cpu": [
"x64"
],
@@ -221,9 +221,9 @@
}
},
"node_modules/@next/swc-linux-arm64-gnu": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.16.tgz",
"integrity": "sha512-JRyAl8lCfyTng4zoOmE6hNI2f1MFUr7JyTYCHl1RxX42H4a5LMwJhDVQ7a9tmDZ/yj+0hpBn+Aan+d6lA3v0UQ==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.18.tgz",
"integrity": "sha512-Nayn6yFeox9wKaRTLaWRvO3DjB8xEM3BnXu7QnQeZb0AgD484XmdxK13TYZW4jdNy3VJ5OyYIpL4mhkgWEVq/A==",
"cpu": [
"arm64"
],
@@ -236,9 +236,9 @@
}
},
"node_modules/@next/swc-linux-arm64-musl": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.16.tgz",
"integrity": "sha512-9gqVqNzUMWbUDgDiND18xoUqhwSm2gmksqXgCU0qaOKt6oAjWz8cWYjgpPVD0WICKFylEY/gvPEP1fMZDVFZ/g==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.18.tgz",
"integrity": "sha512-sQzJ5DFPvGlKjI97R17v2RxKJYYzHw4lJZ4xhK6wvyYJYYcn9JfIMyKCvLtfLgpU1tOUcbkmx7i8XC28sB1BsQ==",
"cpu": [
"arm64"
],
@@ -251,9 +251,9 @@
}
},
"node_modules/@next/swc-linux-x64-gnu": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.16.tgz",
"integrity": "sha512-KcQGwchAKmZVPa8i5PLTxvTs1/rcFnSltfpTm803Tr/BtBV3AxCkHLfhtoyVtVzx/kl/oue8oS+DSmbepQKwhw==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.18.tgz",
"integrity": "sha512-zqCLvGdz+T0V+set8zRHbkl3PQq0quUp5Dtuj1yGw0N9htp3beL1RVyhfSusbgxT82TRTXJe94IREgM8iYq6wg==",
"cpu": [
"x64"
],
@@ -266,9 +266,9 @@
}
},
"node_modules/@next/swc-linux-x64-musl": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.16.tgz",
"integrity": "sha512-2RbMZNxYnJmW8EPHVBsGZPq5zqWAyBOc/YFxq/jIQ/Yn3RMFZ1dZVCjtIcsiaKmgh7mjA/W0ApbumutHNxRqqQ==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.18.tgz",
"integrity": "sha512-V/+dWy32eo3iiWkro+0M4/vNp1anGrVzNp90teVKG5tl5t5qNGc/qWOgmgTG8JhowdJAxj7+fp+WltrcezqsDA==",
"cpu": [
"x64"
],
@@ -281,9 +281,9 @@
}
},
"node_modules/@next/swc-win32-arm64-msvc": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.16.tgz",
"integrity": "sha512-thDcGonELN7edUKzjzlHrdoKkm7y8IAdItQpRvvMxNUXa4d9r0ElofhTZj5emR7AiXft17hpen+QAkcWpqG7Jg==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.18.tgz",
"integrity": "sha512-anytZjyD1tAgfA/crOrVcUlm0yrSNKYKpg53NQ+Y83nAungrghBthZZiA1/QvmIs1Igu0Rqw/O6hqCOH63o8pw==",
"cpu": [
"arm64"
],
@@ -296,9 +296,9 @@
}
},
"node_modules/@next/swc-win32-ia32-msvc": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.16.tgz",
"integrity": "sha512-f7SE1Mo4JAchUWl0LQsbtySR9xCa+x55C0taetjUApKtcLR3AgAjASrrP+oE1inmLmw573qRnE1eZN8YJfEBQw==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.18.tgz",
"integrity": "sha512-lgsZDjbU0FQQH2pDSYeKIbVX9g8dqA7fUtgcAcwbj4eEuVW/K41rKFQceMM1kt0ktVUZ4uF2qOHsgebOWpDJIw==",
"cpu": [
"ia32"
],
@@ -311,9 +311,9 @@
}
},
"node_modules/@next/swc-win32-x64-msvc": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.16.tgz",
"integrity": "sha512-WamDZm1M/OEM4QLce3lOmD1XdLEl37zYZwlmOLhmF7qYJ2G6oYm9+ejZVv+LakQIsIuXhSpVlOvrxIAHqwRkPQ==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.18.tgz",
"integrity": "sha512-cS72bVNqICglP/uEzqNy26lfRH30zf4AbqnnhPhe+UxRg6d+OTtRQpFX7C4xtBP09FKA+MSSflNVkrn2ZfaWrA==",
"cpu": [
"x64"
],
@@ -722,6 +722,14 @@
"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="
},
"node_modules/asynciterator.prototype": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz",
"integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==",
"dependencies": {
"has-symbols": "^1.0.3"
}
},
"node_modules/autoprefixer": {
"version": "10.4.15",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.15.tgz",
@@ -889,9 +897,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001520",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001520.tgz",
"integrity": "sha512-tahF5O9EiiTzwTUqAeFjIZbn4Dnqxzz7ktrgGlMYNLH43Ul26IgTMH/zvL3DG0lZxBYnlT04axvInszUsZULdA==",
"version": "1.0.30001521",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001521.tgz",
"integrity": "sha512-fnx1grfpEOvDGH+V17eccmNjucGUnCbP6KL+l5KqBIerp26WK/+RQ7CIDE37KGJjaPyqWXXlFUyKiWmvdNNKmQ==",
"funding": [
{
"type": "opencollective",
@@ -1104,9 +1112,9 @@
}
},
"node_modules/electron-to-chromium": {
"version": "1.4.490",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.490.tgz",
"integrity": "sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A=="
"version": "1.4.495",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.495.tgz",
"integrity": "sha512-mwknuemBZnoOCths4GtpU/SDuVMp3uQHKa2UNJT9/aVD6WVRjGpXOxRGX7lm6ILIenTdGXPSTCTDaWos5tEU8Q=="
},
"node_modules/emoji-regex": {
"version": "9.2.2",
@@ -1177,6 +1185,27 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/es-iterator-helpers": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.13.tgz",
"integrity": "sha512-LK3VGwzvaPWobO8xzXXGRUOGw8Dcjyfk62CsY/wfHN75CwsJPbuypOYJxK6g5RyEL8YDjIWcl6jgd8foO6mmrA==",
"dependencies": {
"asynciterator.prototype": "^1.0.0",
"call-bind": "^1.0.2",
"define-properties": "^1.2.0",
"es-abstract": "^1.21.3",
"es-set-tostringtag": "^2.0.1",
"function-bind": "^1.1.1",
"get-intrinsic": "^1.2.1",
"globalthis": "^1.0.3",
"has-property-descriptors": "^1.0.0",
"has-proto": "^1.0.1",
"has-symbols": "^1.0.3",
"internal-slot": "^1.0.5",
"iterator.prototype": "^1.1.0",
"safe-array-concat": "^1.0.0"
}
},
"node_modules/es-set-tostringtag": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz",
@@ -1287,11 +1316,11 @@
}
},
"node_modules/eslint-config-next": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.4.16.tgz",
"integrity": "sha512-Of73d/FiaGf0GLCxxTGdh4rW8bRDvsqypylefkshE/uDDpQr8ifVQsD4UiB99rhegks7nJGkYtUnR3dC7kfFlw==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.4.18.tgz",
"integrity": "sha512-G15CYbsIHwV6Fzoly5SXo/Mj3pNqNkOzbf+wQcPod3LgVNviWVYlb9czjdiREXHq2VF6oV79Kv0Wunguj6RMEw==",
"dependencies": {
"@next/eslint-plugin-next": "13.4.16",
"@next/eslint-plugin-next": "13.4.18",
"@rushstack/eslint-patch": "^1.1.3",
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0",
"eslint-import-resolver-node": "^0.3.6",
@@ -1299,7 +1328,7 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.31.7",
"eslint-plugin-react-hooks": "5.0.0-canary-7118f5dd7-20230705"
"eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"
},
"peerDependencies": {
"eslint": "^7.23.0 || ^8.0.0",
@@ -1473,14 +1502,15 @@
}
},
"node_modules/eslint-plugin-react": {
"version": "7.33.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.1.tgz",
"integrity": "sha512-L093k0WAMvr6VhNwReB8VgOq5s2LesZmrpPdKz/kZElQDzqS7G7+DnKoqT+w4JwuiGeAhAvHO0fvy0Eyk4ejDA==",
"version": "7.33.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz",
"integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==",
"dependencies": {
"array-includes": "^3.1.6",
"array.prototype.flatmap": "^1.3.1",
"array.prototype.tosorted": "^1.1.1",
"doctrine": "^2.1.0",
"es-iterator-helpers": "^1.0.12",
"estraverse": "^5.3.0",
"jsx-ast-utils": "^2.4.1 || ^3.0.0",
"minimatch": "^3.1.2",
@@ -1501,9 +1531,9 @@
}
},
"node_modules/eslint-plugin-react-hooks": {
"version": "5.0.0-canary-7118f5dd7-20230705",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.0.0-canary-7118f5dd7-20230705.tgz",
"integrity": "sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==",
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz",
"integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==",
"engines": {
"node": ">=10"
},
@@ -2085,6 +2115,20 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-async-function": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz",
"integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==",
"dependencies": {
"has-tostringtag": "^1.0.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-bigint": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",
@@ -2166,6 +2210,31 @@
"node": ">=0.10.0"
}
},
"node_modules/is-finalizationregistry": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz",
"integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==",
"dependencies": {
"call-bind": "^1.0.2"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-generator-function": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz",
"integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==",
"dependencies": {
"has-tostringtag": "^1.0.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
@@ -2177,6 +2246,14 @@
"node": ">=0.10.0"
}
},
"node_modules/is-map": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz",
"integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-negative-zero": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz",
@@ -2233,6 +2310,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-set": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz",
"integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-shared-array-buffer": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz",
@@ -2286,6 +2371,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-weakmap": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz",
"integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-weakref": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz",
@@ -2297,6 +2390,18 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-weakset": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz",
"integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==",
"dependencies": {
"call-bind": "^1.0.2",
"get-intrinsic": "^1.1.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/isarray": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
@@ -2307,6 +2412,18 @@
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
},
"node_modules/iterator.prototype": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.0.tgz",
"integrity": "sha512-rjuhAk1AJ1fssphHD0IFV6TWL40CwRZ53FrztKx43yk2v6rguBYsY4Bj1VU4HmoMmKwZUlx7mfnhDf9cOp4YTw==",
"dependencies": {
"define-properties": "^1.1.4",
"get-intrinsic": "^1.1.3",
"has-symbols": "^1.0.3",
"has-tostringtag": "^1.0.0",
"reflect.getprototypeof": "^1.0.3"
}
},
"node_modules/jiti": {
"version": "1.19.1",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.19.1.tgz",
@@ -2522,11 +2639,11 @@
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw=="
},
"node_modules/next": {
"version": "13.4.16",
"resolved": "https://registry.npmjs.org/next/-/next-13.4.16.tgz",
"integrity": "sha512-1xaA/5DrfpPu0eV31Iro7JfPeqO8uxQWb1zYNTe+KDKdzqkAGapLcDYHMLNKXKB7lHjZ7LfKUOf9dyuzcibrhA==",
"version": "13.4.18",
"resolved": "https://registry.npmjs.org/next/-/next-13.4.18.tgz",
"integrity": "sha512-V/IIFA/znYYnOFlZQegrlhlWRpyIuCLXLGuH6pzCjwyxThNBZl4ItqoE3ffUyYY9f0X6XIQ2dX6UUBpNVSKZ8A==",
"dependencies": {
"@next/env": "13.4.16",
"@next/env": "13.4.18",
"@swc/helpers": "0.5.1",
"busboy": "1.6.0",
"caniuse-lite": "^1.0.30001406",
@@ -2542,15 +2659,15 @@
"node": ">=16.8.0"
},
"optionalDependencies": {
"@next/swc-darwin-arm64": "13.4.16",
"@next/swc-darwin-x64": "13.4.16",
"@next/swc-linux-arm64-gnu": "13.4.16",
"@next/swc-linux-arm64-musl": "13.4.16",
"@next/swc-linux-x64-gnu": "13.4.16",
"@next/swc-linux-x64-musl": "13.4.16",
"@next/swc-win32-arm64-msvc": "13.4.16",
"@next/swc-win32-ia32-msvc": "13.4.16",
"@next/swc-win32-x64-msvc": "13.4.16"
"@next/swc-darwin-arm64": "13.4.18",
"@next/swc-darwin-x64": "13.4.18",
"@next/swc-linux-arm64-gnu": "13.4.18",
"@next/swc-linux-arm64-musl": "13.4.18",
"@next/swc-linux-x64-gnu": "13.4.18",
"@next/swc-linux-x64-musl": "13.4.18",
"@next/swc-win32-arm64-msvc": "13.4.18",
"@next/swc-win32-ia32-msvc": "13.4.18",
"@next/swc-win32-x64-msvc": "13.4.18"
},
"peerDependencies": {
"@opentelemetry/api": "^1.1.0",
@@ -2861,9 +2978,9 @@
}
},
"node_modules/postcss": {
"version": "8.4.27",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.27.tgz",
"integrity": "sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==",
"version": "8.4.28",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.28.tgz",
"integrity": "sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==",
"funding": [
{
"type": "opencollective",
@@ -3076,6 +3193,25 @@
"node": ">=8.10.0"
}
},
"node_modules/reflect.getprototypeof": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.3.tgz",
"integrity": "sha512-TTAOZpkJ2YLxl7mVHWrNo3iDMEkYlva/kgFcXndqMgbo/AZUmmavEkdXV+hXtE4P8xdyEKRzalaFqZVuwIk/Nw==",
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.1.4",
"es-abstract": "^1.20.4",
"get-intrinsic": "^1.1.1",
"globalthis": "^1.0.3",
"which-builtin-type": "^1.1.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/regenerator-runtime": {
"version": "0.14.0",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
@@ -3759,6 +3895,45 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/which-builtin-type": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz",
"integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==",
"dependencies": {
"function.prototype.name": "^1.1.5",
"has-tostringtag": "^1.0.0",
"is-async-function": "^2.0.0",
"is-date-object": "^1.0.5",
"is-finalizationregistry": "^1.0.2",
"is-generator-function": "^1.0.10",
"is-regex": "^1.1.4",
"is-weakref": "^1.0.2",
"isarray": "^2.0.5",
"which-boxed-primitive": "^1.0.2",
"which-collection": "^1.0.1",
"which-typed-array": "^1.1.9"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/which-collection": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz",
"integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==",
"dependencies": {
"is-map": "^2.0.1",
"is-set": "^2.0.1",
"is-weakmap": "^2.0.1",
"is-weakset": "^2.0.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/which-typed-array": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz",

View File

@@ -14,9 +14,9 @@
"@types/react-dom": "18.2.7",
"autoprefixer": "10.4.15",
"eslint": "8.47.0",
"eslint-config-next": "13.4.16",
"next": "13.4.16",
"postcss": "8.4.27",
"eslint-config-next": "13.4.18",
"next": "13.4.18",
"postcss": "8.4.28",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwindcss": "3.3.3",

View File

@@ -5,7 +5,6 @@
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",

View File

@@ -5,10 +5,10 @@
"scripts": {
"test-unit": "pnpm test __tests__/unit/",
"test-e2e": "pnpm test __tests__/integration/",
"test": "jest --env node --verbose --runInBand --bail"
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail"
},
"devDependencies": {
"@types/jest": "27.4.1",
"@vercel/frameworks": "1.6.0"
"@vercel/frameworks": "2.0.0"
}
}

View File

@@ -9,7 +9,7 @@
],
"scripts": {
"build": "tsc",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test tests/unit"
},
"devDependencies": {

View File

@@ -4,9 +4,9 @@
"declaration": true,
"allowJs": true,
"moduleResolution": "node",
"target": "ES2020",
"target": "ES2021",
"module": "commonjs",
"lib": ["ES2020"],
"lib": ["ES2021"],
"resolveJsonModule": true,
"sourceMap": true
}

View File

@@ -1,5 +1,13 @@
# @vercel-internals/types
## 1.0.7
### Patch Changes
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/build-utils@7.0.0
- @vercel/routing-utils@3.0.0
## 1.0.6
### Patch Changes

View File

@@ -1,14 +1,14 @@
{
"private": true,
"name": "@vercel-internals/types",
"version": "1.0.6",
"version": "1.0.7",
"types": "index.d.ts",
"main": "index.d.ts",
"dependencies": {
"@types/node": "14.14.31",
"@vercel-internals/constants": "1.0.4",
"@vercel/build-utils": "6.8.3",
"@vercel/routing-utils": "2.2.1"
"@vercel/build-utils": "7.0.0",
"@vercel/routing-utils": "3.0.0"
},
"devDependencies": {
"@vercel-internals/tsconfig": "1.0.0",

View File

@@ -1,5 +1,11 @@
# @vercel/build-utils
## 7.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
## 6.8.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/build-utils",
"version": "6.8.3",
"version": "7.0.0",
"license": "Apache-2.0",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
@@ -12,7 +12,7 @@
},
"scripts": {
"build": "node build",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test test/unit.*test.*",
"test-e2e": "pnpm test test/integration.test.ts"
},
@@ -32,7 +32,7 @@
"@types/node-fetch": "^2.1.6",
"@types/semver": "6.0.0",
"@types/yazl": "2.4.2",
"@vercel/error-utils": "1.0.10",
"@vercel/error-utils": "2.0.0",
"@vercel/ncc": "0.24.0",
"aggregate-error": "3.0.1",
"async-retry": "1.2.3",
@@ -44,6 +44,7 @@
"glob": "8.0.3",
"ignore": "4.0.6",
"into-stream": "5.0.0",
"jest-junit": "16.0.0",
"js-yaml": "3.13.1",
"minimatch": "3.1.2",
"multistream": "2.1.1",

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,7 +13,7 @@
"outDir": "./dist",
"types": ["node", "jest"],
"strict": true,
"target": "ES2020"
"target": "ES2021"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]

View File

@@ -1,5 +1,27 @@
# vercel
## 32.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- text wrap help output description ([#10370](https://github.com/vercel/vercel/pull/10370))
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a), [`09174df6c`](https://github.com/vercel/vercel/commit/09174df6cfbe697ea13e75468b9cd3c6ec7ad01c)]:
- @vercel/build-utils@7.0.0
- @vercel/go@3.0.0
- @vercel/hydrogen@1.0.0
- @vercel/next@4.0.0
- @vercel/node@3.0.0
- @vercel/python@4.0.0
- @vercel/redwood@2.0.0
- @vercel/remix-builder@2.0.0
- @vercel/ruby@2.0.0
- @vercel/static-build@2.0.0
## 31.4.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "31.4.0",
"version": "32.0.0",
"preferGlobal": true,
"license": "Apache-2.0",
"description": "The command-line interface for Vercel",
@@ -11,7 +11,7 @@
"directory": "packages/cli"
},
"scripts": {
"test": "jest --env node --verbose --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
"test-unit": "pnpm test test/unit/",
"test-e2e": "rimraf test/fixtures/integration && pnpm test test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts",
"test-dev": "pnpm test test/dev/",
@@ -28,19 +28,19 @@
"scripts/preinstall.js"
],
"engines": {
"node": ">= 14"
"node": ">= 16"
},
"dependencies": {
"@vercel/build-utils": "6.8.3",
"@vercel/go": "2.5.1",
"@vercel/hydrogen": "0.0.64",
"@vercel/next": "3.9.4",
"@vercel/node": "2.15.10",
"@vercel/python": "3.1.60",
"@vercel/redwood": "1.1.15",
"@vercel/remix-builder": "1.10.1",
"@vercel/ruby": "1.3.76",
"@vercel/static-build": "1.4.0"
"@vercel/build-utils": "7.0.0",
"@vercel/go": "3.0.0",
"@vercel/hydrogen": "1.0.0",
"@vercel/next": "4.0.0",
"@vercel/node": "3.0.0",
"@vercel/python": "4.0.0",
"@vercel/redwood": "2.0.0",
"@vercel/remix-builder": "2.0.0",
"@vercel/ruby": "2.0.0",
"@vercel/static-build": "2.0.0"
},
"devDependencies": {
"@alex_neo/jest-expect-message": "1.0.5",
@@ -86,14 +86,14 @@
"@types/yauzl-promise": "2.1.0",
"@vercel-internals/constants": "1.0.4",
"@vercel-internals/get-package-json": "1.0.0",
"@vercel-internals/types": "1.0.6",
"@vercel/client": "12.6.6",
"@vercel/error-utils": "1.0.10",
"@vercel/frameworks": "1.6.0",
"@vercel/fs-detectors": "4.1.3",
"@vercel-internals/types": "1.0.7",
"@vercel/client": "13.0.0",
"@vercel/error-utils": "2.0.0",
"@vercel/frameworks": "2.0.0",
"@vercel/fs-detectors": "5.0.0",
"@vercel/fun": "1.0.4",
"@vercel/ncc": "0.24.0",
"@vercel/routing-utils": "2.2.1",
"@vercel/routing-utils": "3.0.0",
"@zeit/source-map-support": "0.6.2",
"ajv": "6.12.2",
"alpha-sort": "2.0.1",
@@ -134,6 +134,7 @@
"is-port-reachable": "3.1.0",
"is-url": "1.2.2",
"jaro-winkler": "0.2.8",
"jest-junit": "16.0.0",
"jest-matcher-utils": "29.3.1",
"jsonlines": "0.1.1",
"line-async-iterator": "3.0.0",

View File

@@ -36,6 +36,30 @@ type _CellOptions = CellOptions & {
wordWrap?: boolean;
};
const tableOptions = {
chars: {
top: '',
'top-mid': '',
'top-left': '',
'top-right': '',
bottom: '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
left: '',
'left-mid': '',
mid: '',
'mid-mid': '',
right: '',
'right-mid': '',
middle: '',
},
style: {
'padding-left': 0,
'padding-right': 0,
},
};
const globalCommandOptions: CommandOption[] = [
{
name: 'help',
@@ -116,6 +140,28 @@ const globalCommandOptions: CommandOption[] = [
},
];
// Use the word wrapping ability of cli-table3
// by creating a one row, one cell, one column table.
// This allows us to avoid pulling in the word-wrap
// package which ironically seems to do a worse job.
function wordWrap(text: string, maxWidth: number) {
const _tableOptions = Object.assign({}, tableOptions, {
colWidths: [maxWidth],
style: {
'padding-left': INDENT.length,
},
});
const table = new Table(_tableOptions);
table.push([
{
content: text,
wordWrap: true,
} as _CellOptions,
]);
return table.toString();
}
// Insert spaces in between non-whitespace items only
export function lineToString(line: string[]) {
let string = '';
@@ -217,30 +263,11 @@ export function buildCommandOptionLines(
const finalColumnWidth = options.columns - maxWidthOfUnwrappedColumns;
const table = new Table({
chars: {
top: '',
'top-mid': '',
'top-left': '',
'top-right': '',
bottom: '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
left: '',
'left-mid': '',
mid: '',
'mid-mid': '',
right: '',
'right-mid': '',
middle: '',
},
style: {
'padding-left': 0,
'padding-right': 0,
},
colWidths: [null, null, finalColumnWidth],
});
const table = new Table(
Object.assign({}, tableOptions, {
colWidths: [null, null, finalColumnWidth],
})
);
table.push(...rows);
return [
@@ -277,9 +304,12 @@ export function buildCommandExampleLines(command: Command) {
return outputArrayToString(outputArray);
}
function buildDescriptionLine(command: Command) {
const line: string[] = [INDENT, command.description, NEWLINE];
return lineToString(line);
function buildDescriptionLine(
command: Command,
options: BuildHelpOutputOptions
) {
let wrapingText = wordWrap(command.description, options.columns);
return `${wrapingText}${NEWLINE}`;
}
interface BuildHelpOutputOptions {
@@ -293,7 +323,7 @@ export function buildHelpOutput(
const outputArray: (string | null)[] = [
'',
buildCommandSynopsisLine(command),
buildDescriptionLine(command),
buildDescriptionLine(command, options),
buildCommandOptionLines(command.options, options, 'Options'),
buildCommandOptionLines(globalCommandOptions, options, 'Global Options'),
buildCommandExampleLines(command),

View File

@@ -58,7 +58,7 @@ export async function devRouter(
): Promise<RouteResult> {
let result: RouteResult | undefined;
let { pathname: reqPathname, search: reqSearch } = url.parse(reqUrl);
reqPathname ??= '/';
reqPathname = reqPathname || '/';
const reqQuery = parseQueryString(reqSearch);
const combinedHeaders: HttpHeadersConfig = { ...previousHeaders };
let status: number | undefined;
@@ -132,7 +132,7 @@ export async function devRouter(
!isDestUrl
) {
let { pathname } = url.parse(destPath);
pathname ??= '/';
pathname = pathname || '/';
const hasDestFile = await devServer.hasFilesystem(
pathname,
vercelConfig
@@ -190,7 +190,7 @@ export async function devRouter(
}
let { pathname: destPathname, search: destSearch } =
url.parse(destPath);
destPathname ??= '/';
destPathname = destPathname || '/';
const destQuery = parseQueryString(destSearch);
Object.assign(destQuery, reqQuery);
result = {

View File

@@ -4,7 +4,11 @@ exports[`help command help output snapshots column width 40 1`] = `
"
vercel deploy [project-path] [options]
Deploy your project to Vercel. The \`deploy\` command is the default command for the Vercel CLI, and can be omitted (\`vc deploy my-app\` equals \`vc my-app\`).
Deploy your project to Vercel. The
\`deploy\` command is the default
command for the Vercel CLI, and can
be omitted (\`vc deploy my-app\` equals
\`vc my-app\`).
Options:
@@ -166,7 +170,9 @@ exports[`help command help output snapshots column width 80 1`] = `
"
vercel deploy [project-path] [options]
Deploy your project to Vercel. The \`deploy\` command is the default command for the Vercel CLI, and can be omitted (\`vc deploy my-app\` equals \`vc my-app\`).
Deploy your project to Vercel. The \`deploy\` command is the default command
for the Vercel CLI, and can be omitted (\`vc deploy my-app\` equals \`vc
my-app\`).
Options:
@@ -234,7 +240,8 @@ exports[`help command help output snapshots column width 120 1`] = `
"
vercel deploy [project-path] [options]
Deploy your project to Vercel. The \`deploy\` command is the default command for the Vercel CLI, and can be omitted (\`vc deploy my-app\` equals \`vc my-app\`).
Deploy your project to Vercel. The \`deploy\` command is the default command for the Vercel CLI, and can be omitted
(\`vc deploy my-app\` equals \`vc my-app\`).
Options:

View File

@@ -5,10 +5,10 @@
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "ES2020",
"target": "ES2021",
"esModuleInterop": true,
"allowJs": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"resolveJsonModule": true,
"sourceMap": true,
"outDir": "./dist",

View File

@@ -1,5 +1,17 @@
# @vercel/client
## 13.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/build-utils@7.0.0
- @vercel/routing-utils@3.0.0
## 12.6.6
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/client",
"version": "12.6.6",
"version": "13.0.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://vercel.com",
@@ -16,11 +16,11 @@
"scripts": {
"build": "tsc",
"test-e2e": "pnpm test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test tests/unit.*test.*"
},
"engines": {
"node": ">= 14"
"node": ">= 16"
},
"devDependencies": {
"@types/async-retry": "1.4.5",
@@ -32,11 +32,12 @@
"@types/node-fetch": "2.5.4",
"@types/recursive-readdir": "2.2.0",
"@types/tar-fs": "1.16.1",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
},
"dependencies": {
"@vercel/build-utils": "6.8.3",
"@vercel/routing-utils": "2.2.1",
"@vercel/build-utils": "7.0.0",
"@vercel/routing-utils": "3.0.0",
"@zeit/fetch": "5.2.0",
"async-retry": "1.2.3",
"async-sema": "3.0.0",

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"outDir": "dist",
@@ -12,7 +12,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"target": "ES2020",
"target": "ES2021",
"skipLibCheck": true
},
"include": ["./src"]

View File

@@ -0,0 +1,7 @@
# @vercel/edge
## 1.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/edge",
"version": "0.3.4",
"version": "1.0.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
@@ -16,13 +16,14 @@
},
"scripts": {
"build": "tsup src/index.ts --dts --format esm,cjs",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test",
"build:docs": "typedoc && node scripts/fix-links.js && prettier --write docs/**/*.md docs/*.md"
},
"devDependencies": {
"@edge-runtime/jest-environment": "2.2.3",
"@types/jest": "27.4.1",
"jest-junit": "16.0.0",
"ts-node": "8.9.1",
"tsup": "6.1.2",
"typedoc": "0.24.6",

View File

@@ -2,8 +2,8 @@
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"target": "ES2020",
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"target": "ES2021",
"module": "commonjs",
"outDir": "dist",
"sourceMap": false,

View File

@@ -0,0 +1,7 @@
# @vercel/error-utils
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/error-utils",
"version": "1.0.10",
"version": "2.0.0",
"description": "A collection of error utilities for vercel/vercel",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -11,13 +11,14 @@
},
"scripts": {
"build": "tsc",
"test": "jest --coverage --env node --verbose",
"test": "jest --reporters=default --reporters=jest-junit --coverage --env node --verbose",
"test-unit": "pnpm test"
},
"license": "Apache-2.0",
"devDependencies": {
"@types/jest": "29.2.1",
"@types/node": "14.18.33",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
}
}

View File

@@ -3,7 +3,7 @@
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -15,7 +15,7 @@
"types": ["node", "jest"],
"strict": true,
"sourceMap": true,
"target": "ES2020"
"target": "ES2021"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]

View File

@@ -1,5 +1,15 @@
# @vercel/frameworks
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Minor Changes
- Add "supersedes" prop to Framework interface ([#10345](https://github.com/vercel/vercel/pull/10345))
## 1.6.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/frameworks",
"version": "1.6.0",
"version": "2.0.0",
"main": "./dist/frameworks.js",
"types": "./dist/frameworks.d.ts",
"files": [
@@ -14,7 +14,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test"
},
"dependencies": {
@@ -26,9 +26,10 @@
"@types/js-yaml": "3.12.1",
"@types/node": "14.18.33",
"@types/node-fetch": "2.5.8",
"@vercel/error-utils": "1.0.10",
"@vercel/routing-utils": "2.2.1",
"@vercel/error-utils": "2.0.0",
"@vercel/routing-utils": "3.0.0",
"ajv": "6.12.2",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
}
}

View File

@@ -199,6 +199,7 @@ export const frameworks = [
description: 'A new Remix app — the result of running `npx create-remix`.',
website: 'https://remix.run',
sort: 6,
supersedes: 'hydrogen',
useRuntime: { src: 'package.json', use: '@vercel/remix-builder' },
ignoreRuntimes: ['@vercel/node'],
detectors: {
@@ -1698,6 +1699,7 @@ export const frameworks = [
tagline: 'React framework for headless commerce',
description: 'React framework for headless commerce',
website: 'https://hydrogen.shopify.dev',
supersedes: 'vite',
useRuntime: { src: 'package.json', use: '@vercel/hydrogen' },
envPrefix: 'PUBLIC_',
detectors: {

View File

@@ -219,4 +219,8 @@ export interface Framework {
* @example "0.13.0"
*/
defaultVersion?: string;
/**
* Slug of another framework preset in which this framework supersedes.
*/
supersedes?: string;
}

View File

@@ -199,6 +199,7 @@ const Schema = {
dependency: { type: 'string' },
cachePattern: { type: 'string' },
defaultVersion: { type: 'string' },
supersedes: { type: 'string' },
},
},
};

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,7 +13,7 @@
"outDir": "./dist",
"types": ["node", "jest"],
"strict": true,
"target": "ES2020"
"target": "ES2021"
},
"include": ["src/*.ts"],
"exclude": ["node_modules"]

View File

@@ -1,5 +1,22 @@
# @vercel/fs-detectors
## 5.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Exclude Gatsby from default 404 error route ([#10365](https://github.com/vercel/vercel/pull/10365))
- Add "supersedes" prop to Framework interface ([#10345](https://github.com/vercel/vercel/pull/10345))
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a), [`ed806d8a6`](https://github.com/vercel/vercel/commit/ed806d8a6b560b173ba80b24cbfafaa6f179d8b1)]:
- @vercel/error-utils@2.0.0
- @vercel/frameworks@2.0.0
- @vercel/routing-utils@3.0.0
## 4.1.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/fs-detectors",
"version": "4.1.3",
"version": "5.0.0",
"description": "Vercel filesystem detectors",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -15,14 +15,14 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test test/unit.*test.*",
"test-e2e": "pnpm test test/integration.test.ts"
},
"dependencies": {
"@vercel/error-utils": "1.0.10",
"@vercel/frameworks": "1.6.0",
"@vercel/routing-utils": "2.2.1",
"@vercel/error-utils": "2.0.0",
"@vercel/frameworks": "2.0.0",
"@vercel/routing-utils": "3.0.0",
"glob": "8.0.3",
"js-yaml": "4.1.0",
"json5": "2.2.2",
@@ -36,7 +36,8 @@
"@types/minimatch": "3.0.5",
"@types/node": "14.18.33",
"@types/semver": "7.3.10",
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
}
}

View File

@@ -992,6 +992,7 @@ function getRouteResult(
const rewriteRoutes: Route[] = [];
const errorRoutes: Route[] = [];
const framework = frontendBuilder?.config?.framework || '';
const isGatsby = framework === 'gatsby';
const isNextjs =
framework === 'nextjs' || isOfficialRuntime('next', frontendBuilder?.use);
const ignoreRuntimes = slugToFramework.get(framework)?.ignoreRuntimes;
@@ -1071,8 +1072,8 @@ function getRouteResult(
});
}
if (options.featHandleMiss && !isNextjs) {
// Exclude Next.js to avoid overriding custom error page
if (options.featHandleMiss && !isNextjs && !isGatsby) {
// Exclude Next.js (and Gatsby) to avoid overriding custom error page
// https://nextjs.org/docs/advanced-features/custom-error-page
errorRoutes.push({
status: 404,

View File

@@ -135,6 +135,30 @@ async function matches(
};
}
function removeSupersededFramework(
matches: (Pick<Framework, 'supersedes' | 'slug'> | null)[],
slug: string
) {
const index = matches.findIndex(f => f?.slug === slug);
const framework = matches[index];
if (framework) {
if (framework.supersedes) {
removeSupersededFramework(matches, framework.supersedes);
}
matches.splice(index, 1);
}
}
export function removeSupersededFrameworks(
matches: (Pick<Framework, 'supersedes' | 'slug'> | null)[]
) {
for (const match of matches.slice()) {
if (match?.supersedes) {
removeSupersededFramework(matches, match.supersedes);
}
}
}
// TODO: Deprecate and replace with `detectFrameworkRecord`
export async function detectFramework({
fs,
@@ -143,12 +167,13 @@ export async function detectFramework({
const result = await Promise.all(
frameworkList.map(async frameworkMatch => {
if (await matches(fs, frameworkMatch)) {
return frameworkMatch.slug;
return frameworkMatch;
}
return null;
})
);
return result.find(res => res !== null) ?? null;
removeSupersededFrameworks(result);
return result.find(res => res !== null)?.slug ?? null;
}
/**
@@ -166,6 +191,7 @@ export async function detectFrameworks({
return null;
})
);
removeSupersededFrameworks(result);
return result.filter(res => res !== null) as Framework[];
}
@@ -194,9 +220,8 @@ export async function detectFrameworkRecord({
return null;
})
);
const frameworkRecord = result.find(res => res !== null) ?? null;
return frameworkRecord;
removeSupersededFrameworks(result);
return result.find(res => res !== null) ?? null;
}
export function detectFrameworkVersion(

View File

@@ -1,7 +1,15 @@
import { join } from 'path';
import frameworkList from '@vercel/frameworks';
import workspaceManagers from '../src/workspaces/workspace-managers';
import { detectFramework, detectFrameworks } from '../src';
import {
detectFramework,
detectFrameworks,
LocalFileSystemDetector,
} from '../src';
import VirtualFilesystem from './virtual-file-system';
import { removeSupersededFrameworks } from '../src/detect-framework';
const EXAMPLES_DIR = join(__dirname, '../../../examples');
describe('DetectorFilesystem', () => {
it('should return the directory contents relative to the cwd', async () => {
@@ -153,6 +161,35 @@ describe('DetectorFilesystem', () => {
});
});
describe('removeSupersededFrameworks()', () => {
it('should remove "vite" when "hydrogen" is present', () => {
const matches = [
{ slug: 'storybook' },
{ slug: 'vite' },
{ slug: 'hydrogen', supersedes: 'vite' },
];
removeSupersededFrameworks(matches);
expect(matches).toEqual([
{ slug: 'storybook' },
{ slug: 'hydrogen', supersedes: 'vite' },
]);
});
it('should remove "hydrogen" when "remix" is present', () => {
const matches = [
{ slug: 'storybook' },
{ slug: 'vite' },
{ slug: 'hydrogen', supersedes: 'vite' },
{ slug: 'remix', supersedes: 'hydrogen' },
];
removeSupersededFrameworks(matches);
expect(matches).toEqual([
{ slug: 'storybook' },
{ slug: 'remix', supersedes: 'hydrogen' },
]);
});
});
describe('detectFramework()', () => {
it('Do not detect anything', async () => {
const fs = new VirtualFilesystem({
@@ -418,7 +455,33 @@ describe('detectFrameworks()', () => {
expect(await detectFrameworks({ fs, frameworkList })).toEqual([]);
});
it('Detect `nextjs` and `storybook`', async () => {
it('Should detect `nextjs`', async () => {
const fs = new VirtualFilesystem({
'package.json': JSON.stringify({
dependencies: {
next: 'latest',
},
}),
});
const slugs = (await detectFrameworks({ fs, frameworkList })).map(
f => f.slug
);
expect(slugs).toEqual(['nextjs']);
});
it('Should detect `remix`', async () => {
const fs = new VirtualFilesystem({
'remix.config.js': '',
});
const slugs = (await detectFrameworks({ fs, frameworkList })).map(
f => f.slug
);
expect(slugs).toEqual(['remix']);
});
it('Should detect `nextjs` and `storybook`', async () => {
const fs = new VirtualFilesystem({
'package.json': JSON.stringify({
dependencies: {
@@ -433,4 +496,22 @@ describe('detectFrameworks()', () => {
);
expect(slugs).toEqual(['nextjs', 'storybook']);
});
it('Should detect "hydrogen" template as `hydrogen`', async () => {
const fs = new LocalFileSystemDetector(join(EXAMPLES_DIR, 'hydrogen'));
const slugs = (await detectFrameworks({ fs, frameworkList })).map(
f => f.slug
);
expect(slugs).toEqual(['hydrogen']);
});
it('Should detect "hydrogen-2" template as `remix`', async () => {
const fs = new LocalFileSystemDetector(join(EXAMPLES_DIR, 'hydrogen-2'));
const slugs = (await detectFrameworks({ fs, frameworkList })).map(
f => f.slug
);
expect(slugs).toEqual(['remix']);
});
});

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,7 +13,7 @@
"outDir": "dist",
"types": ["node", "jest"],
"strict": true,
"target": "ES2020",
"target": "ES2021",
"sourceMap": true
},
"include": ["src/**/*"],

View File

@@ -34,6 +34,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@babel/cli": "7.20.7",
"@babel/core": "7.5.0"
"@babel/core": "7.5.0",
"jest-junit": "16.0.0"
}
}

View File

@@ -1,5 +1,20 @@
# @vercel/gatsby-plugin-vercel-builder
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Exclude Gatsby from default 404 error route ([#10365](https://github.com/vercel/vercel/pull/10365))
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/build-utils@7.0.0
- @vercel/node@3.0.0
- @vercel/routing-utils@3.0.0
## 1.3.18
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/gatsby-plugin-vercel-builder",
"version": "1.3.18",
"version": "2.0.0",
"main": "dist/index.js",
"files": [
"dist",
@@ -20,9 +20,9 @@
},
"dependencies": {
"@sinclair/typebox": "0.25.24",
"@vercel/build-utils": "6.8.3",
"@vercel/node": "2.15.10",
"@vercel/routing-utils": "2.2.1",
"@vercel/build-utils": "7.0.0",
"@vercel/node": "3.0.0",
"@vercel/routing-utils": "3.0.0",
"esbuild": "0.14.47",
"etag": "1.8.1",
"fs-extra": "11.1.0"
@@ -32,6 +32,7 @@
"@types/fs-extra": "11.0.1",
"@types/node": "14.18.33",
"@types/react": "18.0.26",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
}
}

View File

@@ -6,6 +6,7 @@ import {
createAPIRoutes,
} from './helpers/functions';
import { createStaticDir } from './helpers/static';
import { join } from 'path';
import type { Config } from './types';
export interface GenerateVercelBuildOutputAPI3OutputOptions {
@@ -59,13 +60,30 @@ export async function generateVercelBuildOutputAPI3Output({
trailingSlash = false;
}
const { routes } = getTransformedRoutes({
trailingSlash,
redirects: redirects.map(({ fromPath, toPath, isPermanent }) => ({
source: fromPath,
destination: toPath,
permanent: isPermanent,
})),
const routes =
getTransformedRoutes({
trailingSlash,
redirects: redirects.map(({ fromPath, toPath, isPermanent }) => ({
source: fromPath,
destination: toPath,
permanent: isPermanent,
})),
}).routes || [];
routes.push({
handle: 'error',
});
if (pathPrefix) {
routes.push({
status: 404,
src: '^(?!/api).*$',
dest: join(pathPrefix, '404.html'),
});
}
routes.push({
status: 404,
src: '^(?!/api).*$',
dest: '404.html',
});
const config: Config = {

View File

@@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "es2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"target": "ES2021" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */

7
packages/go/CHANGELOG.md Normal file
View File

@@ -0,0 +1,7 @@
# @vercel/go
## 3.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/go",
"version": "2.5.1",
"version": "3.0.0",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/go",
@@ -11,7 +11,7 @@
},
"scripts": {
"build": "node build",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-e2e": "pnpm test"
},
"files": [
@@ -27,11 +27,12 @@
"@types/node-fetch": "^2.3.0",
"@types/tar": "^4.0.0",
"@types/yauzl-promise": "2.1.0",
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"@vercel/ncc": "0.24.0",
"async-retry": "1.3.1",
"execa": "^1.0.0",
"fs-extra": "^7.0.0",
"jest-junit": "16.0.0",
"node-fetch": "^2.2.1",
"string-argv": "0.3.1",
"tar": "4.4.6",

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": false,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,6 +13,6 @@
"noImplicitThis": false,
"types": ["node", "jest"],
"strict": true,
"target": "ES2020"
"target": "ES2021"
}
}

View File

@@ -0,0 +1,7 @@
# @vercel/hydrogen
## 1.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/hydrogen",
"version": "0.0.64",
"version": "1.0.0",
"license": "Apache-2.0",
"main": "./dist/index.js",
"homepage": "https://vercel.com/docs",
@@ -12,7 +12,7 @@
"scripts": {
"build": "node build.js",
"test-e2e": "pnpm test test/test.js",
"test": "jest --env node --verbose --bail --runInBand"
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand"
},
"files": [
"dist",
@@ -21,10 +21,11 @@
"devDependencies": {
"@types/jest": "27.5.1",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.8.3",
"@vercel/static-config": "2.0.17",
"@vercel/build-utils": "7.0.0",
"@vercel/static-config": "3.0.0",
"execa": "3.2.0",
"fs-extra": "11.1.0",
"jest-junit": "16.0.0",
"ts-morph": "12.0.0"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,7 +13,7 @@
"outDir": "./dist",
"types": ["node", "jest"],
"strict": true,
"target": "ES2020",
"target": "ES2021",
"sourceMap": true
},
"include": ["src/**/*"],

View File

@@ -1,5 +1,11 @@
# @vercel/next
## 4.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
## 3.9.4
### Patch Changes

View File

@@ -1,13 +1,13 @@
{
"name": "@vercel/next",
"version": "3.9.4",
"version": "4.0.0",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
"scripts": {
"build": "node build.js",
"build-dev": "node build.js --dev",
"test": "jest --env node --verbose --bail --runInBand --testTimeout=360000",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand --testTimeout=360000",
"test-unit": "pnpm test test/unit/",
"test-next-local": "pnpm test test/integration/*.test.js test/integration/*.test.ts",
"test-next-local:middleware": "pnpm test test/integration/middleware.test.ts",
@@ -35,9 +35,9 @@
"@types/semver": "6.0.0",
"@types/text-table": "0.2.1",
"@types/webpack-sources": "3.2.0",
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"@vercel/nft": "0.22.5",
"@vercel/routing-utils": "2.2.1",
"@vercel/routing-utils": "3.0.0",
"async-sema": "3.0.1",
"buffer-crc32": "0.2.13",
"bytes": "3.1.2",
@@ -49,6 +49,7 @@
"find-up": "4.1.0",
"fs-extra": "7.0.0",
"get-port": "5.0.0",
"jest-junit": "16.0.0",
"nanoid": "3.3.4",
"ndjson": "2.0.0",
"pretty-bytes": "5.3.0",

View File

@@ -2,8 +2,8 @@
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"target": "ES2020",
"lib": ["ES2021"],
"target": "ES2021",
"module": "commonjs",
"outDir": "dist",
"sourceMap": false,

View File

@@ -1,5 +1,18 @@
# @vercel/node
## 3.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/build-utils@7.0.0
- @vercel/error-utils@2.0.0
- @vercel/static-config@3.0.0
## 2.15.10
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/node",
"version": "2.15.10",
"version": "3.0.0",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -24,9 +24,9 @@
"@edge-runtime/vm": "3.0.1",
"@types/node": "14.18.33",
"@types/node-fetch": "2.6.3",
"@vercel/build-utils": "6.8.3",
"@vercel/error-utils": "1.0.10",
"@vercel/static-config": "2.0.17",
"@vercel/build-utils": "7.0.0",
"@vercel/error-utils": "2.0.0",
"@vercel/static-config": "3.0.0",
"async-listen": "3.0.0",
"content-type": "1.0.5",
"edge-runtime": "2.4.4",
@@ -55,6 +55,7 @@
"etag": "1.8.1",
"execa": "3.2.0",
"fs-extra": "11.1.0",
"jest-junit": "16.0.0",
"source-map-support": "0.5.12",
"test-listen": "1.1.0"
}

View File

@@ -2,8 +2,8 @@
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"lib": ["ES2020", "DOM"],
"target": "ES2020",
"lib": ["ES2021", "DOM"],
"target": "ES2021",
"module": "nodenext",
"outDir": "dist",
"sourceMap": false,

View File

@@ -0,0 +1,7 @@
# @vercel/python
## 4.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/python",
"version": "3.1.60",
"version": "4.0.0",
"main": "./dist/index.js",
"license": "Apache-2.0",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -15,7 +15,7 @@
},
"scripts": {
"build": "node build",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test test/unit.test.ts",
"test-e2e": "pnpm test test/integration-*"
},
@@ -23,8 +23,9 @@
"@types/execa": "^0.9.0",
"@types/jest": "27.4.1",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"@vercel/ncc": "0.24.0",
"execa": "^1.0.0"
"execa": "^1.0.0",
"jest-junit": "16.0.0"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,7 +13,7 @@
"outDir": "dist",
"types": ["node", "jest"],
"strict": true,
"target": "ES2020"
"target": "ES2021"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]

View File

@@ -0,0 +1,12 @@
# @vercel/redwood
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/routing-utils@3.0.0

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/redwood",
"version": "1.1.15",
"version": "2.0.0",
"main": "./dist/index.js",
"license": "Apache-2.0",
"homepage": "https://vercel.com/docs",
@@ -15,20 +15,21 @@
"scripts": {
"build": "node build.js",
"test-e2e": "pnpm test test/test.js",
"test": "jest --env node --verbose --bail --runInBand",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand",
"test-unit": "pnpm test test/prepare-cache.test.js"
},
"dependencies": {
"@vercel/nft": "0.22.5",
"@vercel/routing-utils": "2.2.1",
"@vercel/routing-utils": "3.0.0",
"semver": "6.1.1"
},
"devDependencies": {
"@types/aws-lambda": "8.10.19",
"@types/node": "14.18.33",
"@types/semver": "6.0.0",
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"execa": "3.2.0",
"fs-extra": "11.1.0"
"fs-extra": "11.1.0",
"jest-junit": "16.0.0"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": false,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,6 +13,6 @@
"outDir": "dist",
"types": ["node"],
"strict": true,
"target": "ES2020"
"target": "ES2021"
}
}

View File

@@ -1,5 +1,19 @@
# @vercel/remix-builder
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Only add workspace check flag for Yarn v1 ([#10364](https://github.com/vercel/vercel/pull/10364))
- Updated dependencies [[`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/build-utils@7.0.0
- @vercel/static-config@3.0.0
## 1.10.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/remix-builder",
"version": "1.10.1",
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./dist/index.js",
"homepage": "https://vercel.com/docs",
@@ -11,7 +11,7 @@
},
"scripts": {
"build": "node build.js",
"test": "jest --env node --verbose --bail --runInBand",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand",
"test-unit": "pnpm test test/unit.*test.*",
"test-e2e": "pnpm test test/integration.test.ts"
},
@@ -20,9 +20,9 @@
"defaults"
],
"dependencies": {
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"@vercel/nft": "0.22.5",
"@vercel/static-config": "2.0.17",
"@vercel/static-config": "3.0.0",
"path-to-regexp": "6.2.1",
"semver": "7.3.8",
"ts-morph": "12.0.0"
@@ -31,6 +31,7 @@
"@remix-run/dev": "npm:@vercel/remix-run-dev@1.19.2",
"@types/jest": "27.5.1",
"@types/node": "14.18.33",
"@types/semver": "7.3.13"
"@types/semver": "7.3.13",
"jest-junit": "16.0.0"
}
}

View File

@@ -1,4 +1,5 @@
import semver from 'semver';
import { execSync } from 'child_process';
import { existsSync, promises as fs } from 'fs';
import { basename, dirname, join, relative, resolve, sep } from 'path';
import { pathToRegexp, Key } from 'path-to-regexp';
@@ -283,10 +284,16 @@ export function addDependencies(
}
} else {
// 'yarn'
args.push('add', '--ignore-workspace-root-check');
args.push('add');
if (opts.saveDev) {
args.push('--dev');
}
const yarnVersion = execSync('yarn -v', { encoding: 'utf8' }).trim();
const isYarnV1 = semver.satisfies(yarnVersion, '1');
if (isYarnV1) {
// Ignoring workspace check is only needed on Yarn v1
args.push('--ignore-workspace-root-check');
}
}
// Don't fail if pnpm is being run at the workspace root

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -14,7 +14,7 @@
"types": ["node", "jest"],
"skipLibCheck": true,
"strict": true,
"target": "ES2020",
"target": "ES2021",
"sourceMap": true
},
"include": ["src/**/*"],

View File

@@ -0,0 +1,7 @@
# @vercel/routing-utils
## 3.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/routing-utils",
"version": "2.2.1",
"version": "3.0.0",
"description": "Vercel routing utilities",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -15,7 +15,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-unit": "pnpm test"
},
"dependencies": {
@@ -25,6 +25,7 @@
"@types/jest": "27.4.1",
"@types/node": "14.18.33",
"ajv": "^6.0.0",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
},
"optionalDependencies": {

View File

@@ -2,8 +2,8 @@
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"target": "ES2020",
"lib": ["ES2021"],
"target": "ES2021",
"module": "commonjs",
"outDir": "dist",
"sourceMap": false,

View File

@@ -0,0 +1,7 @@
# @vercel/ruby
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,7 +1,7 @@
{
"name": "@vercel/ruby",
"author": "Nathan Cahill <nathan@nathancahill.com>",
"version": "1.3.76",
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
@@ -16,16 +16,17 @@
},
"scripts": {
"build": "node build",
"test": "jest --env node --verbose --runInBand --bail",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
"test-e2e": "pnpm test"
},
"devDependencies": {
"@types/fs-extra": "8.0.0",
"@types/semver": "6.0.0",
"@vercel/build-utils": "6.8.3",
"@vercel/build-utils": "7.0.0",
"@vercel/ncc": "0.24.0",
"execa": "2.0.4",
"fs-extra": "^7.0.1",
"jest-junit": "16.0.0",
"semver": "6.1.1"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -12,6 +12,6 @@
"noUnusedParameters": true,
"outDir": "dist",
"strict": true,
"target": "ES2020"
"target": "ES2021"
}
}

View File

@@ -1,5 +1,16 @@
# @vercel/static-build
## 2.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
### Patch Changes
- Updated dependencies [[`bc7a5d38b`](https://github.com/vercel/vercel/commit/bc7a5d38be1016e265fd19f3cf146aa5609fc4ec), [`37f5c6270`](https://github.com/vercel/vercel/commit/37f5c6270058336072ca733673ea72dd6c56bd6a)]:
- @vercel/gatsby-plugin-vercel-builder@2.0.0
## 1.4.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/static-build",
"version": "1.4.0",
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/build-step",
@@ -14,13 +14,13 @@
},
"scripts": {
"build": "node build",
"test": "jest --env node --verbose --bail --runInBand",
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand",
"test-unit": "pnpm test test/build.test.ts test/gatsby.test.ts test/prepare-cache.test.ts",
"test-e2e": "pnpm test test/integration-*.test.js"
},
"dependencies": {
"@vercel/gatsby-plugin-vercel-analytics": "1.0.10",
"@vercel/gatsby-plugin-vercel-builder": "1.3.18"
"@vercel/gatsby-plugin-vercel-builder": "2.0.0"
},
"devDependencies": {
"@types/aws-lambda": "8.10.64",
@@ -32,17 +32,18 @@
"@types/node-fetch": "2.5.4",
"@types/promise-timeout": "1.3.0",
"@types/semver": "7.3.13",
"@vercel/build-utils": "6.8.3",
"@vercel/error-utils": "1.0.10",
"@vercel/frameworks": "1.6.0",
"@vercel/fs-detectors": "4.1.3",
"@vercel/build-utils": "7.0.0",
"@vercel/error-utils": "2.0.0",
"@vercel/frameworks": "2.0.0",
"@vercel/fs-detectors": "5.0.0",
"@vercel/ncc": "0.24.0",
"@vercel/routing-utils": "2.2.1",
"@vercel/static-config": "2.0.17",
"@vercel/routing-utils": "3.0.0",
"@vercel/static-config": "3.0.0",
"execa": "3.2.0",
"fs-extra": "10.0.0",
"get-port": "5.0.0",
"is-port-reachable": "2.0.1",
"jest-junit": "16.0.0",
"ms": "2.1.2",
"node-fetch": "2.6.7",
"rc9": "1.2.0",

View File

@@ -8,6 +8,10 @@
{
"path": "/foo/dsg/",
"mustContain": "This page is <b>DSG</b>"
},
{
"path": "/foo/x/y/z",
"mustContain": "This is a custom 404 page"
}
]
}

View File

@@ -15,13 +15,6 @@ const headingStyles = {
const paragraphStyles = {
marginBottom: 48,
};
const codeStyles = {
color: '#8A6534',
padding: 4,
backgroundColor: '#FFF4DB',
fontSize: '1.25rem',
borderRadius: 4,
};
const NotFoundPage = () => {
return (
@@ -30,13 +23,7 @@ const NotFoundPage = () => {
<p style={paragraphStyles}>
Sorry 😔, we couldnt find what you were looking for.
<br />
{process.env.NODE_ENV === 'development' ? (
<>
<br />
Try creating a page in <code style={codeStyles}>src/pages/</code>.
<br />
</>
) : null}
This is a custom 404 page.
<br />
<Link to="/">Go home</Link>.
</p>

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": false,
"esModuleInterop": true,
"lib": ["ES2020"],
"lib": ["ES2021"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
@@ -13,7 +13,7 @@
"outDir": "dist",
"types": ["node", "jest"],
"strict": true,
"target": "ES2020"
"target": "ES2021"
},
"include": ["src/**/*"],
"exclude": ["test/fixtures"]

View File

@@ -0,0 +1,7 @@
# @vercel/static-config
## 3.0.0
### Major Changes
- BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/static-config",
"version": "2.0.17",
"version": "3.0.0",
"license": "Apache-2.0",
"main": "./dist/index",
"repository": {
@@ -11,7 +11,7 @@
"scripts": {
"build": "tsc",
"test-unit": "pnpm test",
"test": "jest --env node --verbose --runInBand --bail"
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail"
},
"files": [
"dist"
@@ -25,6 +25,7 @@
"@swc/core": "1.2.182",
"@types/jest": "27.4.1",
"@types/node": "14.18.33",
"jest-junit": "16.0.0",
"typescript": "4.9.5"
}
}

View File

@@ -2,8 +2,8 @@
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"target": "ES2020",
"lib": ["ES2021"],
"target": "ES2021",
"module": "commonjs",
"outDir": "dist",
"sourceMap": true,

200
pnpm-lock.yaml generated
View File

@@ -129,7 +129,7 @@ importers:
specifier: 27.4.1
version: 27.4.1
'@vercel/frameworks':
specifier: 1.6.0
specifier: 2.0.0
version: link:../packages/frameworks
internals/constants:
@@ -183,10 +183,10 @@ importers:
specifier: 1.0.4
version: link:../constants
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../../packages/build-utils
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../../packages/routing-utils
devDependencies:
'@vercel-internals/tsconfig':
@@ -247,7 +247,7 @@ importers:
specifier: 2.4.2
version: 2.4.2
'@vercel/error-utils':
specifier: 1.0.10
specifier: 2.0.0
version: link:../error-utils
'@vercel/ncc':
specifier: 0.24.0
@@ -282,6 +282,9 @@ importers:
into-stream:
specifier: 5.0.0
version: 5.0.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
js-yaml:
specifier: 3.13.1
version: 3.13.1
@@ -307,34 +310,34 @@ importers:
packages/cli:
dependencies:
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/go':
specifier: 2.5.1
specifier: 3.0.0
version: link:../go
'@vercel/hydrogen':
specifier: 0.0.64
specifier: 1.0.0
version: link:../hydrogen
'@vercel/next':
specifier: 3.9.4
specifier: 4.0.0
version: link:../next
'@vercel/node':
specifier: 2.15.10
specifier: 3.0.0
version: link:../node
'@vercel/python':
specifier: 3.1.60
specifier: 4.0.0
version: link:../python
'@vercel/redwood':
specifier: 1.1.15
specifier: 2.0.0
version: link:../redwood
'@vercel/remix-builder':
specifier: 1.10.1
specifier: 2.0.0
version: link:../remix
'@vercel/ruby':
specifier: 1.3.76
specifier: 2.0.0
version: link:../ruby
'@vercel/static-build':
specifier: 1.4.0
specifier: 2.0.0
version: link:../static-build
devDependencies:
'@alex_neo/jest-expect-message':
@@ -467,19 +470,19 @@ importers:
specifier: 1.0.0
version: link:../../internals/get-package-json
'@vercel-internals/types':
specifier: 1.0.6
specifier: 1.0.7
version: link:../../internals/types
'@vercel/client':
specifier: 12.6.6
specifier: 13.0.0
version: link:../client
'@vercel/error-utils':
specifier: 1.0.10
specifier: 2.0.0
version: link:../error-utils
'@vercel/frameworks':
specifier: 1.6.0
specifier: 2.0.0
version: link:../frameworks
'@vercel/fs-detectors':
specifier: 4.1.3
specifier: 5.0.0
version: link:../fs-detectors
'@vercel/fun':
specifier: 1.0.4
@@ -488,7 +491,7 @@ importers:
specifier: 0.24.0
version: 0.24.0
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
'@zeit/source-map-support':
specifier: 0.6.2
@@ -610,6 +613,9 @@ importers:
jaro-winkler:
specifier: 0.2.8
version: 0.2.8
jest-junit:
specifier: 16.0.0
version: 16.0.0
jest-matcher-utils:
specifier: 29.3.1
version: 29.3.1
@@ -728,10 +734,10 @@ importers:
packages/client:
dependencies:
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
'@zeit/fetch':
specifier: 5.2.0
@@ -794,6 +800,9 @@ importers:
'@types/tar-fs':
specifier: 1.16.1
version: 1.16.1
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -806,6 +815,9 @@ importers:
'@types/jest':
specifier: 27.4.1
version: 27.4.1
jest-junit:
specifier: 16.0.0
version: 16.0.0
ts-node:
specifier: 8.9.1
version: 8.9.1(typescript@4.9.5)
@@ -833,6 +845,9 @@ importers:
'@types/node':
specifier: 14.18.33
version: 14.18.33
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -859,14 +874,17 @@ importers:
specifier: 2.5.8
version: 2.5.8
'@vercel/error-utils':
specifier: 1.0.10
specifier: 2.0.0
version: link:../error-utils
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
ajv:
specifier: 6.12.2
version: 6.12.2
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -874,13 +892,13 @@ importers:
packages/fs-detectors:
dependencies:
'@vercel/error-utils':
specifier: 1.0.10
specifier: 2.0.0
version: link:../error-utils
'@vercel/frameworks':
specifier: 1.6.0
specifier: 2.0.0
version: link:../frameworks
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
glob:
specifier: 8.0.3
@@ -917,8 +935,11 @@ importers:
specifier: 7.3.10
version: 7.3.10
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -938,6 +959,9 @@ importers:
'@babel/core':
specifier: 7.5.0
version: 7.5.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
packages/gatsby-plugin-vercel-builder:
dependencies:
@@ -945,13 +969,13 @@ importers:
specifier: 0.25.24
version: 0.25.24
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/node':
specifier: 2.15.10
specifier: 3.0.0
version: link:../node
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
esbuild:
specifier: 0.14.47
@@ -975,6 +999,9 @@ importers:
'@types/react':
specifier: 18.0.26
version: 18.0.26
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -1009,7 +1036,7 @@ importers:
specifier: 2.1.0
version: 2.1.0
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/ncc':
specifier: 0.24.0
@@ -1023,6 +1050,9 @@ importers:
fs-extra:
specifier: ^7.0.0
version: 7.0.1
jest-junit:
specifier: 16.0.0
version: 16.0.0
node-fetch:
specifier: ^2.2.1
version: 2.6.8
@@ -1051,10 +1081,10 @@ importers:
specifier: 14.18.33
version: 14.18.33
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/static-config':
specifier: 2.0.17
specifier: 3.0.0
version: link:../static-config
execa:
specifier: 3.2.0
@@ -1062,6 +1092,9 @@ importers:
fs-extra:
specifier: 11.1.0
version: 11.1.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
ts-morph:
specifier: 12.0.0
version: 12.0.0
@@ -1108,13 +1141,13 @@ importers:
specifier: 3.2.0
version: 3.2.0
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/nft':
specifier: 0.22.5
version: 0.22.5
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
async-sema:
specifier: 3.0.1
@@ -1149,6 +1182,9 @@ importers:
get-port:
specifier: 5.0.0
version: 5.0.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
nanoid:
specifier: 3.3.4
version: 3.3.4
@@ -1198,13 +1234,13 @@ importers:
specifier: 2.6.3
version: 2.6.3
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/error-utils':
specifier: 1.0.10
specifier: 2.0.0
version: link:../error-utils
'@vercel/static-config':
specifier: 2.0.17
specifier: 3.0.0
version: link:../static-config
async-listen:
specifier: 3.0.0
@@ -1285,6 +1321,9 @@ importers:
fs-extra:
specifier: 11.1.0
version: 11.1.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
source-map-support:
specifier: 0.5.12
version: 0.5.12
@@ -1304,7 +1343,7 @@ importers:
specifier: 14.18.33
version: 14.18.33
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/ncc':
specifier: 0.24.0
@@ -1312,6 +1351,9 @@ importers:
execa:
specifier: ^1.0.0
version: 1.0.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
packages/redwood:
dependencies:
@@ -1319,7 +1361,7 @@ importers:
specifier: 0.22.5
version: 0.22.5
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
semver:
specifier: 6.1.1
@@ -1335,7 +1377,7 @@ importers:
specifier: 6.0.0
version: 6.0.0
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
execa:
specifier: 3.2.0
@@ -1343,17 +1385,20 @@ importers:
fs-extra:
specifier: 11.1.0
version: 11.1.0
jest-junit:
specifier: 16.0.0
version: 16.0.0
packages/remix:
dependencies:
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/nft':
specifier: 0.22.5
version: 0.22.5
'@vercel/static-config':
specifier: 2.0.17
specifier: 3.0.0
version: link:../static-config
path-to-regexp:
specifier: 6.2.1
@@ -1377,6 +1422,9 @@ importers:
'@types/semver':
specifier: 7.3.13
version: 7.3.13
jest-junit:
specifier: 16.0.0
version: 16.0.0
packages/routing-utils:
dependencies:
@@ -1394,6 +1442,9 @@ importers:
'@types/node':
specifier: 14.18.33
version: 14.18.33
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -1407,7 +1458,7 @@ importers:
specifier: 6.0.0
version: 6.0.0
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/ncc':
specifier: 0.24.0
@@ -1418,6 +1469,9 @@ importers:
fs-extra:
specifier: ^7.0.1
version: 7.0.1
jest-junit:
specifier: 16.0.0
version: 16.0.0
semver:
specifier: 6.1.1
version: 6.1.1
@@ -1428,7 +1482,7 @@ importers:
specifier: 1.0.10
version: link:../gatsby-plugin-vercel-analytics
'@vercel/gatsby-plugin-vercel-builder':
specifier: 1.3.18
specifier: 2.0.0
version: link:../gatsby-plugin-vercel-builder
devDependencies:
'@types/aws-lambda':
@@ -1459,25 +1513,25 @@ importers:
specifier: 7.3.13
version: 7.3.13
'@vercel/build-utils':
specifier: 6.8.3
specifier: 7.0.0
version: link:../build-utils
'@vercel/error-utils':
specifier: 1.0.10
specifier: 2.0.0
version: link:../error-utils
'@vercel/frameworks':
specifier: 1.6.0
specifier: 2.0.0
version: link:../frameworks
'@vercel/fs-detectors':
specifier: 4.1.3
specifier: 5.0.0
version: link:../fs-detectors
'@vercel/ncc':
specifier: 0.24.0
version: 0.24.0
'@vercel/routing-utils':
specifier: 2.2.1
specifier: 3.0.0
version: link:../routing-utils
'@vercel/static-config':
specifier: 2.0.17
specifier: 3.0.0
version: link:../static-config
execa:
specifier: 3.2.0
@@ -1491,6 +1545,9 @@ importers:
is-port-reachable:
specifier: 2.0.1
version: 2.0.1
jest-junit:
specifier: 16.0.0
version: 16.0.0
ms:
specifier: 2.1.2
version: 2.1.2
@@ -1531,6 +1588,9 @@ importers:
'@types/node':
specifier: 14.18.33
version: 14.18.33
jest-junit:
specifier: 16.0.0
version: 16.0.0
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -6169,7 +6229,7 @@ packages:
peerDependencies:
node-fetch: '*'
dependencies:
async-retry: 1.3.3
async-retry: 1.3.1
debug: 3.1.0
node-fetch: 2.6.7
transitivePeerDependencies:
@@ -6628,13 +6688,6 @@ packages:
resolution: {integrity: sha512-aiieFW/7h3hY0Bq5d+ktDBejxuwR78vRu9hDUdR8rNhSaQ29VzPL4AoIRG7D/c7tdenwOcKvgPM6tIxB3cB6HA==}
dependencies:
retry: 0.12.0
dev: true
/async-retry@1.3.3:
resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==}
dependencies:
retry: 0.13.1
dev: false
/async-sema@2.1.4:
resolution: {integrity: sha512-NKdMgXT9RfmkscybzytzK/6uGF4cL8Mt3PSeO9QHXYKs3oFWkUwIepnAkzLWkqttOdDDFoED3c8kriS8RzP+ow==}
@@ -11785,6 +11838,16 @@ packages:
fsevents: 2.3.2
dev: true
/jest-junit@16.0.0:
resolution: {integrity: sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==}
engines: {node: '>=10.12.0'}
dependencies:
mkdirp: 1.0.4
strip-ansi: 6.0.1
uuid: 8.3.2
xml: 1.0.1
dev: true
/jest-leak-detector@29.5.0:
resolution: {integrity: sha512-u9YdeeVnghBUtpN5mVxjID7KbkKE1QU4f6uUwuxiY0vYRi9BUCLKlPEZfDGR67ofdFmDz9oPAy2G92Ujrntmow==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -13305,6 +13368,7 @@ packages:
/mkdirp@0.5.6:
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
hasBin: true
dependencies:
minimist: 1.2.7
@@ -13472,6 +13536,7 @@ packages:
/node-gyp-build@4.6.0:
resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==}
hasBin: true
/node-int64@0.4.0:
resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==}
@@ -14916,11 +14981,6 @@ packages:
resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
engines: {node: '>= 4'}
/retry@0.13.1:
resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==}
engines: {node: '>= 4'}
dev: false
/reusify@1.0.4:
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
@@ -15403,6 +15463,7 @@ packages:
/sshpk@1.17.0:
resolution: {integrity: sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==}
engines: {node: '>=0.10.0'}
hasBin: true
dependencies:
asn1: 0.2.6
assert-plus: 1.0.0
@@ -16678,6 +16739,7 @@ packages:
/uuid@8.3.2:
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
hasBin: true
dev: true
/uvu@0.5.6:
@@ -17074,6 +17136,10 @@ packages:
- supports-color
dev: true
/xml@1.0.1:
resolution: {integrity: sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==}
dev: true
/xtend@4.0.2:
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
engines: {node: '>=0.4'}
@@ -17203,7 +17269,3 @@ packages:
/zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
dev: true
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false

2
utils/tsconfig.json vendored
View File

@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2021",
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,