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(client): use @ungap/structuredClone for structuredClone implementation #19283

Merged

Conversation

zhenmichael
Copy link
Contributor

@zhenmichael zhenmichael commented Jan 18, 2024

update structuredClone implementation to use explicit import
Original PR from main: #19279

…ation (microsoft#19279)

Updating structuredClone usage to explicit import from
@ungap/structuredClone to align with Loop's browser support matrix and
to prevent issues with structuredClone not being available in Jest test
environment.
https://www.npmjs.com/package/@ungap/structured-clone?activeTab=readme

Jest test for app-insights-logger seems to be resulting with a false
pass due to some underlying ESM configuration issues:

https://dev.azure.com/fluidframework/internal/_build/results?buildId=230705&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=ca111d9b-56f7-5b3d-b8f6-661164061440&l=1359
skipping test for app-insights-logger example for now. Follow up item to
resolve test issues:
https://dev.azure.com/fluidframework/internal/_workitems/edit/7001
@zhenmichael zhenmichael requested review from msfluid-bot and a team as code owners January 18, 2024 20:11
@msfluid-bot
Copy link
Collaborator

@fluid-example/bundle-size-tests: +2.35 KB
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 494.74 KB 494.74 KB +4 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 285.18 KB 285.18 KB No change
loader.js 178.28 KB 180.61 KB +2.33 KB
map.js 90.94 KB 90.94 KB +2 Bytes
matrix.js 187.44 KB 187.44 KB +2 Bytes
odspDriver.js 98.5 KB 98.5 KB +2 Bytes
odspPrefetchSnapshot.js 52.02 KB 52.02 KB +2 Bytes
sharedString.js 205.39 KB 205.39 KB +2 Bytes
sharedTree2.js 312.91 KB 312.91 KB No change
Total Size 1.98 MB 1.98 MB +2.35 KB

Baseline commit: 96c7f92

Generated by 🚫 dangerJS against 6480101

@alexvy86 alexvy86 merged commit a9fad91 into microsoft:release/v2int/7.4 Jan 18, 2024
23 checks passed
@zhenmichael zhenmichael deleted the fix-stucturedClone-import branch January 18, 2024 21:00
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.

3 participants