Skip to content

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

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

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

Conversation

@edlsh
Copy link
Copy Markdown
Contributor

@edlsh edlsh commented Jan 2, 2026

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