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.onerrorwhen 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
sendBeaconis 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-ioorg - ☝️ 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)