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

Proposing packages upgrade #441

Closed
wants to merge 5 commits into from

Conversation

bannik
Copy link
Contributor

@bannik bannik commented Jan 24, 2023

From [CHANGELOG.md]:

Unreleased - 1.3.0

Minor Changes

  • b0ce46d: Add support for wagmi 0.10.x

Patch Changes

This PR will allow the latest WAGMI and Web3modal apps to utilize SafeApps. Those changes were tested locally and in production on: https://defioracles.org/

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2023

🦋 Changeset detected

Latest commit: 0a4bdaf

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

This PR includes changesets to release 2 packages
Name Type
@gnosis.pm/safe-apps-wagmi Major
example-safe-apps-wagmi-cra 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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 24, 2023

CLA Assistant Lite All Contributors have signed the CLA.

Copy link
Member

@mmv08 mmv08 left a comment

Choose a reason for hiding this comment

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

Thank you 🙏 Just needs a few changes before we can merge this. And please sign the CLA agreement using instructions from the comment above

packages/safe-apps-wagmi/CHANGELOG.md Outdated Show resolved Hide resolved
@bannik
Copy link
Contributor Author

bannik commented Jan 24, 2023

I have read the CLA Document and I hereby sign the CLA

},
"peerDependencies": {
"@wagmi/core": ">= 0.3.8 < 0.8.0"
"wagmi": "^0.10.10"
Copy link
Member

Choose a reason for hiding this comment

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

why does it change from @wagmi/core to wagmi? iirc wagmi is a react specific package but the connector doesn't care if it will be used in react or other framework, that's why it used @wagmi/core

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood, reverting to wagmi/core but bumping the version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikhailxyz I did push the change let me know if somethig else is required

Copy link
Member

Choose a reason for hiding this comment

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

I've just added a minor comment about version range for wagmi dep. Going to test the PR now

Copy link
Member

Choose a reason for hiding this comment

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

I cannot get it working in the wagmi example app, I'm getting an error:

Type 'SafeConnector' is not assignable to type 'Connector<any, any, any>'.
  Property 'onAccountsChanged' is protected but type 'SafeConnector' is not a class derived from 'Connector<Provider, Options, Signer>'.

I also had to remove the defaultChains import:
https://wagmi.sh/react/migration-guide#chain-exports

},
"peerDependencies": {
"@wagmi/core": ">= 0.3.8 < 0.8.0"
"@wagmi/core": "^0.8.18"
Copy link
Member

Choose a reason for hiding this comment

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

does it really require ^0.8.18 or it can work with any 0.8.x version? If it can it's better to make the version requirement less restrictive

Copy link
Member

Choose a reason for hiding this comment

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

Could you please also update the example wagmi app to use 0.8.x?

@mmv08
Copy link
Member

mmv08 commented Jan 26, 2023

Hey sir, I've iterated on your PR here: #445. I'm sorry but I have to close this because we need to get the fix released

@mmv08 mmv08 closed this Jan 26, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 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