Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datastore): Replace structuredClone with custom deep clone function #20465

Conversation

scottn12
Copy link
Contributor

@scottn12 scottn12 commented Apr 4, 2024

Description

This PR removes the use of structuredClone in @fluidframework/datastore, as it was unable to handle ArrayBuffer data types on older browser setups.

@scottn12 scottn12 marked this pull request as ready for review April 4, 2024 17:52
@scottn12 scottn12 requested review from msfluid-bot and a team as code owners April 4, 2024 17:52
@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Apr 4, 2024

@fluid-example/bundle-size-tests: -2.06 KB
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 474.5 KB 472.33 KB -2.17 KB
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 275.18 KB 275.21 KB +22 Bytes
loader.js 169.26 KB 169.29 KB +22 Bytes
map.js 77.15 KB 77.16 KB +11 Bytes
matrix.js 175.83 KB 175.84 KB +11 Bytes
odspDriver.js 90.24 KB 90.26 KB +22 Bytes
odspPrefetchSnapshot.js 41.82 KB 41.83 KB +11 Bytes
sharedString.js 194.76 KB 194.77 KB +11 Bytes
sharedTree.js 306.87 KB 306.87 KB No change
Total Size 1.88 MB 1.88 MB -2.06 KB

Baseline commit: 643a5fd

Generated by 🚫 dangerJS against 3c9da10

@scottn12 scottn12 enabled auto-merge (squash) April 4, 2024 19:43
@scottn12 scottn12 merged commit 061dcc9 into microsoft:release/client/2.0.0-rc.1.0 Apr 4, 2024
22 checks passed
@scottn12 scottn12 deleted the replaceStructuredClone branch April 4, 2024 19:46
scottn12 added a commit to scottn12/FluidFramework that referenced this pull request Apr 4, 2024
…on (microsoft#20465)

This PR removes the use of `structuredClone` in
`@fluidframework/datastore`, as it was unable to handle ArrayBuffer data
types on older browser setups.
scottn12 added a commit to scottn12/FluidFramework that referenced this pull request Apr 4, 2024
…on (microsoft#20465)

This PR removes the use of `structuredClone` in
`@fluidframework/datastore`, as it was unable to handle ArrayBuffer data
types on older browser setups.
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.

None yet

4 participants