Skip to content

The scan no longer stops on unusual files, and the SDK delivers more reliably

15 changes

Fixed14#

  • The SDK waits for events that are already being sent when you call flush(), ends a script within the shutdown limit even when the server fails, and sends what is left when a browser page is closed.
  • The SDK works on Node 18, ignores invalid option values with a warning, copes with changes you make to an object after track(), with a damaged queue saved in the browser and with callbacks that throw.
  • Names and user ids are cut without splitting an emoji and match the CLI catalog, and a number or null as a user id is accepted. TypeScript projects that use require under node16 get the right types.
  • A file with very deep code no longer stops the whole scan. It is listed as skipped with the reason, and the scan goes on.
  • sync and check tell you when files were not read, because a plugin is missing, a file was too large, had a syntax error, or nothing matched. --strict fails, and sync keeps your known events instead of replacing them with a shorter list.
  • Astro pages that are very large are read in part instead of crashing the scan. The warning names the page, and the page is listed as partly read.
  • Angular files with several components are read in full, templates are paired with the component that names them, and large folders of components scan much faster.
  • Svelte 5 {@attach}, {@render} and snippet defaults are read, Vue lang="tsx" scripts work, and errors in plugin files name the line.
  • The CLI follows more ways of calling track(), and a function passed to forEach, map or an event listener counts as an unknown event name in --strict.
  • sync.exclude and sync.include understand more path forms, node_modules is always left out, and symbolic links no longer make a scan run forever.
  • sync, check --fix and watch keep extra keys in eventra.json, and a value of the wrong type is reported instead of silently dropped.
  • Plugin problems are short messages that say what to install, and a project that extends a missing tsconfig.json gets a warning that names the fix.
  • watch reports syntax errors that an edit brings in and rescans files that depend on a changed file.
  • eventra send trims a pasted key, explains why a connection failed, prints errors on stderr and no longer sends the same events twice.

Added1#

  • eventra init also recognises Nuxt, SvelteKit and Angular CLI projects.