From 73fe12990a95e0fa02519aafbf6a46817e1a5ca9 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Wed, 22 May 2024 16:09:32 -0700 Subject: [PATCH] chore(workspace): use typescript ~5.3.0 across the workspace --- package.json | 2 +- packages/adapter-nextjs/package.json | 3 +-- packages/analytics/package.json | 3 +-- packages/api-graphql/package.json | 5 ---- packages/api-rest/package.json | 3 +-- packages/api/package.json | 3 --- packages/auth/package.json | 3 +-- packages/aws-amplify/package.json | 3 --- packages/core/package.json | 3 +-- .../datastore-storage-adapter/package.json | 3 +-- packages/datastore/package.json | 3 +-- packages/geo/package.json | 3 +-- packages/interactions/package.json | 3 +-- packages/notifications/package.json | 3 +-- packages/predictions/package.json | 3 +-- packages/pubsub/package.json | 3 +-- packages/react-native/package.json | 3 +-- packages/rtn-push-notification/package.json | 3 +-- packages/rtn-web-browser/package.json | 3 +-- packages/storage/package.json | 3 +-- yarn.lock | 27 ++----------------- 21 files changed, 19 insertions(+), 69 deletions(-) diff --git a/package.json b/package.json index 7970a9f5d26..62572f3daef 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "typedoc": "0.25.8", "typedoc-plugin-extras": "^3.0.0", "typedoc-plugin-missing-exports": "^2.2.0", - "typescript": "^4.6.0", + "typescript": "~5.3.0", "typescript-coverage-report": "^0.6.4", "uuid-validate": "^0.0.3", "webpack": "^5.75.0", diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index 9f879356aee..3bf4384c0b7 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -17,8 +17,7 @@ "@types/react-dom": "^18.2.6", "aws-amplify": "6.3.2", "jest-fetch-mock": "3.0.3", - "next": ">= 13.5.0 < 15.0.0", - "typescript": "5.0.2" + "next": ">= 13.5.0 < 15.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 9e256812e60..5bd87fa4c9f 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -105,7 +105,6 @@ "devDependencies": { "@aws-amplify/core": "6.2.1", "@aws-amplify/react-native": "1.1.1", - "@aws-sdk/types": "3.398.0", - "typescript": "5.0.2" + "@aws-sdk/types": "3.398.0" } } diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index d00e669273e..d303b07ff7b 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -71,11 +71,6 @@ "url": "https://github.com/aws/aws-amplify/issues" }, "homepage": "https://aws-amplify.github.io/", - "devDependencies": { - "@rollup/plugin-typescript": "11.1.5", - "rollup": "^4.9.6", - "typescript": "5.0.2" - }, "files": [ "dist/cjs", "dist/esm", diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index dcd63ae2de1..0fc92aeaebd 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -88,8 +88,7 @@ }, "devDependencies": { "@aws-amplify/core": "6.2.1", - "@aws-amplify/react-native": "1.1.1", - "typescript": "5.0.2" + "@aws-amplify/react-native": "1.1.1" }, "size-limit": [ { diff --git a/packages/api/package.json b/packages/api/package.json index 1013966b18d..1afab726949 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -67,9 +67,6 @@ "url": "https://github.com/aws/aws-amplify/issues" }, "homepage": "https://aws-amplify.github.io/", - "devDependencies": { - "typescript": "5.0.2" - }, "files": [ "dist/cjs", "dist/esm", diff --git a/packages/auth/package.json b/packages/auth/package.json index e8a9c52a8ae..3813a691bd6 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -99,7 +99,6 @@ "devDependencies": { "@aws-amplify/core": "6.2.1", "@aws-amplify/react-native": "1.1.1", - "@jest/test-sequencer": "^29.7.0", - "typescript": "5.0.2" + "@jest/test-sequencer": "^29.7.0" } } diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 89e14cd5863..17ab6efe3b2 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -285,9 +285,6 @@ "@aws-amplify/storage": "6.4.2", "tslib": "^2.5.0" }, - "devDependencies": { - "typescript": "5.0.2" - }, "size-limit": [ { "name": "[Analytics] record (Pinpoint)", diff --git a/packages/core/package.json b/packages/core/package.json index 4575f026981..5b27c21cfaf 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -62,8 +62,7 @@ "devDependencies": { "@aws-amplify/react-native": "1.1.1", "@types/js-cookie": "3.0.2", - "genversion": "^2.2.0", - "typescript": "5.0.2" + "genversion": "^2.2.0" }, "size-limit": [ { diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index e58cf2f4d19..b87832f2794 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -42,7 +42,6 @@ "expo-file-system": "13.1.4", "expo-sqlite": "10.1.0", "react-native-sqlite-storage": "5.0.0", - "sqlite3": "^5.0.2", - "typescript": "5.0.2" + "sqlite3": "^5.0.2" } } diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 10c115b85c7..3336452125e 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -61,8 +61,7 @@ "dexie": "3.2.2", "dexie-export-import": "1.0.3", "fake-indexeddb": "^4.0.2", - "graphql": "15.8.0", - "typescript": "5.0.2" + "graphql": "15.8.0" }, "size-limit": [ { diff --git a/packages/geo/package.json b/packages/geo/package.json index 3760aa5b5dd..259bad41aa8 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -76,8 +76,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.2.1", - "typescript": "5.0.2" + "@aws-amplify/core": "6.2.1" }, "size-limit": [ { diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 8387d89a7bc..52da7aed068 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -81,8 +81,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@aws-amplify/core": "6.2.1", - "typescript": "^5.0.2" + "@aws-amplify/core": "6.2.1" }, "size-limit": [ { diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 50d90e681d1..3c162808ab1 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -99,7 +99,6 @@ }, "devDependencies": { "@aws-amplify/core": "6.2.1", - "@aws-amplify/react-native": "1.1.1", - "typescript": "5.0.2" + "@aws-amplify/react-native": "1.1.1" } } diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 478e1146393..8824425106e 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -59,8 +59,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.2.1", - "typescript": "5.0.2" + "@aws-amplify/core": "6.2.1" }, "size-limit": [ { diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 10fa4268f77..c0db4f177ad 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -84,8 +84,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.2.1", - "typescript": "5.0.2" + "@aws-amplify/core": "6.2.1" }, "size-limit": [ { diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 3744c1c4a40..c570bed9d91 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -39,8 +39,7 @@ "@react-native-community/netinfo": "4.7.0", "@types/base-64": "1.0.0", "react-native": "0.71.0", - "react-native-get-random-values": "1.9.0", - "typescript": "5.1.6" + "react-native-get-random-values": "1.9.0" }, "repository": { "type": "git", diff --git a/packages/rtn-push-notification/package.json b/packages/rtn-push-notification/package.json index 801a8081803..bbeb0bb2858 100644 --- a/packages/rtn-push-notification/package.json +++ b/packages/rtn-push-notification/package.json @@ -24,8 +24,7 @@ "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99" }, "devDependencies": { - "@types/react-native": "0.70.0", - "typescript": "5.0.2" + "@types/react-native": "0.70.0" }, "repository": { "type": "git", diff --git a/packages/rtn-web-browser/package.json b/packages/rtn-web-browser/package.json index 708ebfa5b2c..19a0275c8c8 100644 --- a/packages/rtn-web-browser/package.json +++ b/packages/rtn-web-browser/package.json @@ -25,8 +25,7 @@ }, "devDependencies": { "@types/react-native": "0.70.0", - "react-native": "0.72.3", - "typescript": "5.1.6" + "react-native": "0.72.3" }, "repository": { "type": "git", diff --git a/packages/storage/package.json b/packages/storage/package.json index 4664b1ba805..db5a406da57 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -102,7 +102,6 @@ }, "devDependencies": { "@aws-amplify/core": "6.2.1", - "@aws-amplify/react-native": "1.1.1", - "typescript": "5.0.2" + "@aws-amplify/react-native": "1.1.1" } } diff --git a/yarn.lock b/yarn.lock index 88b518e61d7..dd5cb9253b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3946,14 +3946,6 @@ invariant "^2.2.4" nullthrows "^1.1.1" -"@rollup/plugin-typescript@11.1.5": - version "11.1.5" - resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.5.tgz#039c763bf943a5921f3f42be255895e75764cb91" - integrity sha512-rnMHrGBB0IUEv69Q8/JGRD/n4/n6b3nfpufUu26axhUcboUzv/twfZU8fIBbTOphRAe0v8EyxzeDpKXqGHfyDA== - dependencies: - "@rollup/pluginutils" "^5.0.1" - resolve "^1.22.1" - "@rollup/plugin-typescript@^11.1.6": version "11.1.6" resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz#724237d5ec12609ec01429f619d2a3e7d4d1b22b" @@ -3962,7 +3954,7 @@ "@rollup/pluginutils" "^5.1.0" resolve "^1.22.1" -"@rollup/pluginutils@^5.0.1", "@rollup/pluginutils@^5.1.0": +"@rollup/pluginutils@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0" integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g== @@ -15021,26 +15013,11 @@ typescript@4.2.x: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg== -typescript@5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5" - integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw== - -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", typescript@^5.0.2: +"typescript@>=3 < 6", typescript@~5.3.0: version "5.3.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== -typescript@^4.6.0: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== - typeson-registry@^1.0.0-alpha.20: version "1.0.0-alpha.39" resolved "https://registry.yarnpkg.com/typeson-registry/-/typeson-registry-1.0.0-alpha.39.tgz#9e0f5aabd5eebfcffd65a796487541196f4b1211"