Skip to content

v1.0.0

Choose a tag to compare

@eric-notifi eric-notifi released this 17 Jul 05:32
· 166 commits to main since this release

SDK 1.0.0 Release Notes:

• Optimize react context for @notifi-network/notifi-react
• Add React component NotifiCardModal
• Add README.md draft
• Add Cypress test section for CI against main branch (with retries to avoid network issue)

Migration guide

@notifi-network/notifi-react is a major upgrade of @notifi-network/notifi-react-card. @notifi-network/notifi-react provides more advanced features by adopting the new Notifi infrastructure (called fusion). Migrating to @notifi-network/notifi-react will have the following benefits:

  • Optimized bundle size: the package size of has a significant reduction (~20%)
  • Better efficiency and performant: the network request amount is reduced significantly. (~50%)
  • Better UI & UX: The new UI/UX design is more user-friendly and intuitive.
  • Advanced new features: support Notifi Admin Portal V2 new features. Check out Notifi Admin Portal V2 here for more information.

IMPORTANT
@notifi-network/notifi-react-card will no longer be maintained. Please use the @notifi-network/notifi-react if you are new to the Notifi React SDK.
For the existing Dapp which is already utilizing @notifi-network/notifi-react-card, you can easily do the migration by following the migration guide --> Check the doc here

NOTE Utility for developers

The following utils are also available

  • Cypress local test by running below:

    • headless mode: npx lerna --scope=@notifi-network/notifi-react-example-v2 run test
    • interactive mode: npx lerna --scope=@notifi-network/notifi-react-example-v2 run cypress:open

    The test has been executed 100 times already to ensure no corner case bug of both cypress test code & sdk core code. Check out the test report file attached herewith

  • Bundle analyzer: We can run npm run build:analyze under notifi-react-example-v2 dir to see the bundle state.

    Now the bundled file of @notifi-network/notifi-react is considered as idea (acceptable size) : gzipped size = 64KB