Releases: blocknative/notify
🐞 Bug Fix: Account Emitter
There was an bug in the sdk where the account emitter result was being mangled by a boolean issue and this effected Notify.js's feature where returning false in the emitter callback would prevent a notification from displaying.
Changelog:
- 1.6.0-0.0.1: [update] Update bnc-sdk to latest (#190)
Fixes: #189
Binance Smart Chain
This release adds support for Binance Smart Chain with networkId: 56
.
Also included in this release is a change that filters out transaction events with a status
of pending-simulation
as they are not relevant in the context of notifications.
Changelog:
Various Fixes
This release fixes a type error bug encountered when using the 'transaction' method without a 'contractCall' parameter as well as increasing object-path version number to 0.11.5 to mitigate a security vulnerability in 0.11.4.
No changes are required to utilize these fixes except for upgrading your Notify version.
Changelog:
Fix : Unhandled Rejection (TypeError) #180
Fix : Bump object-path from 0.11.4 to 0.11.5 #178
Notification Link
This release adds an extra optional parameter to the wallet customization object so that notifications can easily be turned in to a link. Simply add a link parameter to the object that is returned from an emitter callback with the url you would like the link to direct to:
emitter.on('txConfirmed', transaction => {
return {
link: `https://etherscan.io/tx/${transaction.hash}`
}
})
Also included in this release is a bugfix so that clicks on the "x" of a notification won't trigger the onclick
handler or the new link
parameter.
Changelog:
Various Fixes
This releases fixes a few bugs and type interfaces. Notably the preflight checks for the transaction
function are now fixed.
The dappId
has been made optional, but is still required for transaction notifications that come from the Blocknative server infrastructure. Making the dappId
optional allows for Notify to be used as a simple UI notification library that has no WebSocket connection initiated and only the notification
function will be enabled.
Changelog:
Modify NetworkId and System
This release adds a feature where you can now update the networkId
and the system
parameters without having to re-initialize Notify each time. To do this just call the config
function : notify.config({ networkId: NEW_NETWORK, system: NEW_SYSTEM })
.
Also included in this release is a fix for how the types are exported which was causing errors in TypeScript projects.
Changelog:
Internationalize Time
This release adds changes so that the time and time elapsed that is displayed on transaction notifications will now be internationalized along with transaction messages. The time and time elapsed numbers will be automatically set to the locale of the clientLocale
value that is set automatically when the app loads or when it is set via initialization or via the config
function.
You can also internationalize the time elapsed units by passing in a time
object as part of the notifyMessages
object:
notify.config({
notifyMessages: {
'es': {
time: {
seconds: 'TRANSLATED_SEC', // default 'sec'
minutes: 'TRANSLATED_MIN' // default 'min'
}
}
}
})
Changelog:
Stall Status Fix
Just a small release to fix a bug that affected txStallPending
and txStallConfirmed
status notifications.
Changelog:
- Fix: Connected status check to match new SDK API (#141)
Transaction Error Handling
A small release that fixes incorrect error handling when transactions are initiated via the transaction
function.
Changelog:
- Fix: Transaction Result Error Handling (#138)