Releases: blocknative/notify
Local Networks
If a networkId
is passed in that isn't recognized by our backend, then it will be recognized as a local network and no notifications will be displayed. This is a change to previous behavior where a 'sent' notification would always be shown and when on a local network, the sent notification would hang there as there are no 'pending' or 'confirmed' notifications to replace it.
Changelog:
Bitcoin Support
This release adds support for Bitcoin. You can now watch transactions and addresses on the Bitcoin network and display notifications:
import Notify from 'bnc-notify'
const blocknative = Notify({
dappId: '<API_KEY>',
system: 'bitcoin',
networkId: 1 // mainnet - pass in 2 for testnet
})
// notifications for all activity on an address
const { emitter } = notify.account(bitcoinAddress)
// notifications for a particular transaction id
const { emitter } = notify.hash(txid)
The TypeScript types have also been fixed in this release as there was a problem with the typings
field in the package.json
Changelog:
Internal Changes
Update SDK
A small release to update the internal SDK used to communicate with our backend infrastructure to version 2.0.0
.
Changelog:
- Update to version 2.0.0 of sdk (#110)
Unsubscribe
The release adds a new unsubscribe
method to the API, which allows you to unsubscribe from account addresses and transaction hashes:
// unsubscribe from watched address
notify.unsubscribe(address)
// unsubscribe from watched transaction
notify.unsubscribe(hash)
Changelog:
- Add unsubscribe method (#105)
Fix i18n Formatter Bug
Just a small release that fixes a bug where transaction messages were not getting formatted correctly when watching an address. This was due to a dependency making a breaking change to their library. Also included is a small change to make sure that the font-family
is always inherited, making it easy to over-ride.
Changelog:
Update SDK Dependency
In this release, bnc-sdk
has been updated to the latest version to fix a small bug where confirmed transaction notifications wouldn't be received if the browser was refreshed mid transaction.
Also added more data that is sent to the message formatter for transactions, so that they can be used in the notifyMessages
object.
Changelog:
Fix Window Undefined Error
A small release to fix an error in SSR environments.
Changelog:
- Remove module context which was causing window error ssr environment (#84)
Update SDK version
A release that updates the bnc-sdk
version.