Releases: Topsort/analytics.js
Releases · Topsort/analytics.js
v2.6.0
This release most importantly closes a few security issues in our dependencies. It also corrects the type export.
What's Changed
- chore: switch to new auth token for publishing packages by @jbergstroem in #342
- fix(readme): correct attribute for purchases by @jbergstroem in #341
- chore(deps-dev): bump vite from 5.4.10 to 5.4.21 by @dependabot[bot] in #340
- chore(deps-dev): bump jsdom from 24.0.0 to 27.0.0 by @dependabot[bot] in #338
- chore(deps-dev): bump vitest from 2.0.5 to 2.1.9 by @dependabot[bot] in #318
- chore: bring library up to date by @jbergstroem in #343
- chore: v2.6.0 by @jbergstroem in #344
v2.5.0
This release most importantly opens the door to have custom logic for setting/getting the opaqueUserId.
We also now use the trusted npm publishing flow via OIDC to avoid token theft or other ways of publishing malicious versions of the package.
What's Changed
New features
- feat: support
vendorIdin purchase events by @jbergstroem in #321 - feat: support passing custom getUserId function by @jbergstroem in #310
- chore: support OIDC-based publishing workflow by @jbergstroem in #331
- chore: create v2.5.0 by @jbergstroem in #332
Fixes
- fix: README.md update installation without unpkg script tags by @agustinespildora in #326
- chore(dependabot): remove sk- as reviewer by @sk- in #298
- fix: skip pnpm publish git branch logic by @jbergstroem in #333
- fix: publish directly via npm by @jbergstroem in #334
- fix: correct namespace for url by @jbergstroem in #336
Dependency updates
- chore(deps-dev): bump @biomejs/biome from 1.8.3 to 1.9.2 by @dependabot[bot] in #289
- chore(deps-dev): bump vite from 5.2.11 to 5.4.8 by @dependabot[bot] in #291
- chore(deps-dev): bump vite-plugin-dts from 3.9.1 to 4.2.3 by @dependabot[bot] in #290
- chore: replace environment variables with
package.jsonentries by @jbergstroem in #287 - chore(deps-dev): bump express from 4.19.2 to 4.20.0 by @dependabot[bot] in #293
- chore(deps): codecov/codecov-action 4.6.0 by @dependabot[bot] in #294
- chore(deps-dev): vite 5.4.10 by @dependabot[bot] in #295
- chore(deps-dev): msw 2.6.0 by @dependabot[bot] in #296
- chore(deps-dev): react-router-dom 6.27.0 by @dependabot[bot] in #297
- chore(dependabot): remove sk- as reviewer by @sk- in #298
- chore(deps): codecov/codecov-action 5.0.4 by @dependabot[bot] in #299
- chore(deps-dev): react-router-dom 6.28.0 by @dependabot[bot] in #300
- chore(deps-dev): @types/react 18.3.12 by @dependabot[bot] in #301
- chore(deps-dev): msw 2.6.6 by @dependabot[bot] in #304
- chore(deps): codecov/codecov-action 5.0.7 by @dependabot[bot] in #303
- chore(deps): bump codecov/codecov-action from 5.0.7 to 5.3.1 by @dependabot[bot] in #314
- chore(deps): bump codecov/codecov-action from 5.3.1 to 5.4.0 by @dependabot[bot] in #316
- chore(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2 by @dependabot[bot] in #322
- chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #329
- chore(deps): bump codecov/codecov-action from 5.4.3 to 5.5.0 by @dependabot[bot] in #328
New Contributors
- @agustinespildora made their first contribution in #326
v2.4.0
What's Changed
- chore(deps): bump codecov/codecov-action from 4.1.1 to 4.3.0 by @dependabot in #247
- chore(test): add missing test by @sk- in #250
- chore: disable patch coverage by @jbergstroem in #251
- chore(deps-dev): bump vite and vitest by @sk- in #249
- chore(deps): bump react dependencies by @sk- in #252
- chore(deps): bump eslint to latest v8.x by @sk- in #253
- chore(deps): codecov/codecov-action 4.4.0 by @dependabot in #256
- chore(deps-dev): bump @types/node from 20.8.10 to 20.12.12 by @dependabot in #255
- chore(deps-dev): bump typescript from 5.4.2 to 5.4.5 by @dependabot in #259
- chore(deps): bump pnpm/action-setup from 3 to 4 by @dependabot in #254
- chore(deps-dev): bump jsdom from 22.1.0 to 24.0.0 by @dependabot in #261
- chore(deps-dev): bump @types/express from 4.17.17 to 4.17.21 by @dependabot in #262
- chore(deps): bump msw to v2.3.0 by @sk- in #263
- chore(deps): bump codecov/codecov-action from 4.4.0 to 4.4.1 by @dependabot in #267
- chore(deps-dev): bump @types/react from 18.3.2 to 18.3.3 by @dependabot in #266
- chore(deps-dev): @typescript-eslint/parser 7.11.0 by @dependabot in #264
- chore(deps-dev): bump @types/node from 20.12.12 to 20.13.0 by @dependabot in #265
- chore(docs): add a troubleshooting section by @jbergstroem in #268
- docs(README): update token comment by @jasanchez1 in #270
- chore: replace prettier with biome by @jbergstroem in #269
- chore(deps-dev): bump react-router-dom from 6.23.1 to 6.24.0 by @dependabot in #272
- chore(deps-dev): bump typescript from 5.4.5 to 5.5.2 by @dependabot in #273
- chore(deps-dev): bump @typescript-eslint/parser from 7.11.0 to 7.14.1 by @dependabot in #274
- chore(deps): bump codecov/codecov-action from 4.4.1 to 4.5.0 by @dependabot in #271
- feat: adds the use of topsort sdk for reporting events by @barbmarcio in #275
- chore(deps-dev): bump vitest and @vitest/coverage-v8 by @dependabot in #278
- chore(deps-dev): bump tslib from 2.6.2 to 2.6.3 by @dependabot in #276
- chore(deps-dev): bump msw from 2.3.0 to 2.4.1 by @dependabot in #279
- chore(deps-dev): @typescript-eslint/parser 7.18.0 by @dependabot in #281
- chore(deps-dev): react-router-dom 6.26.1 by @dependabot in #280
- fix: correctly truncate seenEvents by @sk- in #282
- fix: use items in purchase ids by @sk- in #283
- chore(deps): biome 1.8.3 by @jbergstroem in #286
- chore(deps): @topsort/sdk v0.3.1 by @barbmarcio in #285
- chore: release 2.4.0 by @sk- in #284
New Contributors
- @jasanchez1 made their first contribution in #270
Full Changelog: v2.3.1...v2.4.0
v2.3.1
What's Changed
- feat: analytics.js v2.3.1 by @jbergstroem in #244
v2.3.0
What's Changed
- security(deps-dev): Bump express from 4.18.2 to 4.19.2 by @dependabot in #237
- chore(deps): bump codecov/codecov-action from 4.1.0 to 4.1.1 by @dependabot in #240
- security(deps-dev): bump vite from 4.5.2 to 4.5.3 by @dependabot in #241
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.5.0 to 7.0.0 by @dependabot in #239
- feat: add
location.searchto default event path by @jbergstroem in #243
v2.2.1
What's Changed
- build(deps-dev): Bump typescript from 5.2.2 to 5.3.2 by @dependabot in #216
- build(deps-dev): Bump eslint-plugin-vitest from 0.3.1 to 0.3.10 by @dependabot in #215
- build(deps-dev): Bump vite from 4.5.0 to 4.5.1 by @dependabot in #218
- feat(ci): upload coverage report to codecov by @sk- in #219
- build(deps-dev): Bump eslint-config-prettier from 9.0.0 to 9.1.0 by @dependabot in #222
- build(deps-dev): Bump @vitest/coverage-v8 from 0.34.3 to 0.34.6 by @dependabot in #220
- build(deps-dev): Bump vite from 4.5.1 to 4.5.2 by @dependabot in #223
- build(deps): Bump codecov/codecov-action from 4.pre.beta to 4.0.0 by @dependabot in #227
- build(deps-dev): Bump eslint from 8.52.0 to 8.56.0 by @dependabot in #226
- build(deps-dev): Bump @typescript-eslint/parser from 6.9.1 to 6.21.0 by @dependabot in #228
- build(deps): Bump pnpm/action-setup from 2 to 3 by @dependabot in #232
- build(deps): Bump codecov/codecov-action from 4.0.0 to 4.1.0 by @dependabot in #231
- build(deps-dev): Bump react-router-dom from 6.16.0 to 6.22.2 by @dependabot in #230
- build(deps-dev): Bump eslint from 8.56.0 to 8.57.0 by @dependabot in #229
- chore: remove engine from packageJson by @PabloReszczynski in #234
- release: 2.2.1 by @PabloReszczynski in #236
Full Changelog: v2.2.0...v2.2.1
v2.2.0
Added
- support passing
additionalAttribution
Refactor
- Stop publishing to codebuild/s3
- Update dependencies
v2.1.0
Added
- Use vite/esbuild to compile libraries
- Enabled coverage for tests
- Increase test coverage for reporter.ts
- Export ESM version of the library
- Export types
Changed
- Use React 18 features in end to end tests
Refactor
- Replaced
npmwithpnpm - Replaced
jestecosystem withvitest - Replace
nock/isomorphic-fetchwithmsw