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

fix: use JSON-based deep clone instead of structuredClone#1084

Merged
hf merged 2 commits into
masterfrom
cemal/fix-replace-structuredclone
Jul 17, 2025
Merged

fix: use JSON-based deep clone instead of structuredClone#1084
hf merged 2 commits into
masterfrom
cemal/fix-replace-structuredclone

Conversation

@cemalkilic

Copy link
Copy Markdown
Contributor

Not all JS runtimes support structuredClone (introduced in #1023). (Example: supabase/supabase-js#1504)

  • As the session data is safe to JSON serialize, replace structuredClone use with JSON de/serialize.
  • Added the helper function to increase the readability (making the intent clear).

@hf

hf commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Fixes: supabase/supabase-js#1504

@hf hf merged commit 9a6edb9 into master Jul 17, 2025
9 checks passed
@hf hf deleted the cemal/fix-replace-structuredclone branch July 17, 2025 11:05
cemalkilic pushed a commit that referenced this pull request Jul 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[2.71.1](v2.71.0...v2.71.1)
(2025-07-17)


### Bug Fixes

* use JSON-based deep clone instead of structuredClone
([#1084](#1084))
([9a6edb9](9a6edb9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mandarini pushed a commit to supabase/supabase-js that referenced this pull request Oct 2, 2025
🤖 I have created a release *beep* *boop*
---


##
[2.71.1](supabase/auth-js@v2.71.0...v2.71.1)
(2025-07-17)


### Bug Fixes

* use JSON-based deep clone instead of structuredClone
([#1084](supabase/auth-js#1084))
([29678c5](supabase/auth-js@29678c5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants