Skip to content

Commit ea0ae02

Browse files
anonvtclaude
andauthored
chore: release v2.8.0 (#366)
## Summary - Bumps version to `2.8.0` - Fixes jsdom localStorage test failures on Node.js 25+ ## Changes since v2.7.0 ### Features - **Lazy token loading** — events queue when no API token is set and drain automatically when `window.TS.token` is assigned later (#360) - **Interactive playground** — new `/demo` page for testing the analytics library (#359) ### Fixes - Add `lang` attribute to HTML elements for a11y compliance (#355) - Configure jsdom for Node 25+ localStorage compatibility (`--no-experimental-webstorage`) ### Tests - New queue tests for memory store fallback and error handling (#358) ### Housekeeping - Dependency bumps: biome, react, express, msw, codecov-action, checkout, deploy-pages, upload-pages-artifact, pnpm/action-setup - Added CLAUDE.md (#354) ## Test plan - [x] `pnpm run lint:ci` passes - [x] `pnpm run types:check` passes - [x] `pnpm run test` — 47/47 tests pass (17 test files) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 12d18ab commit ea0ae02

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ We follow the format used by [Open Telemetry](https://github.com/open-telemetry/
88

99
## Unreleased
1010

11+
## Version 2.8.0 (2026-04-15)
12+
13+
### Added
14+
15+
- 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))
16+
- Interactive playground for testing the analytics library ([#359](https://github.com/Topsort/analytics.js/pull/359))
17+
18+
### Fixed
19+
20+
- Add `lang` attribute to HTML elements for a11y compliance ([#355](https://github.com/Topsort/analytics.js/pull/355))
21+
- Configure jsdom for Node.js 25+ localStorage compatibility
22+
23+
### Tests
24+
25+
- New queue tests for memory store fallback and error handling ([#358](https://github.com/Topsort/analytics.js/pull/358))
26+
1127
## Version 2.7.0 (2025-01-23)
1228

1329
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@topsort/analytics.js",
3-
"version": "2.7.0",
3+
"version": "2.8.0",
44
"description": "JS library to automatically report events to Topsort's Analytics",
55
"main": "dist/ts.js",
66
"type": "module",

vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ export default defineConfig(({ mode }) => {
3535
],
3636
test: {
3737
environment: "jsdom",
38+
environmentOptions: {
39+
jsdom: {
40+
url: "http://localhost",
41+
},
42+
},
43+
execArgv: ["--no-experimental-webstorage"],
3844
},
3945
};
4046
});

0 commit comments

Comments
 (0)