v1.0.0
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-cardwill no longer be maintained. Please use the@notifi-network/notifi-reactif 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
- headless mode:
-
Bundle analyzer: We can run
npm run build:analyzeundernotifi-react-example-v2dir to see the bundle state.Now the bundled file of
@notifi-network/notifi-reactis considered as idea (acceptable size) : gzipped size =64KB