PostHog / posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
https://posthog.com/docs/libraries
MIT License
70 stars 36 forks source link

Improve error handling and make fetch error handling behave like fetch #88

Closed hansottowirtz closed 1 year ago

hansottowirtz commented 1 year ago

Problem

Changes

Release info Sub-libraries affected

Bump level

Libraries affected

Changelog notes

hansottowirtz commented 1 year ago

Thanks! Yes, uncaught errors and timeouts handling in our analytics stack is pretty important for us. We're using Cloudflare Workers and we'll do something like .on('error', (err) => bugsnag.capture(err)).

hansottowirtz commented 1 year ago

Linting now also fixed :)

hansottowirtz commented 1 year ago

Also, I'm not sure if this should be a major or minor update, but you could consider the new errors a breaking change.