Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: getSDKVersion bug #470

Merged
merged 6 commits into from
Mar 15, 2023
Merged

Fix: getSDKVersion bug #470

merged 6 commits into from
Mar 15, 2023

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Mar 15, 2023

getSDKVersion had the wrong assumption that the package version is always 5 symbols.
It can obviously be any number of symbols.

This caused issues when the Safe UI is using the latest version of the SDK, but a Safe App is using an old version that used to use semver to compare versions (and it throws).

@katspaugh katspaugh requested review from mmv08 and dasanra March 15, 2023 12:27
@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2023

🦋 Changeset detected

Latest commit: ceec775

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@safe-global/safe-apps-sdk Patch
@safe-global/safe-apps-provider Patch
@safe-global/safe-apps-react-sdk Patch
@safe-global/safe-apps-web3modal Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@katspaugh
Copy link
Member Author

Should I do something about the changeset?

@@ -1,6 +1,6 @@
{
"name": "@safe-global/safe-apps-sdk",
"version": "7.10.0",
"version": "7.10.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version should be bumped via changeset

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to create a changeset and push it to the dev branch. The changeset bot will create a PR to bump the version

@katspaugh katspaugh merged commit d759219 into development Mar 15, 2023
@katspaugh katspaugh deleted the slice-of-cake branch March 15, 2023 14:13
@github-actions github-actions bot locked and limited conversation to collaborators Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants