This release fixes two issues and one request raised by @ekzyis from stacker news: ⚡
- closeModal no longer causes an issue with React strict mode
- connecting/connected subscription methods now fire callbacks immediately if the state already matches when the subscription is created
- new API function to get the current connector's config (e.g. to display the name of the connector currently connected to):
getConnectorConfig()
It also introduces a new fiat balance switcher thanks to @Alan-AC7 💵
Special thanks to @hzrd149 for a huge reduction in package size! 🎁
Also there are some improvements to xss attack prevention by @reneaaron. 💪
There's also an experimental way to configure NWC permissions through the Bitcoin Connect init
function.
Deprecation: isConnected
function has been deprecated and will be removed in v4.
What's Changed
- Updated readme by @Alan-AC7 in #165
- fix: add xss to docs by @reneaaron in #171
- add "repository" field to package.json by @hzrd149 in #166
- Replace embedded png in svg icons by @hzrd149 in #167
- feat: add currency switcher by @rolznz in #164
- Update all Yarn dependencies (2023-12-28) by @depfu in #152
- feat: add webln provider config by @rolznz in #172
- Incorrect copy in mobile pay component #183 is Fixed by @harith-hacky03 in #184
- Update all Yarn dependencies (2024-01-01) by @depfu in #179
- fix: remove modal closing animation by @rolznz in #188
- fix: trigger onConnected callback on subscribe if already connected by @rolznz in #185
- feat: add api function to get connector config by @rolznz in #186
- chore: 3.2.0 by @rolznz in #189
New Contributors
- @depfu made their first contribution in #152
- @harith-hacky03 made their first contribution in #184
Full Changelog: v3.1.0-alpha...v3.2.0-alpha