Closed pauldambra closed 3 months ago
Latest commit: 49fcecb63d2bc44e0212a16de4721c4e0095a91f
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
I thought i'd only asked for a patch bump to one package, i guess i did that wrong 🙈
🚀 nice! thanks @Juice10
fixes https://github.com/PostHog/posthog-js/issues/1280
when someone calls console.assert the console recorder always captures as if the log was shown in the console
but...
from https://developer.mozilla.org/en-US/docs/Web/API/console/assert_static
this changes the recorder to only capture when the assertion is false, and not to log the first argument, which brings the recorded logs into line with what the browser would do
technically this is a breaking change since folk could be depending on this incorrect behaviour, i chose not to wrap it in config allowing people to opt in to this new behaviour to keep the change simpler (but open to adding that if necessary)
my educated guess is that use of
console.assert
is pretty rare