Snowplow Node.js Tracker v0.4.0
New API Documentation
You can find API documentation for this release available here: https://snowplow.github.io/snowplow-nodejs-tracker/
New Features
Add setNetworkUserId method (#23)
Add setDomainUserId method (#24)
Add support for dvce_sent_tstamp (#27)
Switch from 'request' to 'got' (#61)
Bump snowplow-tracker-core to 0.9.1 (#58)
Add Typescript support (#13)
Bug Fixes
Update flush to not send a request if the buffer is empty (#53)
Under the hood
Update project dependencies (#49)
Switch to RollupJS for building ES Module and CJS versions (#57)
Bump NodeJS to support active LTS releases (#55)
Switch out Mocha for Ava (#59)
Switch to GitHub Actions (#54)
Add Snyk support (#60)
Remove Vagrant image (#56)
Breaking Changes
This release contains two breaking changes.
-
emitter
is no longer available. You should switch fromemitter
togotEmitter
which continues to offer the same functionality but also includes a number of new features. Take a look at the gotEmitter documentation here: https://snowplow.github.io/snowplow-nodejs-tracker/modules/_got_emitter_.html -
If you are using
trackEcommerceTransaction
and passing in an array of items, you should now switch to usingtrackEcommerceTransactionWithItems
. You can find the documentation on this function here: https://snowplow.github.io/snowplow-nodejs-tracker/interfaces/_tracker_.tracker.html#trackecommercetransactionwithitems