From a8d4b3ea9712a09253266dc3cfda14c587299964 Mon Sep 17 00:00:00 2001 From: Paulo Margarido <64600052+paulomarg@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:33:22 -0400 Subject: [PATCH] Make shopify-api dependency more flexible --- .changeset/config.json | 3 +-- .changeset/mean-plums-compare.md | 16 ++++++++++++++++ .../package.json | 2 +- .../package.json | 2 +- .../shopify-app-session-storage-kv/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 4 ++-- .../shopify-app-session-storage/package.json | 4 ++-- 14 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 .changeset/mean-plums-compare.md diff --git a/.changeset/config.json b/.changeset/config.json index 0be4842ff3..ac8d21f84d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -9,7 +9,6 @@ "updateInternalDependencies": "patch", "ignore": [], "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { - "updateInternalDependents": "always", - "onlyUpdatePeerDependentsWhenOutOfRange": true + "updateInternalDependents": "always" } } diff --git a/.changeset/mean-plums-compare.md b/.changeset/mean-plums-compare.md new file mode 100644 index 0000000000..193c67507e --- /dev/null +++ b/.changeset/mean-plums-compare.md @@ -0,0 +1,16 @@ +--- +"@shopify/shopify-app-session-storage-postgresql": patch +"@shopify/shopify-app-session-storage-test-utils": patch +"@shopify/shopify-app-session-storage-dynamodb": patch +"@shopify/shopify-app-session-storage-drizzle": patch +"@shopify/shopify-app-session-storage-mongodb": patch +"@shopify/shopify-app-session-storage-memory": patch +"@shopify/shopify-app-session-storage-prisma": patch +"@shopify/shopify-app-session-storage-sqlite": patch +"@shopify/shopify-app-session-storage-mysql": patch +"@shopify/shopify-app-session-storage-redis": patch +"@shopify/shopify-app-session-storage-kv": patch +"@shopify/shopify-app-session-storage": patch +--- + +Updated @shopify/shopify-api dependency to also allow v10+ since there were no breaking changes affecting this package. diff --git a/packages/apps/session-storage/shopify-app-session-storage-drizzle/package.json b/packages/apps/session-storage/shopify-app-session-storage-drizzle/package.json index 72ea8a51a0..dfe0ca43b5 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-drizzle/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-drizzle/package.json @@ -45,7 +45,7 @@ "tslib": "^2.6.2" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4", "drizzle-orm": "^0.30.6" }, diff --git a/packages/apps/session-storage/shopify-app-session-storage-dynamodb/package.json b/packages/apps/session-storage/shopify-app-session-storage-dynamodb/package.json index f17ce681f3..3747f8f7e8 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-dynamodb/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-dynamodb/package.json @@ -47,7 +47,7 @@ "@aws-sdk/util-dynamodb": "^3.554.0" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-kv/package.json b/packages/apps/session-storage/shopify-app-session-storage-kv/package.json index 192257b162..555b67b120 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-kv/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-kv/package.json @@ -46,7 +46,7 @@ "semver": "^7.6.0" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-memory/package.json b/packages/apps/session-storage/shopify-app-session-storage-memory/package.json index ffb4d1e5a0..0711958794 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-memory/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-memory/package.json @@ -42,7 +42,7 @@ ], "dependencies": {}, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-mongodb/package.json b/packages/apps/session-storage/shopify-app-session-storage-mongodb/package.json index d1760469eb..0f8979b879 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-mongodb/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-mongodb/package.json @@ -45,7 +45,7 @@ "mongodb": "^6.3.0" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-mysql/package.json b/packages/apps/session-storage/shopify-app-session-storage-mysql/package.json index 0412c47b67..995a0503ff 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-mysql/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-mysql/package.json @@ -46,7 +46,7 @@ "mysql2": "^3.9.2" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-postgresql/package.json b/packages/apps/session-storage/shopify-app-session-storage-postgresql/package.json index 83fc5ad1bd..26d2fb59ad 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-postgresql/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-postgresql/package.json @@ -47,7 +47,7 @@ "pg-connection-string": "^2.6.2" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-prisma/package.json b/packages/apps/session-storage/shopify-app-session-storage-prisma/package.json index 42b8ac6b30..b88441dab1 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-prisma/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-prisma/package.json @@ -44,7 +44,7 @@ "dependencies": {}, "peerDependencies": { "@prisma/client": "^5.10.2", - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4", "prisma": "^5.12.1" }, diff --git a/packages/apps/session-storage/shopify-app-session-storage-redis/package.json b/packages/apps/session-storage/shopify-app-session-storage-redis/package.json index 7160f2e8f3..74925bf3c9 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-redis/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-redis/package.json @@ -46,7 +46,7 @@ "redis": "^4.6.12" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-sqlite/package.json b/packages/apps/session-storage/shopify-app-session-storage-sqlite/package.json index 029a7681a7..3eed7db135 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-sqlite/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-sqlite/package.json @@ -46,7 +46,7 @@ "sqlite3": "^5.1.7" }, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { diff --git a/packages/apps/session-storage/shopify-app-session-storage-test-utils/package.json b/packages/apps/session-storage/shopify-app-session-storage-test-utils/package.json index fa66bad377..0e282d70b3 100644 --- a/packages/apps/session-storage/shopify-app-session-storage-test-utils/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage-test-utils/package.json @@ -44,11 +44,11 @@ ], "dependencies": {}, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "devDependencies": { - "@shopify/shopify-api": "^9.7.2", + "@shopify/shopify-api": "^9.7.2 || ^10.0.0", "@shopify/shopify-app-session-storage": "^2.1.4" }, "files": [ diff --git a/packages/apps/session-storage/shopify-app-session-storage/package.json b/packages/apps/session-storage/shopify-app-session-storage/package.json index 9f0ca56a6c..6a885dad6d 100644 --- a/packages/apps/session-storage/shopify-app-session-storage/package.json +++ b/packages/apps/session-storage/shopify-app-session-storage/package.json @@ -43,10 +43,10 @@ ], "dependencies": {}, "peerDependencies": { - "@shopify/shopify-api": "^9.7.2" + "@shopify/shopify-api": "^9.7.2 || ^10.0.0" }, "devDependencies": { - "@shopify/shopify-api": "^9.7.2" + "@shopify/shopify-api": "^9.7.2 || ^10.0.0" }, "files": [ "dist/*",