Skip to content

refactor: use structuredClone instead of JSON parse/stringify#6623

Closed
edlsh wants to merge 1 commit into
anomalyco:devfrom
edlsh:refactor/use-structuredclone
Closed

refactor: use structuredClone instead of JSON parse/stringify#6623
edlsh wants to merge 1 commit into
anomalyco:devfrom
edlsh:refactor/use-structuredclone

Conversation

@edlsh

@edlsh edlsh commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Replace JSON.parse(JSON.stringify(x)) with structuredClone(x) for deep cloning in publish scripts.

structuredClone is the modern native API for this - cleaner and handles more edge cases correctly.

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.

1 participant