This script can be run to generate a set of commands to tag a version-group (a set of versions that were the "latest" together at some point in time) as the latest on NPM.
Example output:
node scripts/npm-registry/mark-version-as-latest.mjs
What is the version that should become [latest] (e.g. 3.512.0 no v-prefix)?
3.100.0
npm dist-tag add @aws-sdk/lib-dynamodb@3.100.0 latest
npm dist-tag add @aws-sdk/lib-storage@3.100.0 latest
npm dist-tag add @aws-sdk/body-checksum-browser@3.78.0 latest
npm dist-tag add @aws-sdk/body-checksum-node@3.78.0 latest
npm dist-tag add @aws-sdk/chunked-stream-reader-node@3.55.0 latest
npm dist-tag add @aws-sdk/cloudfront-signer@3.90.0 latest
# @aws-sdk/core does not exist at or below 3.100.0.
npm dist-tag add @aws-sdk/credential-provider-cognito-identity@3.100.0 latest
npm dist-tag add @aws-sdk/credential-provider-env@3.78.0 latest
# @aws-sdk/credential-provider-http does not exist at or below 3.100.0.
npm dist-tag add @aws-sdk/credential-provider-ini@3.100.0 latest
npm dist-tag add @aws-sdk/credential-provider-node@3.100.0 latest
npm dist-tag add @aws-sdk/credential-provider-process@3.80.0 latest
npm dist-tag add @aws-sdk/credential-provider-sso@3.100.0 latest
npm dist-tag add @aws-sdk/credential-provider-web-identity@3.78.0 latest
npm dist-tag add @aws-sdk/credential-providers@3.100.0 latest
# @aws-sdk/ec2-metadata-service does not exist at or below 3.100.0.
npm dist-tag add @aws-sdk/endpoint-cache@3.55.0 latest
npm dist-tag add @aws-sdk/eventstream-handler-node@3.78.0 latest
npm dist-tag add @aws-sdk/karma-credential-loader@3.40.0 latest
# @aws-sdk/middleware-api-key does not exist at or below 3.100.0.
npm dist-tag add @aws-sdk/middleware-bucket-endpoint@3.80.0 latest
... etc.
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.
This script can be run to generate a set of commands to tag a version-group (a set of versions that were the "latest" together at some point in time) as the latest on NPM.
Example output: