Skip to content

Commit

Permalink
chore: upgrade to Typescript 4.8 (#6021)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Mar 15, 2023
1 parent 10f1ea2 commit 7df865a
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 58 deletions.
2 changes: 1 addition & 1 deletion config/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.6.2",
"version": "4.8.4",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"sinon": "^15.0.1",
"stylelint-config-palantir": "^6.0.1",
"stylelint-scss": "^4.4.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"yargs": "^17.6.0",
"yarn-deduplicate": "^6.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@blueprintjs/node-build-scripts": "^7.0.3",
"mocha": "^10.2.0",
"typescript": "~4.6.2"
"typescript": "~4.8.4"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/common/utils/compareUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function isSimplePrimitiveType(value: any) {
return typeof value === "number" || typeof value === "string" || typeof value === "boolean";
}

function filterKeys<T>(objA: T, objB: T, keys: KeyDenylist<T> | KeyAllowlist<T>) {
function filterKeys<T extends object>(objA: T, objB: T, keys: KeyDenylist<T> | KeyAllowlist<T>) {
if (isAllowlist(keys)) {
return keys.include;
} else if (isDenylist(keys)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/datetime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/datetime2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"npm-run-all": "^4.1.5",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-theme/src/common/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ function assertFunctionProp<T>(obj: T, key: keyof T) {
if (obj[key] != null && Utils.isFunction(obj[key])) {
return null;
}
return new Error(`[Blueprint] Documentation context ${key} must be function.`);
return new Error(`[Blueprint] Documentation context ${key.toString()} must be function.`);
}
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/monaco-editor-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@blueprintjs/node-build-scripts": "^7.0.3",
"npm-run-all": "^4.1.5",
"typescript": "~4.6.2"
"typescript": "~4.8.4"
},
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions packages/node-build-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@
"postcss-simple-vars": "^7.0.1",
"prettier": "~2.8.3",
"sass": "^1.58.3",
"sass-extended-importer": "^0.4.2",
"source-map-js": "^1.0.2",
"strip-css-comments": "^5.0.0",
"stylelint": "~14.16.0",
"stylelint-junit-formatter": "^0.2.2",
"svgo": "^1.3.2",
"ts-node": "^10.9.1",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"yargs": "^17.6.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/popover2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"react-dom": "^16.14.0",
"react-test-renderer": "^16.13.1",
"sass-inline-svg": "^1.2.3",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack": "^5.76.0"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"@blueprintjs/node-build-scripts": "^7.0.3",
"react": "^16.13.1",
"typescript": "~4.6.2"
"typescript": "~4.8.4"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/timezone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"typescript": "~4.6.2",
"typescript": "~4.8.4",
"webpack-cli": "^5.0.1"
},
"repository": {
Expand Down
45 changes: 5 additions & 40 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1660,16 +1660,11 @@
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.1.tgz#2f4f65bb08bc368ac39c96da7b2f09140b26851b"
integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==

"@types/node@*", "@types/node@16.10.4", "@types/node@>=10.0.0":
"@types/node@*", "@types/node@>=10.0.0":
version "16.10.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.4.tgz#592f12b0b5f357533ddc3310b0176d42ea3e45d1"
integrity sha512-EITwVTX5B4nDjXjGeQAfXOrm+Jn+qNjDmyDRtWoD+wZsl/RDPRTFRKivs4Mt74iOFlLOrE5+Kf+p5yjyhm3+cA==

"@types/node@^15.9.0":
version "15.14.9"
resolved "https://registry.yarnpkg.com/@types/node/-/node-15.14.9.tgz#bc43c990c3c9be7281868bbc7b8fdd6e2b57adfa"
integrity sha512-qjd88DrCxupx/kJD5yQgZdcYKZKSIGBVDIBE1/LTGcNm3d2Np/jxojkdePDdfnBHJc5W7vSMpbJ1aB7p/Py69A==

"@types/normalize-package-data@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
Expand Down Expand Up @@ -1735,11 +1730,6 @@
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/resolve@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.1.tgz#3727e48042fda81e374f5d5cf2fa92288bf698f8"
integrity sha512-Ku5+GPFa12S3W26Uwtw+xyrtIpaZsGYHH6zxNbZlstmlvMYSZRzOwzwsXbxlVUbHyUucctSyuFtu6bNxwYomIw==

"@types/retry@0.12.0":
version "0.12.0"
resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d"
Expand Down Expand Up @@ -3714,13 +3704,6 @@ cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"

crosspath@0.0.9:
version "0.0.9"
resolved "https://registry.yarnpkg.com/crosspath/-/crosspath-0.0.9.tgz#2ac42b39b3b83eeb25851a4058ccd0722baea520"
integrity sha512-lhDiWhqHk1IQ0BiGN9/Ji7qEr9LwCG8taDCTgihII/6b91my+GvTNXDB7eKh/FySz488tkt2IboqBJTSZtc4Fw==
dependencies:
"@types/node" "^15.9.0"

css-declaration-sorter@^6.3.1:
version "6.3.1"
resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.3.1.tgz#be5e1d71b7a992433fb1c542c7a1b835e45682ec"
Expand Down Expand Up @@ -7936,13 +7919,6 @@ minimalistic-assert@^1.0.0:
dependencies:
brace-expansion "^1.1.7"

minimatch@3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
dependencies:
brace-expansion "^1.1.7"

minimatch@5.0.1, minimatch@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.0.1.tgz#fb9022f7528125187c92bd9e9b6366be1cf3415b"
Expand Down Expand Up @@ -10135,17 +10111,6 @@ safe-regex-test@^1.0.0:
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==

sass-extended-importer@^0.4.2:
version "0.4.2"
resolved "https://registry.yarnpkg.com/sass-extended-importer/-/sass-extended-importer-0.4.2.tgz#58f86b8118d0739ba6e60797fa4f2744b6e0b3ee"
integrity sha512-3e9+iVB1vvoGS6ohq7OG2MiYvcwESkZqwV8g0uCDGvHeTt4kEt0E/T8eav18J03fvNFK1/mV47592E1tx1izgQ==
dependencies:
"@types/node" "16.10.4"
"@types/resolve" "1.20.1"
crosspath "0.0.9"
minimatch "3.0.4"
resolve "^1.20.0"

sass-inline-svg@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/sass-inline-svg/-/sass-inline-svg-1.2.3.tgz#3dedfff55c13f1a96aac07740413be61f871c4bc"
Expand Down Expand Up @@ -11502,10 +11467,10 @@ typedoc@~0.19.2:
shelljs "^0.8.4"
typedoc-default-themes "^0.11.4"

"typescript@^3 || ^4", typescript@^4.6.2, typescript@~4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.2.tgz#fe12d2727b708f4eef40f51598b3398baa9611d4"
integrity sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==
"typescript@^3 || ^4", typescript@^4.6.2, typescript@~4.8.4:
version "4.8.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==

ua-parser-js@^0.7.30:
version "0.7.33"
Expand Down

1 comment on commit 7df865a

@adidahiya
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chore: upgrade to Typescript 4.8 (#6021)

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.