Browse Source

feat(core): Update TypeScript version to v5.1.6

Michael Bromley 1 year ago
parent
commit
2f51929428

+ 1 - 1
docs/package.json

@@ -27,7 +27,7 @@
   "devDependencies": {
     "@docusaurus/module-type-aliases": "2.4.1",
     "@tsconfig/docusaurus": "^1.0.5",
-    "typescript": "^4.7.4"
+    "typescript": "5.1.6"
   },
   "browserslist": {
     "production": [

+ 1 - 1
package.json

@@ -53,7 +53,7 @@
     "prettier": "^2.2.1",
     "tinybench": "^2.5.1",
     "ts-node": "^10.9.1",
-    "typescript": "4.9.5",
+    "typescript": "5.1.6",
     "unplugin-swc": "^1.3.2",
     "vitest": "^0.34.2"
   },

+ 1 - 1
packages/admin-ui-plugin/package.json

@@ -25,7 +25,7 @@
         "@vendure/core": "2.2.0-next.3",
         "express": "^4.17.1",
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     },
     "dependencies": {
         "date-fns": "^2.30.0",

+ 1 - 1
packages/admin-ui/package.json

@@ -113,6 +113,6 @@
         "ng-packagr": "16.2.1",
         "puppeteer": "^19.8.3",
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/admin-ui/src/lib/core/src/shared/components/data-table/data-table.component.ts

@@ -103,7 +103,7 @@ export class DataTableComponent<T> implements AfterContentInit, OnChanges, OnIni
     /** @deprecated pass a SelectionManager instance instead */
     @Input() allSelected: boolean;
     /** @deprecated pass a SelectionManager instance instead */
-    @Input() isRowSelectedFn: (item: T) => boolean;
+    @Input() isRowSelectedFn: ((item: T) => boolean) | undefined;
     /** @deprecated pass a SelectionManager instance instead */
     @Output() allSelectChange = new EventEmitter<void>();
     /** @deprecated pass a SelectionManager instance instead */

+ 2 - 0
packages/admin-ui/src/lib/react/src/public_api.ts

@@ -11,11 +11,13 @@ export * from './react-components/FormField';
 export * from './react-components/Link';
 export * from './react-components/PageBlock';
 export * from './react-components/PageDetailLayout';
+export * from './react-components/RichTextEditor';
 export * from './react-hooks/use-detail-component-data';
 export * from './react-hooks/use-form-control';
 export * from './react-hooks/use-injector';
 export * from './react-hooks/use-page-metadata';
 export * from './react-hooks/use-query';
+export * from './react-hooks/use-rich-text-editor';
 export * from './react-hooks/use-route-params';
 export * from './register-react-custom-detail-component';
 export * from './register-react-data-table-component';

+ 1 - 1
packages/asset-server-plugin/package.json

@@ -32,7 +32,7 @@
         "express": "^4.17.1",
         "node-fetch": "^2.6.7",
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     },
     "dependencies": {
         "file-type": "^16.5.3",

+ 1 - 1
packages/cli/package.json

@@ -43,6 +43,6 @@
         "ts-morph": "^21.0.1"
     },
     "devDependencies": {
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/common/package.json

@@ -20,6 +20,6 @@
     ],
     "devDependencies": {
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/core/package.json

@@ -101,6 +101,6 @@
         "rimraf": "^3.0.2",
         "sql.js": "1.8.0",
         "sqlite3": "^5.1.4",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/create/package.json

@@ -31,7 +31,7 @@
         "@vendure/core": "2.2.0-next.3",
         "rimraf": "^3.0.2",
         "ts-node": "^10.9.1",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     },
     "dependencies": {
         "@clack/prompts": "^0.7.0",

+ 1 - 1
packages/create/src/constants.ts

@@ -4,4 +4,4 @@ export const SERVER_PORT = 3000;
  * The TypeScript version needs to pinned because minor versions often
  * introduce breaking changes.
  */
-export const TYPESCRIPT_VERSION = '4.9.5';
+export const TYPESCRIPT_VERSION = '5.1.6';

+ 1 - 1
packages/dev-server/package.json

@@ -21,7 +21,7 @@
         "@vendure/core": "2.2.0-next.3",
         "@vendure/elasticsearch-plugin": "2.2.0-next.3",
         "@vendure/email-plugin": "2.2.0-next.3",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     },
     "devDependencies": {
         "@types/csv-stringify": "^3.1.0",

+ 1 - 1
packages/elasticsearch-plugin/package.json

@@ -29,6 +29,6 @@
         "@vendure/common": "2.2.0-next.3",
         "@vendure/core": "2.2.0-next.3",
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/email-plugin/package.json

@@ -38,6 +38,6 @@
         "@vendure/common": "2.2.0-next.3",
         "@vendure/core": "2.2.0-next.3",
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/job-queue-plugin/package.json

@@ -28,6 +28,6 @@
         "bullmq": "^5.1.7",
         "ioredis": "^5.3.2",
         "rimraf": "^3.0.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/payments-plugin/package.json

@@ -54,6 +54,6 @@
         "nock": "^13.1.4",
         "rimraf": "^3.0.2",
         "stripe": "^13.3.0",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/testing/package.json

@@ -53,6 +53,6 @@
         "mysql": "^2.18.1",
         "pg": "^8.4.0",
         "rimraf": "^3.0.0",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 1 - 1
packages/ui-devkit/package.json

@@ -59,6 +59,6 @@
         "rollup-plugin-terser": "^7.0.2",
         "rollup-plugin-typescript2": "^0.35.0",
         "tslib": "^2.6.2",
-        "typescript": "4.9.5"
+        "typescript": "5.1.6"
     }
 }

+ 16 - 39
yarn.lock

@@ -11750,19 +11750,12 @@ ieee754@^1.1.13, ieee754@^1.1.4, ieee754@^1.2.1:
   resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
   integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
 
-ignore-walk@^5.0.1:
-  version "5.0.1"
-  resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-5.0.1.tgz#5f199e23e1288f518d90358d461387788a154776"
-  integrity sha512-yemi4pMf51WKT7khInJqAvsIGzoqYXblnsz0ql8tM+yi1EKYTY1evX4NAbJrLL/Aanr2HyZeluqU+Oi7MGHokw==
-  dependencies:
-    minimatch "^5.0.1"
-
-ignore-walk@^6.0.0, ignore-walk@^6.0.4:
-  version "6.0.4"
-  resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-6.0.4.tgz#89950be94b4f522225eb63a13c56badb639190e9"
-  integrity sha512-t7sv42WkwFkyKbivUCglsQW5YWMskWtbEf4MNKX5u/CCWHKSPzN4FtBQGsQZgCLbxOzpVlcbWVK5KB3auIOjSw==
+ignore-walk@^3.0.1:
+  version "3.0.4"
+  resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.4.tgz#c9a09f69b7c7b479a5d74ac1a3c0d4236d2a6335"
+  integrity sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==
   dependencies:
-    minimatch "^9.0.0"
+    minimatch "^3.0.4"
 
 ignore@5.2.4:
   version "5.2.4"
@@ -14951,7 +14944,7 @@ now-and-later@^2.0.0:
   dependencies:
     once "^1.3.2"
 
-npm-bundled@^1.1.2:
+npm-bundled@^1.0.1:
   version "1.1.2"
   resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.2.tgz#944c78789bd739035b70baa2ca5cc32b8d860bc1"
   integrity sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==
@@ -15011,29 +15004,13 @@ npm-package-arg@^11.0.0:
     semver "^7.3.5"
     validate-npm-package-name "^5.0.0"
 
-npm-packlist@5.1.1:
-  version "5.1.1"
-  resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-5.1.1.tgz#79bcaf22a26b6c30aa4dd66b976d69cc286800e0"
-  integrity sha512-UfpSvQ5YKwctmodvPPkK6Fwk603aoVsf8AEbmVKAEECrfvL8SSe1A2YIwrJ6xmTHAITKPwwZsWo7WwEbNk0kxw==
-  dependencies:
-    glob "^8.0.1"
-    ignore-walk "^5.0.1"
-    npm-bundled "^1.1.2"
-    npm-normalize-package-bin "^1.0.1"
-
-npm-packlist@^7.0.0:
-  version "7.0.4"
-  resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-7.0.4.tgz#033bf74110eb74daf2910dc75144411999c5ff32"
-  integrity sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==
-  dependencies:
-    ignore-walk "^6.0.0"
-
-npm-packlist@^8.0.0:
-  version "8.0.2"
-  resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-8.0.2.tgz#5b8d1d906d96d21c85ebbeed2cf54147477c8478"
-  integrity sha512-shYrPFIS/JLP4oQmAwDyk5HcyysKW8/JLTEA32S0Z5TzvpaeeX2yMFfoK1fjEBnCBvVyIB/Jj/GBFdm0wsgzbA==
+npm-packlist@1.1.12, npm-packlist@5.1.1, npm-packlist@^7.0.0, npm-packlist@^8.0.0:
+  version "1.1.12"
+  resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.12.tgz#22bde2ebc12e72ca482abd67afc51eb49377243a"
+  integrity sha512-WJKFOVMeAlsU/pjXuqVdzU0WfgtIBCupkEVwn+1Y0ERAbUfWw8R4GjgVbaKnUjRoD2FoQbHOCbOyT5Mbs9Lw4g==
   dependencies:
-    ignore-walk "^6.0.4"
+    ignore-walk "^3.0.1"
+    npm-bundled "^1.0.1"
 
 npm-pick-manifest@8.0.1:
   version "8.0.1"
@@ -19082,10 +19059,10 @@ typeorm@0.3.11:
     xml2js "^0.4.23"
     yargs "^17.3.1"
 
-typescript@4.9.5:
-  version "4.9.5"
-  resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
-  integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
+typescript@5.1.6:
+  version "5.1.6"
+  resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
+  integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
 
 "typescript@>=3 < 6":
   version "5.3.3"