sui
sui copied to clipboard
Add femver to the SDK
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.
⚠️ 🦋 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.
💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3525660331#artifacts