ITADN

Determining the AWS SDK version at runtime?

#1446Openperpil 创建于 2026-03-12
P
perpilcommented
Is there a way to determine the aws sdk version the llrt binary was built with at runtime? Doing something like this doesn't work: ```javascript import packageJson from '@aws-sts/client/package.json' with { type: 'json' }; const sdkVersion = packageJson.version; ``` Also, super minor, but worth mentioning, the latest release on GitHub `v0.8.1-beta` (arm64 zip) reports `v0.8.0-beta` when you use `process.version`. If you build locally with the latest code it reports `v0.8.1-beta` so something might have been missed that sets the version number during the release process. Strangely, the [commit that changes it to 8.1](https://github.com/awslabs/llrt/commit/6d460c5cec39380ebbd5d76cc34af633ea7015b3) seems to be part of the 8.1 release.
2 条评论