chore: upgrade to TypeScript 5.2.2 (#55105)

### What?

Upgrade TypeScript to the latest version as of this PR. **This does not affect users, as the change is only for our repository.**

### Why?

Part of some upcoming PRs to try to clean up cookie handling, now that `getSetCookie` is available. Since we use `undici`, which [implements it](https://github.com/nodejs/undici/pull/1915), we can get rid of some code to rely more on the platform.

This PR is needed to get the types for `Headers#getSetCookie` which was added in 5.2

### How?

I needed to update some dependency types to get build to pass, but other than that, only needed to bump from `5.1.6` to `5.2.2`, so hopefully all is fine.
This commit is contained in:
Balázs Orbán 2023-09-07 20:46:05 +02:00 committed by GitHub
parent 18980a6411
commit 068002bb3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 77 additions and 91 deletions

View file

@ -18,19 +18,15 @@
],
// Disable Jest autoRun as otherwise it will start running all tests the first time.
"jest.autoRun": "off",
// Debugging.
"debug.javascript.unmapMissingSources": true,
"files.exclude": {
"**/node_modules": false,
"node_modules": true,
"*[!test]**/node_modules": true
},
// Ensure enough terminal history is preserved when running tests.
"terminal.integrated.scrollback": 10000,
// Configure todo-tree to exclude node_modules, dist, and compiled.
"todo-tree.filtering.excludeGlobs": [
"**/node_modules",
@ -48,10 +44,8 @@
"[x]",
"TODO-APP"
],
// Disable TypeScript surveys.
"typescript.surveys.enabled": false,
// Enable file nesting for unit test files.
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
@ -82,5 +76,6 @@
"language": "markdown",
"scheme": "file"
}
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}

View file

@ -101,7 +101,7 @@
"@types/node-fetch": "2.6.1",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.4",
"@types/relay-runtime": "13.0.0",
"@types/relay-runtime": "14.1.13",
"@types/selenium-webdriver": "4.0.15",
"@types/sharp": "0.29.3",
"@types/string-hash": "1.1.1",
@ -226,7 +226,7 @@
"tree-kill": "1.2.2",
"tsec": "0.2.1",
"turbo": "1.10.9",
"typescript": "5.1.3",
"typescript": "5.2.2",
"unfetch": "4.2.0",
"wait-port": "0.2.2",
"webpack": "5.86.0",

View file

@ -4,23 +4,19 @@
"strict": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
// interop constraints
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
// js support
"allowJs": true,
"checkJs": false,
// environment
"jsx": "react-jsx",
"lib": ["ESNext", "DOM"],
"target": "esnext",
// modules
"baseUrl": ".",
"module": "esnext",
"module": "node16",
"moduleResolution": "node16",
"paths": {
"@vercel/turbopack-next/*": ["src/*"],
@ -31,7 +27,6 @@
},
"resolveJsonModule": true,
"types": ["react/next"],
// emit
"noEmit": true,
"stripInternal": true

View file

@ -173,7 +173,7 @@
"@types/fresh": "0.5.0",
"@types/glob": "7.1.1",
"@types/jsonwebtoken": "9.0.0",
"@types/lodash": "4.14.149",
"@types/lodash": "4.14.198",
"@types/lodash.curry": "4.1.6",
"@types/lru-cache": "5.1.0",
"@types/micromatch": "4.0.2",
@ -254,7 +254,7 @@
"lru-cache": "5.1.1",
"micromatch": "4.0.4",
"mini-css-extract-plugin": "2.4.3",
"msw": "^1.2.2",
"msw": "1.3.0",
"nanoid": "3.1.32",
"native-url": "0.3.4",
"neo-async": "2.6.1",

File diff suppressed because one or more lines are too long

View file

@ -71,7 +71,6 @@ export class NextResponse<Body = unknown> extends Response {
body: JsonBody,
init?: ResponseInit
): NextResponse<JsonBody> {
// @ts-expect-error This is not in lib/dom right now, and we can't augment it.
const response: Response = Response.json(body, init)
return new NextResponse(response.body, response)
}

View file

@ -12,6 +12,7 @@
"jsx": "react",
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"module": "Node16",
"moduleResolution": "Node16"
},
"include": ["src/**/*.ts", "src/**/*.tsx", "types/local.d.ts"],

View file

@ -150,8 +150,8 @@ importers:
specifier: 18.2.4
version: 18.2.4
'@types/relay-runtime':
specifier: 13.0.0
version: 13.0.0
specifier: 14.1.13
version: 14.1.13
'@types/selenium-webdriver':
specifier: 4.0.15
version: 4.0.15
@ -166,10 +166,10 @@ importers:
version: 2.0.3
'@typescript-eslint/eslint-plugin':
specifier: 6.1.0
version: 6.1.0(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)(typescript@5.1.3)
version: 6.1.0(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)(typescript@5.2.2)
'@typescript-eslint/parser':
specifier: 6.1.0
version: 6.1.0(eslint@7.24.0)(typescript@5.1.3)
version: 6.1.0(eslint@7.24.0)(typescript@5.2.2)
'@vercel/fetch':
specifier: 6.1.1
version: 6.1.1(@types/node-fetch@2.6.1)(node-fetch@2.6.7)
@ -250,7 +250,7 @@ importers:
version: 2.22.1(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)
eslint-plugin-jest:
specifier: 24.3.5
version: 24.3.5(@typescript-eslint/eslint-plugin@6.1.0)(eslint@7.24.0)(typescript@5.1.3)
version: 24.3.5(@typescript-eslint/eslint-plugin@6.1.0)(eslint@7.24.0)(typescript@5.2.2)
eslint-plugin-jsdoc:
specifier: 39.6.4
version: 39.6.4(eslint@7.24.0)
@ -520,13 +520,13 @@ importers:
version: 1.2.2
tsec:
specifier: 0.2.1
version: 0.2.1(@bazel/bazelisk@1.12.1)(typescript@5.1.3)
version: 0.2.1(@bazel/bazelisk@1.12.1)(typescript@5.2.2)
turbo:
specifier: 1.10.9
version: 1.10.9
typescript:
specifier: 5.1.3
version: 5.1.3
specifier: 5.2.2
version: 5.2.2
unfetch:
specifier: 4.2.0
version: 4.2.0
@ -1001,8 +1001,8 @@ importers:
specifier: 9.0.0
version: 9.0.0
'@types/lodash':
specifier: 4.14.149
version: 4.14.149
specifier: 4.14.198
version: 4.14.198
'@types/lodash.curry':
specifier: 4.1.6
version: 4.1.6
@ -1244,8 +1244,8 @@ importers:
specifier: 2.4.3
version: 2.4.3(webpack@5.86.0)
msw:
specifier: ^1.2.2
version: 1.2.2(typescript@5.1.3)
specifier: 1.3.0
version: 1.3.0(typescript@5.2.2)
nanoid:
specifier: 3.1.32
version: 3.1.32
@ -6848,7 +6848,7 @@ packages:
'@types/debug': 4.1.8
'@xmldom/xmldom': 0.8.10
debug: 4.3.4
headers-polyfill: 3.1.2
headers-polyfill: 3.2.3
outvariant: 1.4.0
strict-event-emitter: 0.2.8
web-encoding: 1.1.5
@ -8336,11 +8336,11 @@ packages:
/@types/lodash.curry@4.1.6:
resolution: {integrity: sha512-x3ctCcmOYqRrihNNnQJW6fe/yZFCgnrIa6p80AiPQRO8Jis29bBdy1dEw1FwngoF/mCZa3Bx+33fUZvOEE635Q==}
dependencies:
'@types/lodash': 4.14.149
'@types/lodash': 4.14.198
dev: true
/@types/lodash@4.14.149:
resolution: {integrity: sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==}
/@types/lodash@4.14.198:
resolution: {integrity: sha512-trNJ/vtMZYMLhfN45uLq4ShQSw0/S7xCTLLVM+WM1rmFpba/VS42jVUgaO3w/NOLiWR/09lnYk0yMaA/atdIsg==}
dev: true
/@types/long@4.0.1:
@ -8463,8 +8463,8 @@ packages:
'@types/scheduler': 0.16.2
csstype: 3.0.10
/@types/relay-runtime@13.0.0:
resolution: {integrity: sha512-yzv6F8EZPWA2rtfFP2qMluS8tsz1q4lfdYxLegCshdAjX5uqxTR2pAliATj9wrzD6OMZF4fl9aU+Y+zmSfm2EA==}
/@types/relay-runtime@14.1.13:
resolution: {integrity: sha512-NODqEnGjERJr02M0YQclUnXWCldmerNUkpFfuO317h/od1uXuwAW5131vpeiROE11BizPC/Qhup5VrwKsENazw==}
dev: true
/@types/resolve@1.17.1:
@ -8621,7 +8621,7 @@ packages:
'@types/yargs-parser': 21.0.0
dev: true
/@typescript-eslint/eslint-plugin@6.1.0(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)(typescript@5.1.3):
/@typescript-eslint/eslint-plugin@6.1.0(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)(typescript@5.2.2):
resolution: {integrity: sha512-qg7Bm5TyP/I7iilGyp6DRqqkt8na00lI6HbjWZObgk3FFSzH5ypRwAHXJhJkwiRtTcfn+xYQIMOR5kJgpo6upw==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@ -8633,10 +8633,10 @@ packages:
optional: true
dependencies:
'@eslint-community/regexpp': 4.5.1
'@typescript-eslint/parser': 6.1.0(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/parser': 6.1.0(eslint@7.24.0)(typescript@5.2.2)
'@typescript-eslint/scope-manager': 6.1.0
'@typescript-eslint/type-utils': 6.1.0(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/utils': 6.1.0(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/type-utils': 6.1.0(eslint@7.24.0)(typescript@5.2.2)
'@typescript-eslint/utils': 6.1.0(eslint@7.24.0)(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.1.0
debug: 4.3.4
eslint: 7.24.0
@ -8645,13 +8645,13 @@ packages:
natural-compare: 1.4.0
natural-compare-lite: 1.4.0
semver: 7.5.4
ts-api-utils: 1.0.1(typescript@5.1.3)
typescript: 5.1.3
ts-api-utils: 1.0.1(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/experimental-utils@4.29.1(eslint@7.24.0)(typescript@5.1.3):
/@typescript-eslint/experimental-utils@4.29.1(eslint@7.24.0)(typescript@5.2.2):
resolution: {integrity: sha512-kl6QG6qpzZthfd2bzPNSJB2YcZpNOrP6r9jueXupcZHnL74WiuSjaft7WSu17J9+ae9zTlk0KJMXPUj0daBxMw==}
engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies:
@ -8660,7 +8660,7 @@ packages:
'@types/json-schema': 7.0.12
'@typescript-eslint/scope-manager': 4.29.1
'@typescript-eslint/types': 4.29.1
'@typescript-eslint/typescript-estree': 4.29.1(typescript@5.1.3)
'@typescript-eslint/typescript-estree': 4.29.1(typescript@5.2.2)
eslint: 7.24.0
eslint-scope: 5.1.1
eslint-utils: 3.0.0(eslint@7.24.0)
@ -8669,7 +8669,7 @@ packages:
- typescript
dev: true
/@typescript-eslint/parser@6.1.0(eslint@7.24.0)(typescript@5.1.3):
/@typescript-eslint/parser@6.1.0(eslint@7.24.0)(typescript@5.2.2):
resolution: {integrity: sha512-hIzCPvX4vDs4qL07SYzyomamcs2/tQYXg5DtdAfj35AyJ5PIUqhsLf4YrEIFzZcND7R2E8tpQIZKayxg8/6Wbw==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@ -8681,11 +8681,11 @@ packages:
dependencies:
'@typescript-eslint/scope-manager': 6.1.0
'@typescript-eslint/types': 6.1.0
'@typescript-eslint/typescript-estree': 6.1.0(typescript@5.1.3)
'@typescript-eslint/typescript-estree': 6.1.0(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.1.0
debug: 4.3.4
eslint: 7.24.0
typescript: 5.1.3
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
@ -8726,7 +8726,7 @@ packages:
'@typescript-eslint/types': 6.1.0
'@typescript-eslint/visitor-keys': 6.1.0
/@typescript-eslint/type-utils@6.1.0(eslint@7.24.0)(typescript@5.1.3):
/@typescript-eslint/type-utils@6.1.0(eslint@7.24.0)(typescript@5.2.2):
resolution: {integrity: sha512-kFXBx6QWS1ZZ5Ni89TyT1X9Ag6RXVIVhqDs0vZE/jUeWlBv/ixq2diua6G7ece6+fXw3TvNRxP77/5mOMusx2w==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@ -8736,12 +8736,12 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/typescript-estree': 6.1.0(typescript@5.1.3)
'@typescript-eslint/utils': 6.1.0(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/typescript-estree': 6.1.0(typescript@5.2.2)
'@typescript-eslint/utils': 6.1.0(eslint@7.24.0)(typescript@5.2.2)
debug: 4.3.4
eslint: 7.24.0
ts-api-utils: 1.0.1(typescript@5.1.3)
typescript: 5.1.3
ts-api-utils: 1.0.1(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
@ -8755,7 +8755,7 @@ packages:
resolution: {integrity: sha512-+Gfd5NHCpDoHDOaU/yIF3WWRI2PcBRKKpP91ZcVbL0t5tQpqYWBs3z/GGhvU+EV1D0262g9XCnyqQh19prU0JQ==}
engines: {node: ^16.0.0 || >=18.0.0}
/@typescript-eslint/typescript-estree@4.29.1(typescript@5.1.3):
/@typescript-eslint/typescript-estree@4.29.1(typescript@5.2.2):
resolution: {integrity: sha512-lIkkrR9E4lwZkzPiRDNq0xdC3f2iVCUjw/7WPJ4S2Sl6C3nRWkeE1YXCQ0+KsiaQRbpY16jNaokdWnm9aUIsfw==}
engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies:
@ -8770,8 +8770,8 @@ packages:
globby: 11.1.0
is-glob: 4.0.3
semver: 7.3.7
tsutils: 3.21.0(typescript@5.1.3)
typescript: 5.1.3
tsutils: 3.21.0(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
@ -8797,7 +8797,7 @@ packages:
- supports-color
dev: false
/@typescript-eslint/typescript-estree@6.1.0(typescript@5.1.3):
/@typescript-eslint/typescript-estree@6.1.0(typescript@5.2.2):
resolution: {integrity: sha512-nUKAPWOaP/tQjU1IQw9sOPCDavs/iU5iYLiY/6u7gxS7oKQoi4aUxXS1nrrVGTyBBaGesjkcwwHkbkiD5eBvcg==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@ -8812,13 +8812,13 @@ packages:
globby: 11.1.0
is-glob: 4.0.3
semver: 7.5.4
ts-api-utils: 1.0.1(typescript@5.1.3)
typescript: 5.1.3
ts-api-utils: 1.0.1(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/utils@6.1.0(eslint@7.24.0)(typescript@5.1.3):
/@typescript-eslint/utils@6.1.0(eslint@7.24.0)(typescript@5.2.2):
resolution: {integrity: sha512-wp652EogZlKmQoMS5hAvWqRKplXvkuOnNzZSE0PVvsKjpexd/XznRVHAtrfHFYmqaJz0DFkjlDsGYC9OXw+OhQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@ -8829,7 +8829,7 @@ packages:
'@types/semver': 7.5.0
'@typescript-eslint/scope-manager': 6.1.0
'@typescript-eslint/types': 6.1.0
'@typescript-eslint/typescript-estree': 6.1.0(typescript@5.1.3)
'@typescript-eslint/typescript-estree': 6.1.0(typescript@5.2.2)
eslint: 7.24.0
semver: 7.5.4
transitivePeerDependencies:
@ -10710,14 +10710,6 @@ packages:
ansi-styles: 4.3.0
supports-color: 7.2.0
/chalk@4.1.1:
resolution: {integrity: sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==}
engines: {node: '>=10'}
dependencies:
ansi-styles: 4.3.0
supports-color: 7.2.0
dev: true
/chalk@4.1.2:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'}
@ -12179,7 +12171,7 @@ packages:
supports-color:
optional: true
dependencies:
ms: 2.1.2
ms: 2.1.3
/debug@4.3.4:
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
@ -13132,7 +13124,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
'@typescript-eslint/parser': 6.1.0(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/parser': 6.1.0(eslint@7.24.0)(typescript@5.2.2)
debug: 3.2.7
eslint-import-resolver-node: 0.3.6
find-up: 2.1.0
@ -13191,7 +13183,7 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
'@typescript-eslint/parser': 6.1.0(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/parser': 6.1.0(eslint@7.24.0)(typescript@5.2.2)
array-includes: 3.1.4
array.prototype.flat: 1.2.5
contains-path: 0.1.0
@ -13247,7 +13239,7 @@ packages:
- supports-color
dev: false
/eslint-plugin-jest@24.3.5(@typescript-eslint/eslint-plugin@6.1.0)(eslint@7.24.0)(typescript@5.1.3):
/eslint-plugin-jest@24.3.5(@typescript-eslint/eslint-plugin@6.1.0)(eslint@7.24.0)(typescript@5.2.2):
resolution: {integrity: sha512-XG4rtxYDuJykuqhsOqokYIR84/C8pRihRtEpVskYLbIIKGwPNW2ySxdctuVzETZE+MbF/e7wmsnbNVpzM0rDug==}
engines: {node: '>=10'}
peerDependencies:
@ -13257,8 +13249,8 @@ packages:
'@typescript-eslint/eslint-plugin':
optional: true
dependencies:
'@typescript-eslint/eslint-plugin': 6.1.0(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/experimental-utils': 4.29.1(eslint@7.24.0)(typescript@5.1.3)
'@typescript-eslint/eslint-plugin': 6.1.0(@typescript-eslint/parser@6.1.0)(eslint@7.24.0)(typescript@5.2.2)
'@typescript-eslint/experimental-utils': 4.29.1(eslint@7.24.0)(typescript@5.2.2)
eslint: 7.24.0
transitivePeerDependencies:
- supports-color
@ -15331,6 +15323,10 @@ packages:
resolution: {integrity: sha512-tWCK4biJ6hcLqTviLXVR9DTRfYGQMXEIUj3gwJ2rZ5wO/at3XtkI4g8mCvFdUF9l1KMBNCfmNAdnahm1cgavQA==}
dev: true
/headers-polyfill@3.2.3:
resolution: {integrity: sha512-oj6MO8sdFQ9gQQedSVdMGh96suxTNp91vPQu7C4qx/57FqYsA5TiNr92nhIZwVQq8zygn4nu3xS1aEqpakGqdw==}
dev: true
/hex-color-regex@1.1.0:
resolution: {integrity: sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==}
dev: true
@ -19487,13 +19483,13 @@ packages:
isarray: 1.0.0
dev: true
/msw@1.2.2(typescript@5.1.3):
resolution: {integrity: sha512-GsW3PE/Es/a1tYThXcM8YHOZ1S1MtivcS3He/LQbbTCx3rbWJYCtWD5XXyJ53KlNPT7O1VI9sCW3xMtgFe8XpQ==}
/msw@1.3.0(typescript@5.2.2):
resolution: {integrity: sha512-nnWAZlQyQOKeYRblCpseT1kSPt1aF5e/jHz1hn/18IxbsMFreSVV1cJriT0uV+YG6+wvwFRMHXU3zVuMvuwERQ==}
engines: {node: '>=14'}
hasBin: true
requiresBuild: true
peerDependencies:
typescript: '>= 4.4.x <= 5.1.x'
typescript: '>= 4.4.x <= 5.2.x'
peerDependenciesMeta:
typescript:
optional: true
@ -19503,11 +19499,11 @@ packages:
'@open-draft/until': 1.0.3
'@types/cookie': 0.4.1
'@types/js-levenshtein': 1.1.1
chalk: 4.1.1
chalk: 4.1.2
chokidar: 3.5.3
cookie: 0.4.2
graphql: 16.7.1
headers-polyfill: 3.1.2
headers-polyfill: 3.2.3
inquirer: 8.2.0
is-node-process: 1.2.0
js-levenshtein: 1.1.6
@ -19516,7 +19512,7 @@ packages:
path-to-regexp: 6.2.1
strict-event-emitter: 0.4.6
type-fest: 2.19.0
typescript: 5.1.3
typescript: 5.2.2
yargs: 17.5.1
transitivePeerDependencies:
- encoding
@ -25709,13 +25705,13 @@ packages:
typescript: 4.8.2
dev: false
/ts-api-utils@1.0.1(typescript@5.1.3):
/ts-api-utils@1.0.1(typescript@5.2.2):
resolution: {integrity: sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==}
engines: {node: '>=16.13.0'}
peerDependencies:
typescript: '>=4.2.0'
dependencies:
typescript: 5.1.3
typescript: 5.2.2
dev: true
/tsconfig-paths@3.14.1:
@ -25736,7 +25732,7 @@ packages:
strip-bom: 3.0.0
dev: false
/tsec@0.2.1(@bazel/bazelisk@1.12.1)(typescript@5.1.3):
/tsec@0.2.1(@bazel/bazelisk@1.12.1)(typescript@5.2.2):
resolution: {integrity: sha512-RP9vhbRbRI9VH4CfOlQvo5W9HdfiPKq0gdiUOWI5oKmLaZKNFN8CsPwBfT5ySmhnKNwmmAS/BtY3WoTfABwwig==}
hasBin: true
peerDependencies:
@ -25746,7 +25742,7 @@ packages:
'@bazel/bazelisk': 1.12.1
glob: 7.2.0
minimatch: 3.1.2
typescript: 5.1.3
typescript: 5.2.2
dev: true
/tslib@1.11.1:
@ -25766,14 +25762,14 @@ packages:
/tslib@2.5.3:
resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==}
/tsutils@3.21.0(typescript@5.1.3):
/tsutils@3.21.0(typescript@5.2.2):
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'}
peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies:
tslib: 1.11.1
typescript: 5.1.3
typescript: 5.2.2
dev: true
/tty-browserify@0.0.1:
@ -25976,8 +25972,8 @@ packages:
engines: {node: '>=4.2.0'}
hasBin: true
/typescript@5.1.3:
resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==}
/typescript@5.2.2:
resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==}
engines: {node: '>=14.17'}
hasBin: true
dev: true

View file

@ -298,7 +298,7 @@ describe('tsconfig.json verifier', () => {
await writeFile(
tsConfig,
`{ "compilerOptions": { "esModuleInterop": false, "moduleResolution": "node16" } }`
`{ "compilerOptions": { "esModuleInterop": false, "moduleResolution": "node16", "module": "node16" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
@ -313,6 +313,7 @@ describe('tsconfig.json verifier', () => {
\\"compilerOptions\\": {
\\"esModuleInterop\\": true,
\\"moduleResolution\\": \\"node16\\",
\\"module\\": \\"node16\\",
\\"lib\\": [
\\"dom\\",
\\"dom.iterable\\",
@ -323,7 +324,6 @@ describe('tsconfig.json verifier', () => {
\\"strict\\": false,
\\"noEmit\\": true,
\\"incremental\\": true,
\\"module\\": \\"esnext\\",
\\"resolveJsonModule\\": true,
\\"isolatedModules\\": true,
\\"jsx\\": \\"preserve\\",