opencode icon indicating copy to clipboard operation
opencode copied to clipboard

refactor: use structuredClone instead of JSON parse/stringify

Open edlsh opened this issue 2 weeks ago • 0 comments

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.

edlsh avatar Jan 02 '26 04:01 edlsh