aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
3.06k stars 573 forks source link

chore(scripts): use caret when updating aws-sdk peerDependencies #6031

Closed trivikr closed 5 months ago

trivikr commented 5 months ago

Issue

Noticed in https://github.com/aws/aws-sdk-js-v3/pull/6027

Description

Use caret when updating aws-sdk peerDependencies

Testing

Ran the scripts to ensure peerDependencies are updated correctly

$ yarn update:versions:current

$ git diff lib/lib-dynamodb/package.json
diff --git a/lib/lib-dynamodb/package.json b/lib/lib-dynamodb/package.json
index f3219749ada..c9744a1f1f0 100644
--- a/lib/lib-dynamodb/package.json
+++ b/lib/lib-dynamodb/package.json
@@ -26,16 +26,16 @@
   },
   "license": "Apache-2.0",
   "dependencies": {
-    "@aws-sdk/util-dynamodb": "*",
+    "@aws-sdk/util-dynamodb": "3.564.0",
     "@smithy/smithy-client": "^2.5.1",
     "@smithy/types": "^2.12.0",
     "tslib": "^2.6.2"
   },
   "peerDependencies": {
-    "@aws-sdk/client-dynamodb": "*"
+    "@aws-sdk/client-dynamodb": "^3.564.0"
   },
   "devDependencies": {
-    "@aws-sdk/client-dynamodb": "*",
+    "@aws-sdk/client-dynamodb": "3.564.0",
     "@tsconfig/recommended": "1.0.1",
     "@types/node": "^14.14.31",

$ yarn update:versions:default

$ git status
On branch update-peer-dependencies
Your branch is up to date with 'origin/update-peer-dependencies'.

nothing to commit, working tree clean

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

github-actions[bot] commented 4 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.