Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix safe json stringify code #239

Merged
merged 1 commit into from Feb 1, 2023

Conversation

hansottowirtz
Copy link
Contributor

@hansottowirtz hansottowirtz commented Dec 31, 2022

Replaces code from https://github.com/moll/json-stringify-safe with code from https://github.com/davidmarkclements/fast-safe-stringify. That library also has max depth and breadth options, so I added a maxDepth of 5 and maxEdges of 100.
Fixes #238.

Version

Published prerelease version: v0.10.0-next.6

Changelog

馃殌 Enhancement

馃悰 Bug Fix

馃摑 Documentation

Authors: 6

Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @hansottowirtz thank you so so much for your contribution, and extra thanks for that wonderful reproduction you've given in the issue! Sorry I only had time to look into this today, but it's all great <3

@yannbf yannbf added bug Something isn't working patch Increment the patch version when merged pick This should be cherry-picked to the main branch labels Feb 1, 2023
@yannbf yannbf merged commit 0945c4c into storybookjs:next Feb 1, 2023
yannbf added a commit that referenced this pull request Feb 1, 2023
@yannbf yannbf mentioned this pull request Feb 1, 2023
@github-actions github-actions bot mentioned this pull request Mar 31, 2023
@github-actions github-actions bot mentioned this pull request Apr 3, 2023
@github-actions
Copy link

github-actions bot commented Apr 3, 2023

馃殌 PR was released in v0.10.0 馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linear patch Increment the patch version when merged pick This should be cherry-picked to the main branch prerelease released
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug] When logging certain objects, the browser crashes
2 participants