Skip to content

fix: console logger can serialize bigint values#1403

Merged
Juice10 merged 3 commits intorrweb-io:masterfrom
PostHog:fix/serialize-big-int
Jan 25, 2024
Merged

fix: console logger can serialize bigint values#1403
Juice10 merged 3 commits intorrweb-io:masterfrom
PostHog:fix/serialize-big-int

Conversation

@pauldambra
Copy link
Contributor

fixes #1209

console log record plugin already has a replacer function added to JSON.stringify call so we can add a handler for BigInt

when serializing BigInt("1")

before "TypeError: Do not know how to serialize a BigInt"

after '"1n"'

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2024

🦋 Changeset detected

Latest commit: f7eaf90

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
rrweb Patch
rrweb-snapshot Patch
rrdom Patch
rrdom-nodejs Patch
rrweb-player Patch
@rrweb/types Patch
@rrweb/web-extension Patch
rrvideo Patch

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

@pauldambra
Copy link
Contributor Author

I don't think the failing tests are introduced in this PR 🙈

@Juice10 Juice10 merged commit af0962c into rrweb-io:master Jan 25, 2024
jaj1014 pushed a commit to pendo-io/rrweb that referenced this pull request Apr 30, 2024
* fix: console logger can serialize bigint values

* teach test jsdom is present

* add a changeset
jxiwang pushed a commit to amplitude/rrweb that referenced this pull request Jul 31, 2024
* fix: console logger can serialize bigint values

* teach test jsdom is present

* add a changeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Do not know how to serialize a BigInt

3 participants