Skip to content

v2.0.1

Latest

Choose a tag to compare

@dr-dimitru dr-dimitru released this 12 Aug 21:47
b02414f

Summary: Hardens tracking-ID validation, error-handler teardown, and transport fallbacks. Adds the agent skill and export/type tests.

Changes

  • 🔧 tracking ID must be 17 alphanumeric chars (A–Z, a–z, 0–9)
  • 🔧 error reports use the same URL scrubbing as pageviews
  • 🔧 cap cached global errors at 256; clear on destroy()
  • 🔧 restore chained window.onerror when trackers are destroyed out of order
  • 🔧 skip reports from destroyed error handlers
  • 🔧 same-origin check for error source URLs (no query-string spoof)
  • 🔧 beacon fallback when sendBeacon is missing or returns false
  • 🔧 CJS/ESM/UMD exports and types aligned
  • 🔧 rollup --forceExit; drop source maps from the npm tarball
  • 🧪 export and TypeScript consumer tests; CI runs build + exports + types
  • 🚛 Moved to ostr-io org
  • ☝️ LICENSE year

✨ New

  • Agent skill: npx skills add ostr-io/ostrio-analytics -g --skill ostrio-analytics
  • analytics comparison doc

📦 Dependencies (Development):

  • tslib (UMD downlevel helpers)