Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Conversation

@cemalkilic
Copy link
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
Copy link
Contributor

hf commented Jul 17, 2025

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