Skip to content

fix: console logger can serialize bigint values #1403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 25, 2024
Merged

fix: console logger can serialize bigint values #1403

merged 3 commits into from
Jan 25, 2024

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"'

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