Skip to content

Releases: blocknative/notify

🐞 Bug Fix: Account Emitter

20 May 02:50
b25c78d
Compare
Choose a tag to compare

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

14 Apr 23:40
061b439
Compare
Choose a tag to compare

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:

  • 1.5.1-0.0.1: [feature] - Filter Simulation Pending events (#183)
  • 1.5.1-0.1.1: [enhancement] - Binance Smart Chain Support (#184)

Various Fixes

16 Dec 22:35
ce7d420
Compare
Choose a tag to compare

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

15 Oct 04:50
06eb30c
Compare
Choose a tag to compare

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:

  • Fix: Don't propagate click on close icon (#173)
  • Feature: Notification link (#174)
  • Fix: Notification icon size (#175)

Various Fixes

28 Sep 05:06
5a30c98
Compare
Choose a tag to compare

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:

  • Fix: Add fallback fonts (#165)
  • Fix: Notification type issues (#166)
  • Enhancement: Pass notification.type to notifications list item className (#167)
  • Fix: Duplicate transaction check function (#168)
  • Enhancement: Optional dappId (#169)
  • Fix: Contract Call Type (#170)

Modify NetworkId and System

07 Aug 01:55
f8f5180
Compare
Choose a tag to compare

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:

  • Enhancement: Allow networkId, system to be modified via config function (#156)
  • Fix: Type exports (#157)
  • Enhancement: Update SDK (#158)

Internationalize Time

30 Jul 03:47
7781629
Compare
Choose a tag to compare

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:

  • Enhancement: Convert to new svelte-typescript template (#146)
  • Enhancement: Internationalize time (#148)
  • Enhancement: Update svelte files (#149)
  • Fix: Update validation (#150)
  • Fix: Exported types(#151)

Stall Status Fix

13 Jul 23:57
e79430a
Compare
Choose a tag to compare

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

05 Jul 23:49
7a27639
Compare
Choose a tag to compare

A small release that fixes incorrect error handling when transactions are initiated via the transaction function.

Changelog:

  • Fix: Transaction Result Error Handling (#138)

xDai Network

22 Jun 02:50
8003a80
Compare
Choose a tag to compare

This release adds the xDai network as a valid network via the id 100.

Changelog: