Skip to content

Commit

Permalink
[Chore] Downgrade TypeScript dependency to 5.4.5 (thirdweb-dev#3514)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls authored Jun 26, 2024
1 parent 0708d4e commit 370c686
Show file tree
Hide file tree
Showing 21 changed files with 221 additions and 127 deletions.
2 changes: 1 addition & 1 deletion legacy_packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"fastify": "^4.26.2",
"next": "^14.1.1",
"next-auth": "^4.24.7",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"peerDependencies": {
"cookie-parser": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/chains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@thirdweb-dev/tsconfig": "workspace:*",
"eslint": "8.57.0",
"eslint-config-thirdweb": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"preconstruct": {
"entrypoints": ["index.ts"],
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"hardhat": "^2.22.2",
"ora": "^8.0.1",
"tsup": "8.0.2",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/contracts-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
"eslint-config-thirdweb": "workspace:*",
"ethers": "^5.7.2",
"typechain": "^8.3.2",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"peerDependencies": {
"ethers": "^5"
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"ethers": "^5.7.2",
"js-awe": "^1.0.65",
"tinybench": "^2.6.0",
"typescript": "5.5.2",
"typescript": "5.4.5",
"viem": "2.16.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/merkletree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/treeify": "^1.0.3",
"eslint": "8.57.0",
"eslint-config-thirdweb": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"scripts": {
"format": "biome format ./src --write",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/pay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@thirdweb-dev/tsconfig": "workspace:*",
"eslint": "8.57.0",
"eslint-config-thirdweb": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"scripts": {
"format": "biome format ./src --write",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/payments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@thirdweb-dev/tsconfig": "workspace:*",
"eslint": "8.57.0",
"eslint-config-thirdweb": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"scripts": {
"format": "biome format ./src --write",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/react-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"ethers": "^5.7.2",
"react": "18.3.1",
"typedoc-gen": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"dependencies": {
"@tanstack/react-query": "^4.36.1",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/react-native-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"ethers": "^5.7.2",
"react": "18.3.1",
"react-native": "^0.71.17",
"typescript": "5.5.2"
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion legacy_packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"react-native-camera": "^4.2.1",
"rimraf": "5.0.5",
"typedoc-gen": "^1.0.2",
"typescript": "5.5.2",
"typescript": "5.4.5",
"react-native-svg": "^15.1.0",
"react-native-qrcode-svg": "^6.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"react-dom": "18.3.1",
"stream": "npm:stream-browserify@^3.0.0",
"typedoc-gen": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"dependencies": {
"@emotion/css": "11.11.2",
Expand Down
3 changes: 1 addition & 2 deletions legacy_packages/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@thirdweb-dev/tsconfig/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"],
"include": ["src"],
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"nyc": "^15.1.0",
"rimraf": "5.0.7",
"typedoc-gen": "workspace:*",
"typescript": "5.5.2",
"typescript": "5.4.5",
"zksync-ethers": "^5.7.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"esm": "^3.2.25",
"rimraf": "5.0.7",
"typedoc-gen": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"dependencies": {
"@thirdweb-dev/crypto": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion legacy_packages/storage/src/core/uploaders/mock-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ export class MockUploader implements IStorageUploader<IpfsUploadBatchOptions> {
? file.data.toString()
: file.data;
const name = file.name ? file.name : `file_${index}`;
// @ts-expect-error - can't infer
this.storage[cid][name] = contents;
uris.push(`mock://${cid}/${name}`);
continue;
}

// @ts-expect-error - can't infer
this.storage[cid][index.toString()] = contents;
uris.push(`mock://${cid}/${index}`);
index += 1;
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/unity-js-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@thirdweb-dev/tsconfig": "workspace:*",
"esbuild": "0.21.5",
"node-stdlib-browser": "^1.2.0",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"sideEffects": false,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
"rimraf": "5.0.7",
"tweetnacl": "^1.0.3",
"typedoc-gen": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.4.5"
},
"scripts": {
"format": "biome format ./src --write",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/wallets/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@thirdweb-dev/tsconfig/sdk.json",
"include": ["${configDir}/src", "${configDir}/test"]
"include": ["src", "test"]
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
"braces@<3.0.3": "3.0.3",
"ws@>=8.0.0 <8.17.1": "8.17.1",
"ws@>=7.0.0 <7.5.10": "7.5.10",
"ws@>=6.0.0 <6.2.3": "6.2.3",
"typescript": "5.5.2"
"ws@>=6.0.0 <6.2.3": "6.2.3"
}
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 370c686

Please sign in to comment.