Skip to content

Commit

Permalink
chore(deps): update dependency typescript to v5 (#7845)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency typescript to v5

* chore(deps): update dependency typescript to v5

* v5 codemods

* patch storybook with 6.5.17-alpha.0

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
  • Loading branch information
renovate[bot] and thedavidprice authored Mar 24, 2023
1 parent 0df9512 commit b838eb8
Show file tree
Hide file tree
Showing 49 changed files with 492 additions and 471 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.0",
"@tsconfig/docusaurus": "1.0.7",
"typescript": "4.9.5"
"typescript": "5.0.2"
}
}
18 changes: 9 additions & 9 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4660,7 +4660,7 @@ __metadata:
react: 17.0.2
react-dom: 17.0.2
react-player: 2.12.0
typescript: 4.9.5
typescript: 5.0.2
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -9923,23 +9923,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:4.9.5":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
"typescript@npm:5.0.2":
version: 5.0.2
resolution: "typescript@npm:5.0.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 5f6cad2e728a8a063521328e612d7876e12f0d8a8390d3b3aaa452a6a65e24e9ac8ea22beb72a924fd96ea0a49ea63bb4e251fb922b12eedfb7f7a26475e5c56
checksum: aa0e2a766412a0c9f609133681753cc88098aa44e079820d203dc0628a8fc3997d4e6b93c2c813c483f770698561c3225c5ab3e5c8896639cfc5d94528e3005f
languageName: node
linkType: hard

"typescript@patch:typescript@4.9.5#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
"typescript@patch:typescript@5.0.2#~builtin<compat/typescript>":
version: 5.0.2
resolution: "typescript@patch:typescript@npm%3A5.0.2#~builtin<compat/typescript>::version=5.0.2&hash=85af82"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10d31da0caa997927eab0167b7ddacb9ac8d3fd87e6584185b14da32b7f033e727309682fc0395021f4ac110860a3be6054e9b039a996a24d282a20bafc599f4
checksum: 3ff588d800f76d5f46b7ee41ca713d9c4274ea10f3283aa8bb2cec834075622e23a743eb63b8734da4ff2780f946849a009a8571ff59ac297abe4011125361fe
languageName: node
linkType: hard

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"ora": "5.4.1",
"prompts": "2.4.2",
"rimraf": "3.0.2",
"typescript": "4.9.5",
"typescript": "5.0.2",
"yargs": "17.7.1",
"zx": "7.2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@types/yargs": "17.0.23",
"aws-lambda": "1.0.7",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"redis": "4.6.5",
"split2": "4.1.0",
"ts-toolbelt": "9.6.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"memjs": "1.3.0",
Expand Down
5 changes: 4 additions & 1 deletion packages/api/src/validations/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,10 @@ const prepareExclusionInclusion = (

return caseSensitive
? [inputList, value]
: [inputList.map((s) => s.toLowerCase()), (value as string).toLowerCase()]
: [
inputList.map((s) => (s as string).toLowerCase()),
(value as string).toLowerCase(),
]
}

// Main validation function, `directives` decides which actual validators
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/auth0/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@redwoodjs/api": "4.0.0",
"@types/jsonwebtoken": "9.0.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/auth0/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/auth0/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/react": "18.0.28",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"@auth0/auth0-spa-js": "2.0.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/aws-lambda": "8.10.114",
"@types/jsonwebtoken": "9.0.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/react": "18.0.28",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"@azure/msal-browser": "2.34.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/clerk/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@redwoodjs/api": "4.0.0",
"@types/aws-lambda": "8.10.114",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/clerk/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/clerk/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/react": "18.0.28",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"@clerk/clerk-react": "4.12.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/custom/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/dbAuth/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/md5": "2.3.2",
"@types/uuid": "9.0.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/dbAuth/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/secure-random-password": "0.2.1",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/dbAuth/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/react": "18.0.28",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/firebase/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@redwoodjs/api": "4.0.0",
"@types/aws-lambda": "8.10.114",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/firebase/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/firebase/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"firebase": "9.18.0",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"firebase": "9.18.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/netlify/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/aws-lambda": "8.10.114",
"@types/jsonwebtoken": "9.0.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/netlify/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/netlify/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/react": "18.0.28",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"netlify-identity-widget": "1.9.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/supabase/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/aws-lambda": "8.10.114",
"@types/jsonwebtoken": "9.0.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/supabase/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/supabase/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@types/react": "18.0.28",
"jest": "29.5.0",
"react": "18.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"@supabase/supabase-js": "2.12.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/supertokens/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@redwoodjs/api": "4.0.0",
"@types/jsonwebtoken": "9.0.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"supertokens-node": "13.1.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-providers/supertokens/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/core": "7.21.3",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth-providers/supertokens/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"jest": "29.5.0",
"react": "18.2.0",
"supertokens-auth-react": "0.31.3",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"peerDependencies": {
"supertokens-auth-react": "0.31.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@testing-library/react": "14.0.0",
"jest": "29.5.0",
"msw": "1.2.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/cli-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/pascalcase": "1.0.1",
"@types/yargs": "17.0.23",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 0 additions & 2 deletions packages/cli-helpers/src/auth/authTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const apiSrcDoesExist = () => {
const addAuthImportToApp = (content: string) => {
const contentLines = content.split('\n')
// Find the last import line that's not a .css or .scss import
// @ts-expect-error - We polyfill findLastIndex
const importIndex = contentLines.findLastIndex((line: string) =>
/^\s*import (?!.*(?:.css'|.scss'))/.test(line)
)
Expand All @@ -151,7 +150,6 @@ const addAuthImportToApp = (content: string) => {
const addAuthImportToRoutes = (content: string) => {
const contentLines = content.split('\n')
// Find the last import line that's not a .css or .scss import
// @ts-expect-error - We polyfill findLastIndex
const importIndex = contentLines.findLastIndex((line: string) =>
/^\s*import (?!.*(?:.css'|.scss'))/.test(line)
)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@babel/core": "7.21.3",
"@types/crypto-js": "4.1.1",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"jscodeshift": "0.14.0",
"prettier": "2.8.6",
"tasuku": "2.0.1",
"typescript": "4.9.5",
"typescript": "5.0.2",
"yargs": "17.7.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"react-refresh": "0.14.0",
"rimraf": "3.0.2",
"style-loader": "3.3.2",
"typescript": "4.9.5",
"typescript": "5.0.2",
"url-loader": "4.1.1",
"webpack": "5.76.3",
"webpack-bundle-analyzer": "4.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-redwood-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@babel/cli": "7.21.0",
"@types/prompts": "2.4.3",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"devDependencies": {
"@babel/cli": "7.21.0",
"jest": "29.5.0",
"typescript": "4.9.5"
"typescript": "5.0.2"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
Loading

0 comments on commit b838eb8

Please sign in to comment.