v9.3.0 - `mergeOptions` added
New Features
- feat: Add mergeOptions config option by @BenLorantfy in #187
You can now pass in mergeOptions as part of your config option to control exactly how react-tracking merges your tracking objects.
Example using isMergeableObject:
const { Track } = useTracking({}, { mergeOptions: { isMergeableObject: obj => !(obj instanceof Error) } });
Thanks @BenLorantfy for the implementation in #187 and @tizmagik for the documentation in #212
What's Changed
- chore: create .nvmrc, add engines field by @glebpigulevsky in #205
- chore: upgrade husky@8 and lint-staged@13 by @chimurai in #206
- test: Enhance e2e test suite by @tizmagik in #208
- chore: Drop node 12, add node 18 by @tizmagik in #210
- chore: Update dependencies by @tizmagik in #209
- docs: Document
mergeOptions
by @tizmagik in #212
New Contributors
- @glebpigulevsky made their first contribution in #205
- @chimurai made their first contribution in #206
- @BenLorantfy made their first contribution in #187
Full Changelog: v9.2.1...v9.3.0