Browse Source

chore: bump typescript@4.5.2 (#4283)

* chore: bump typescript@4.5.2

* bump typescript and fix tsconfig for npm package
David Luzar 3 years ago
parent
commit
620b662085
6 changed files with 12 additions and 18 deletions
  1. 1 2
      package.json
  2. 1 1
      src/packages/excalidraw/package.json
  3. 4 4
      src/packages/excalidraw/yarn.lock
  4. 1 1
      tsconfig-types.json
  5. 1 1
      tsconfig.json
  6. 4 9
      yarn.lock

+ 1 - 2
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",

+ 1 - 1
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"

+ 4 - 4
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"

+ 1 - 1
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,

+ 1 - 1
tsconfig.json

@@ -1,7 +1,7 @@
 {
   "compilerOptions": {
     "target": "es6",
-    "lib": ["esnext"],
+    "lib": ["dom", "dom.iterable", "esnext"],
     "allowJs": true,
     "skipLibCheck": true,
     "esModuleInterop": true,

+ 4 - 9
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"