Closed pauldambra closed 3 months ago
Latest commit: b985ffa112191c5d1ae5dcfc2f7bce569acc1492
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
ugh, the changeset command is very unhappy with something to do with how I've created this from our fork... I'll recreate
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