Changelog6 changes
The CLI now understands Svelte (.svelte) and Astro (.astro) components
Added
- The CLI now understands Svelte (`.svelte`) and Astro (`.astro`) components, via two new official plugins — the same feature-usage detection that already covers Vue and plain TypeScript/JavaScript (direct SDK calls, wrapper functions, dynamic event names) now applies to those frameworks too.
Fixed
- SDK: `track()` no longer throws when passed a non-string event name — it's dropped safely like any other invalid name.
- SDK (browser): switching away from a tab without closing it now reliably flushes pending events, instead of only working when the tab was actually closed.
- Astro plugin: corrected a documentation example that showed an event-name syntax the plugin doesn't actually support.
Changed
- CLI: documentation now explains what happens to an event name that's too long or uses an unsupported character, and clarifies how the `EVENTRA_ENDPOINT` environment variable interacts with an endpoint already committed in config.
- Svelte plugin: documentation now notes a couple of template patterns it doesn't support yet (an interpolated event name, and the `{event}` shorthand), matching what the Astro plugin already documents.