diff --git a/docs/package.json b/docs/package.json index 40b1716b9f..ad317cbb0f 100644 --- a/docs/package.json +++ b/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": [ diff --git a/package.json b/package.json index a6cd827aa6..86e0007e76 100644 --- a/package.json +++ b/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" }, diff --git a/packages/admin-ui-plugin/package.json b/packages/admin-ui-plugin/package.json index 468d863efa..1f8c53c2e6 100644 --- a/packages/admin-ui-plugin/package.json +++ b/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", diff --git a/packages/admin-ui/package.json b/packages/admin-ui/package.json index e757e87886..9223f3b140 100644 --- a/packages/admin-ui/package.json +++ b/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" } } diff --git a/packages/admin-ui/src/lib/core/src/shared/components/data-table/data-table.component.ts b/packages/admin-ui/src/lib/core/src/shared/components/data-table/data-table.component.ts index 03f6fc97a9..76ea437b4d 100644 --- a/packages/admin-ui/src/lib/core/src/shared/components/data-table/data-table.component.ts +++ b/packages/admin-ui/src/lib/core/src/shared/components/data-table/data-table.component.ts @@ -103,7 +103,7 @@ export class DataTableComponent 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(); /** @deprecated pass a SelectionManager instance instead */ diff --git a/packages/admin-ui/src/lib/react/src/public_api.ts b/packages/admin-ui/src/lib/react/src/public_api.ts index 2ee8e6a5c8..fce1078ccf 100644 --- a/packages/admin-ui/src/lib/react/src/public_api.ts +++ b/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'; diff --git a/packages/asset-server-plugin/package.json b/packages/asset-server-plugin/package.json index 311272cfda..205bde61eb 100644 --- a/packages/asset-server-plugin/package.json +++ b/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", diff --git a/packages/cli/package.json b/packages/cli/package.json index bd9feaa9ae..75684ae118 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -43,6 +43,6 @@ "ts-morph": "^21.0.1" }, "devDependencies": { - "typescript": "4.9.5" + "typescript": "5.1.6" } } diff --git a/packages/common/package.json b/packages/common/package.json index abdec916e5..de9ff7efab 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -20,6 +20,6 @@ ], "devDependencies": { "rimraf": "^3.0.2", - "typescript": "4.9.5" + "typescript": "5.1.6" } } diff --git a/packages/core/package.json b/packages/core/package.json index 03cb7d4a6b..7bf57aea3d 100644 --- a/packages/core/package.json +++ b/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" } } diff --git a/packages/create/package.json b/packages/create/package.json index 231c1fe04e..7903cd5b49 100644 --- a/packages/create/package.json +++ b/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", diff --git a/packages/create/src/constants.ts b/packages/create/src/constants.ts index c5def8f3da..45a94bcefa 100644 --- a/packages/create/src/constants.ts +++ b/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'; diff --git a/packages/dev-server/package.json b/packages/dev-server/package.json index 2d7b476efb..1ab26521cc 100644 --- a/packages/dev-server/package.json +++ b/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", diff --git a/packages/elasticsearch-plugin/package.json b/packages/elasticsearch-plugin/package.json index 260ab3e1d9..74bbd40b8e 100644 --- a/packages/elasticsearch-plugin/package.json +++ b/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" } } diff --git a/packages/email-plugin/package.json b/packages/email-plugin/package.json index 22dc13b017..72a1b69395 100644 --- a/packages/email-plugin/package.json +++ b/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" } } diff --git a/packages/job-queue-plugin/package.json b/packages/job-queue-plugin/package.json index 2f72943c3c..49b9c3e517 100644 --- a/packages/job-queue-plugin/package.json +++ b/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" } } diff --git a/packages/payments-plugin/package.json b/packages/payments-plugin/package.json index 3b99fd2c35..c83e61c8b5 100644 --- a/packages/payments-plugin/package.json +++ b/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" } } diff --git a/packages/testing/package.json b/packages/testing/package.json index 420bc21dc2..22803a95cf 100644 --- a/packages/testing/package.json +++ b/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" } } diff --git a/packages/ui-devkit/package.json b/packages/ui-devkit/package.json index ddd761837d..626a951d72 100644 --- a/packages/ui-devkit/package.json +++ b/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" } } diff --git a/yarn.lock b/yarn.lock index 5db4ae00e3..0ef28e6924 100644 --- a/yarn.lock +++ b/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"