sui icon indicating copy to clipboard operation
sui copied to clipboard

Add femver to the SDK

Open Jordan-Mysten opened this issue 1 year ago • 2 comments

This adds femver, which is a lightweight alternative to semver. Right now it just is used for parsing, but the idea is that this is a better way to do version checks in the SDK. This gives us access to functions like lt and gt which will let us easily express version checks in the SDK. Right now we don't have much version-gated functionality, but when we do I think this will make it a lot easier.

I verified the bundle size was hardly impacted by the inclusion, so I think this makes sense to add.

Jordan-Mysten avatar Nov 22 '22 17:11 Jordan-Mysten

⚠️ 🦋 Changesets Warning: This PR has changes to public npm packages, but does not contain a changeset. You can create a changeset easily by running pnpm changeset, and following the prompts. If your change does not need a changeset (e.g. a documentation-only change), you can ignore this message. This warning will be removed when a changeset is added to this pull request.

Learn more about Changesets.

github-actions[bot] avatar Nov 22 '22 17:11 github-actions[bot]

💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3525660331#artifacts

github-actions[bot] avatar Nov 22 '22 17:11 github-actions[bot]