Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Fix safe json stringify code - #239

Merged
yannbf merged 1 commit into
storybookjs:nextfrom
hansottowirtz:fix-safe-json-stringify
Feb 1, 2023
Merged

yannbf merged 1 commit into
storybookjs:nextfrom
hansottowirtz:fix-safe-json-stringify

Conversation

@hansottowirtz

@hansottowirtz hansottowirtz commented Dec 31, 2022 •

Copy link
Copy Markdown
Contributor

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

@yannbf yannbf left a comment

Copy link
Copy Markdown
Member

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

github-actions Bot commented Apr 3, 2023

Copy link
Copy Markdown

🚀 PR was released in v0.10.0 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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