diff --git a/docs/scripts/util/getAllTypesData.ts b/docs/scripts/util/getAllTypesData.ts index ea23f4c1fca..1141a572620 100644 --- a/docs/scripts/util/getAllTypesData.ts +++ b/docs/scripts/util/getAllTypesData.ts @@ -1,6 +1,6 @@ import fs from 'fs'; import path from 'path'; -import { Project, PropertySignature, TypeAliasDeclaration } from 'ts-morph'; +import { Project, PropertySignature, TypeAliasDeclaration, ts } from 'ts-morph'; import { capitalizeString } from '../../src/utils/capitalizeString'; import { AllTypeFileData, @@ -108,7 +108,8 @@ function setTypeData( const typeName = typeProp.getNameNode().getText(); const typeType = typeProp.getTypeNode().getText(); const isOptional = - typeProp.getChildrenOfKind(SyntaxKind.QuestionToken)[0]?.getText() === '?'; + typeProp.getChildrenOfKind(ts.SyntaxKind.QuestionToken)[0]?.getText() === + '?'; typeData.set('name', typeName); typeData.set('type', typeType); diff --git a/examples/react-native/package.json b/examples/react-native/package.json index 7747269f204..8232d51d5cd 100644 --- a/examples/react-native/package.json +++ b/examples/react-native/package.json @@ -54,7 +54,7 @@ "react-native-dotenv": "^3.4.0", "react-native-launch-arguments": "^3.1.4", "react-test-renderer": "^17.0.2", - "typescript": "^4.6.3" + "typescript": "^5.0.2" }, "resolutions": { "@types/react": "^17", diff --git a/package.json b/package.json index 4a992b9a13c..dfcf904742b 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "prettier": "2.4.1", "rimraf": "^3.0.2", "turbo": "^1.2.8", - "typescript": "^4.6.3", + "typescript": "^5.0.2", "wait-on": "^6.0.0" } } diff --git a/packages/react-auth/package.json b/packages/react-auth/package.json index ff5432389e2..8c35bf377e0 100644 --- a/packages/react-auth/package.json +++ b/packages/react-auth/package.json @@ -47,7 +47,7 @@ "@xstate/react": "3.0.1", "classnames": "2.3.1", "lodash": "4.17.21", - "tslib": "2.4.1" + "tslib": "2.6.2" }, "peerDependencies": { "aws-amplify": "console-preview", diff --git a/packages/react-core-auth/package.json b/packages/react-core-auth/package.json index 9e402fb5385..d371e7fb46d 100644 --- a/packages/react-core-auth/package.json +++ b/packages/react-core-auth/package.json @@ -65,7 +65,7 @@ "rollup": "^2.70.0", "rollup-plugin-node-externals": "^4.1.1", "ts-jest": "^27.1.3", - "typescript": "^4.3.2" + "typescript": "^5.0.2" }, "sideEffects": false } diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 9f0e5a3b884..8166e03d1df 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -64,7 +64,7 @@ "rollup": "^2.70.0", "rollup-plugin-node-externals": "^4.1.1", "ts-jest": "^27.1.3", - "typescript": "^4.3.2" + "typescript": "^5.0.2" }, "sideEffects": false } diff --git a/packages/react-geo/package.json b/packages/react-geo/package.json index 7665f56fe80..77ef3baddec 100644 --- a/packages/react-geo/package.json +++ b/packages/react-geo/package.json @@ -44,7 +44,7 @@ "maplibre-gl": "2.1.9", "maplibre-gl-js-amplify": "3.0.0-geo.1", "react-map-gl": "7.0.23", - "tslib": "2.4.1" + "tslib": "2.6.2" }, "peerDependencies": { "@aws-amplify/geo": "next", diff --git a/packages/react-liveness/package.json b/packages/react-liveness/package.json index ba72d611439..e52cc07cc8f 100644 --- a/packages/react-liveness/package.json +++ b/packages/react-liveness/package.json @@ -64,7 +64,7 @@ "@xstate/react": "3.0.1", "classnames": "2.3.1", "nanoid": "3.1.31", - "tslib": "2.4.1", + "tslib": "2.6.2", "xstate": "^4.33.6" }, "devDependencies": { diff --git a/packages/react-storage/package.json b/packages/react-storage/package.json index 70154436778..56cbd327574 100644 --- a/packages/react-storage/package.json +++ b/packages/react-storage/package.json @@ -45,7 +45,7 @@ "@aws-amplify/ui-react-core": "2.1.33", "classnames": "2.3.1", "lodash": "4.17.21", - "tslib": "2.4.1" + "tslib": "2.6.2" }, "peerDependencies": { "aws-amplify": "console-preview", diff --git a/packages/react/package.json b/packages/react/package.json index c2f4ef37475..2f80b72d7a4 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -60,7 +60,7 @@ "lodash": "4.17.21", "qrcode": "1.5.0", "react-generate-context": "1.0.1", - "tslib": "2.4.1" + "tslib": "2.6.2" }, "peerDependencies": { "aws-amplify": "console-preview", diff --git a/packages/ui/package.json b/packages/ui/package.json index c2ba8306970..eb77a6b1375 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -48,7 +48,7 @@ "csstype": "^3.1.1", "lodash": "4.17.21", "style-dictionary": "3.7.1", - "tslib": "2.4.1" + "tslib": "2.6.2" }, "peerDependencies": { "aws-amplify": "console-preview", diff --git a/packages/vue/package.json b/packages/vue/package.json index e52320a3c84..57555785624 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -71,7 +71,7 @@ "rimraf": "^3.0.2", "rollup-plugin-typescript2": "^0.31.2", "ts-jest": "^27", - "typescript": "^4.6.4", + "typescript": "^5.0.2", "unplugin-vue-components": "^0.25.0", "vite": "^2.9.16", "vite-jest": "^0.1.4", diff --git a/yarn.lock b/yarn.lock index f20fe3ff50b..47e6a99103c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26882,7 +26882,7 @@ semver@7.3.8, semver@7.5.4, semver@7.x, semver@^7.0.0, semver@^7.1.1, semver@^7. semver@7.5.3: version "7.5.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ== dependencies: lru-cache "^6.0.0" @@ -28816,10 +28816,10 @@ tslib@2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== -tslib@2.4.1: - version "2.4.1" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" - integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== +tslib@2.6.2, tslib@^2.6.1, tslib@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== tslib@^1.10.0, tslib@^1.11.1, tslib@^1.13.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: version "1.14.1" @@ -28836,11 +28836,6 @@ tslib@^2.5.2: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== -tslib@^2.6.1, tslib@^2.6.2: - version "2.6.2" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - tslint@~6.1.0: version "6.1.3" resolved "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904" @@ -29037,10 +29032,10 @@ typescript@5.0.2: resolved "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5" integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw== -typescript@^4.3.2, typescript@^4.6.3, typescript@^4.6.4: - version "4.9.5" - resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@^5.0.2: + version "5.2.2" + resolved "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" + integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== typescript@~4.6.4: version "4.6.4"