Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export default defineConfig(({ mode }) => {
],
test: {
environment: "jsdom",
environmentOptions: {
jsdom: {
url: "http://localhost",
},
},
execArgv: ["--no-experimental-webstorage"],
},
};
});
Loading