Overview
What?
The wagmi library has released version 2 of their library which has several breaking changes. For projects that wish to take advantage of the new features of that major version would be good to have a Superfluid Widget version that supports that version of the library.
How?
Create a new version of the Widget NPM package (0.4.9?) that sets the peer dependency to be less than 2.0.0 for wagmi (to clearly indicate it does not work with later versions.
Create a new major version of the Widget NPM package (v2.0.0, to keep the widget numbering the same as wagmi's versioning?), set the peer dependency to be at least wagmi v2.0.0, and update the Widget logic to properly pull the logic it needs.
Attempting to use the 0.4.8 version of the Superfluid Widget with wagmi >2.0.0 gives an error of
./node_modules/@superfluid-finance/widget/dist/WidgetCore.js:9:0
Module not found: Package path ./connectors/injected is not exported from package /app/node_modules/wagmi (see exports field in /app/node_modules/wagmi/package.json)
(the "injected" connector is no longer at that code location), so it cannot just be used as-is.
Why?
That version was released January 2024, and has had several months to stabilize and have security issues fixed.
Deadline:
??
UI/UX Design:
wagmi is a business-logic library; no need for changes to the UI for this library update.
Acceptance criteria
Links/Resources
Readiness criteria
Overview
What?
The
wagmilibrary has released version 2 of their library which has several breaking changes. For projects that wish to take advantage of the new features of that major version would be good to have a Superfluid Widget version that supports that version of the library.How?
Create a new version of the Widget NPM package (0.4.9?) that sets the peer dependency to be less than 2.0.0 for
wagmi(to clearly indicate it does not work with later versions.Create a new major version of the Widget NPM package (v2.0.0, to keep the widget numbering the same as
wagmi's versioning?), set the peer dependency to be at leastwagmiv2.0.0, and update the Widget logic to properly pull the logic it needs.Attempting to use the 0.4.8 version of the Superfluid Widget with
wagmi>2.0.0 gives an error of(the "injected" connector is no longer at that code location), so it cannot just be used as-is.
Why?
That version was released January 2024, and has had several months to stabilize and have security issues fixed.
Deadline:
??
UI/UX Design:
wagmiis a business-logic library; no need for changes to the UI for this library update.Acceptance criteria
Links/Resources
Readiness criteria