Skip to content

Commit

Permalink
⬆️ Upgrade TypeScript to 4.6 (#3109)
Browse files Browse the repository at this point in the history
* ⬆️ Upgrade TypeScript to 4.6

* 📦 Update package-lock.json

* 🔧 Avoid erroring on untyped errors

* 📘 Fix type error
  • Loading branch information
ivov committed Apr 8, 2022
1 parent a6fea2d commit 4993c6e
Show file tree
Hide file tree
Showing 13 changed files with 886 additions and 58,958 deletions.
59,818 changes: 871 additions & 58,947 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"ts-jest": "^27.1.3",
"ts-node": "^8.9.1",
"tslint": "^6.1.2",
"typescript": "~4.3.5"
"typescript": "~4.6.0"
},
"dependencies": {
"@oclif/command": "^1.5.18",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"source-map-support": "^0.5.9",
"ts-jest": "^27.1.3",
"tslint": "^6.1.2",
"typescript": "~4.3.5"
"typescript": "~4.6.0"
},
"dependencies": {
"axios": "^0.21.1",
Expand Down
1 change: 1 addition & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"target": "es2019",
"sourceMap": true,
"esModuleInterop": true,
"useUnknownInCatchVariables": false,
},
"include": [
"**/*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"storybook-addon-designs": "^6.0.1",
"storybook-addon-themes": "^6.1.0",
"trim": ">=0.0.3",
"typescript": "~4.3.5",
"typescript": "~4.6.0",
"vue": "^2.6.11",
"vue-class-component": "^7.2.3",
"vue-loader": "^15.9.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"string-template-parser": "^1.2.6",
"ts-jest": "^27.1.3",
"tslint": "^6.1.2",
"typescript": "~4.3.5",
"typescript": "~4.6.0",
"uuid": "^8.3.2",
"vue": "^2.6.11",
"vue-agile": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Vue from 'vue';
export const deviceSupportHelpers = Vue.extend({
data() {
return {
isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints,
isMacOs: /(ipad|iphone|ipod|mac)/i.test(navigator.platform),
isTouchDevice: 'ontouchstart' in window || navigator.maxTouchPoints,
isMacOs: /(ipad|iphone|ipod|mac)/i.test(navigator.platform), // TODO: `platform` deprecated
};
},
computed: {
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"useUnknownInCatchVariables": false,
"sourceMap": true,
"baseUrl": ".",
"types": [
Expand Down
2 changes: 1 addition & 1 deletion packages/node-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"replace-in-file": "^6.0.0",
"request": "^2.88.2",
"tmp-promise": "^3.0.2",
"typescript": "~4.3.5"
"typescript": "~4.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/nodes-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@
"nodelinter": "^0.1.9",
"ts-jest": "^27.1.3",
"tslint": "^6.1.2",
"typescript": "~4.3.5"
"typescript": "~4.6.0"
},
"dependencies": {
"@kafkajs/confluent-schema-registry": "1.0.6",
Expand Down
3 changes: 2 additions & 1 deletion packages/nodes-base/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"outDir": "./dist/",
"target": "es2019",
"sourceMap": true,
"esModuleInterop": true
"esModuleInterop": true,
"useUnknownInCatchVariables": false,
},
"include": [
"credentials/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"prettier": "^2.3.2",
"ts-jest": "^27.1.3",
"tslint": "^6.1.2",
"typescript": "~4.3.5"
"typescript": "~4.6.0"
},
"dependencies": {
"jmespath": "^0.16.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/workflow/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"declaration": true,
"outDir": "./dist/",
"target": "es2019",
"sourceMap": true
"sourceMap": true,
"useUnknownInCatchVariables": false,
},
"include": [
"**/*.d.ts",
Expand Down

0 comments on commit 4993c6e

Please sign in to comment.