diff --git a/CHANGELOG.md b/CHANGELOG.md index 1199d6a..1fd1d30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,22 @@ We follow the format used by [Open Telemetry](https://github.com/open-telemetry/ ## Unreleased +## Version 2.8.0 (2026-04-15) + +### Added + +- Lazy token loading: events queue when no API token is set and drain automatically when `window.TS.token` is assigned later ([#360](https://github.com/Topsort/analytics.js/pull/360)) +- Interactive playground for testing the analytics library ([#359](https://github.com/Topsort/analytics.js/pull/359)) + +### Fixed + +- Add `lang` attribute to HTML elements for a11y compliance ([#355](https://github.com/Topsort/analytics.js/pull/355)) +- Configure jsdom for Node.js 25+ localStorage compatibility + +### Tests + +- New queue tests for memory store fallback and error handling ([#358](https://github.com/Topsort/analytics.js/pull/358)) + ## Version 2.7.0 (2025-01-23) ### Added diff --git a/package.json b/package.json index 93532a7..6d6928d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@topsort/analytics.js", - "version": "2.7.0", + "version": "2.8.0", "description": "JS library to automatically report events to Topsort's Analytics", "main": "dist/ts.js", "type": "module", diff --git a/vite.config.ts b/vite.config.ts index 40d63a1..fd5989a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,6 +35,12 @@ export default defineConfig(({ mode }) => { ], test: { environment: "jsdom", + environmentOptions: { + jsdom: { + url: "http://localhost", + }, + }, + execArgv: ["--no-experimental-webstorage"], }, }; });