mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
`window.screen` and `window.history` are accessor properties on `Window.prototype`, so `Object.getOwnPropertyDescriptor(window, X)?.value` returned undefined in real browsers, causing `start()` to short-circuit and never capture or send any $page-view / $click events. Read the globals directly instead; the jsdom-based regression test pins the accessor-descriptor shape so this can't silently come back. <!-- Make sure you've read the CONTRIBUTING.md guidelines: https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added a new test suite verifying event batching, timing, page-view and click event capture, and client-side navigation behavior using simulated timers and DOM environment. * **Bug Fixes** * Improved event tracker reliability by changing how browser screen and history are read, yielding more consistent detection of screen dimensions and navigation for analytics capture. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| api-keys | ||
| apps | ||
| connected-accounts | ||
| contact-channels | ||
| customers | ||
| data-vault | ||
| email-templates | ||
| internal-api-keys | ||
| notification-categories | ||
| permissions | ||
| project-configs | ||
| projects | ||
| session-replays | ||
| teams | ||
| users | ||
| common.ts | ||
| index.ts | ||
| url-targets.test.ts | ||
| url-targets.ts | ||