From 620b6620858883c1037b09d420efb59cfa78e9ca Mon Sep 17 00:00:00 2001 From: David Luzar Date: Fri, 19 Nov 2021 19:51:28 +0100 Subject: [PATCH] chore: bump typescript@4.5.2 (#4283) * chore: bump typescript@4.5.2 * bump typescript and fix tsconfig for npm package --- package.json | 3 +-- src/packages/excalidraw/package.json | 2 +- src/packages/excalidraw/yarn.lock | 8 ++++---- tsconfig-types.json | 2 +- tsconfig.json | 2 +- yarn.lock | 13 ++++--------- 6 files changed, 12 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 900265c5..51a5a1af 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "roughjs": "4.5.0", "sass": "1.43.4", "socket.io-client": "2.3.1", - "typescript": "4.4.4" + "typescript": "4.5.2" }, "devDependencies": { "@excalidraw/eslint-config": "1.0.0", @@ -61,7 +61,6 @@ "@types/lodash.throttle": "4.1.6", "@types/pako": "1.0.2", "@types/resize-observer-browser": "0.1.6", - "@types/web": "0.0.47", "chai": "4.3.4", "eslint-config-prettier": "8.3.0", "eslint-plugin-prettier": "3.3.1", diff --git a/src/packages/excalidraw/package.json b/src/packages/excalidraw/package.json index da3ad2b7..2cf9237a 100644 --- a/src/packages/excalidraw/package.json +++ b/src/packages/excalidraw/package.json @@ -63,7 +63,7 @@ "sass-loader": "12.3.0", "terser-webpack-plugin": "5.2.5", "ts-loader": "9.2.6", - "typescript": "4.4.4", + "typescript": "4.5.2", "webpack": "5.64.0", "webpack-bundle-analyzer": "4.5.0", "webpack-cli": "4.9.1" diff --git a/src/packages/excalidraw/yarn.lock b/src/packages/excalidraw/yarn.lock index 7b6829d7..6d0a3712 100644 --- a/src/packages/excalidraw/yarn.lock +++ b/src/packages/excalidraw/yarn.lock @@ -2607,10 +2607,10 @@ tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -typescript@4.4.4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" - integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== +typescript@4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" + integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== unicode-canonical-property-names-ecmascript@^1.0.4: version "1.0.4" diff --git a/tsconfig-types.json b/tsconfig-types.json index eca3b5a7..14845980 100644 --- a/tsconfig-types.json +++ b/tsconfig-types.json @@ -7,7 +7,7 @@ "outDir": "src/packages/excalidraw/types", "jsx": "react-jsx", "target": "es6", - "lib": ["esnext"], + "lib": ["dom", "dom.iterable", "esnext"], "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, diff --git a/tsconfig.json b/tsconfig.json index 8ce58b65..c8b09c92 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es6", - "lib": ["esnext"], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, diff --git a/yarn.lock b/yarn.lock index 9d84c42c..3739fb37 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2435,11 +2435,6 @@ dependencies: source-map "^0.6.1" -"@types/web@0.0.47": - version "0.0.47" - resolved "https://registry.yarnpkg.com/@types/web/-/web-0.0.47.tgz#a48314590af421939f59fd2ec975a77b8d54dfbd" - integrity sha512-kNX2VcGuQt4Xen78iIbUXyj+WxNPlP7hGCno/sJSI4p2zo7u6jAtryAKwNNqOoOaWfFZas1lbKJKOxUarsUzog== - "@types/webpack-sources@*": version "2.1.0" resolved "https://registry.npmjs.org/@types/webpack-sources/-/webpack-sources-2.1.0.tgz" @@ -14376,10 +14371,10 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@4.4.4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" - integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== +typescript@4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" + integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== typeson-registry@^1.0.0-alpha.20: version "1.0.0-alpha.39"