Skip to content

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>
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.

2 participants