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

structural clone support #2

Open
jimmywarting opened this issue Feb 5, 2023 · 5 comments
Open

structural clone support #2

jimmywarting opened this issue Feb 5, 2023 · 5 comments

Comments

@jimmywarting
Copy link

Hi, i added yours to this list of test: https://jimmywarting.github.io/3th-party-structured-clone-wpt/
wanted to run benchmark as well. but it's blocked by #1 for some json

@vipertechofficial
Copy link
Member

@jimmywarting Hi, take a look at the V3.0 it should be OK

@jimmywarting
Copy link
Author

it was running Okey now.
but i can leave this open if you want to improve the overall structural clone support for other kind of data. or you can close this if you want to.

@vipertechofficial
Copy link
Member

Yes sure thanks

@vipertechofficial
Copy link
Member

vipertechofficial commented Apr 13, 2023

@jimmywarting I am inclined into putting my mind into work to improve superjsonatural, maybe you may want as you are a fine in-depth expert in testing those serializer them all, willing to guide this project's update with requirement, I would like to beat messagepkr

Edit: I may warn that my idea is potentially useless as https://www.npmjs.com/package/sializer could be somehow what could be the solution I am referring to, could you add "sializer" to your page ?

@jimmywarting
Copy link
Author

sializer have been added.
one thing i like about cbor-x is is that it is based upon the CBOR specification. in fact that is also what chrome uses for some serialization like in indexeddb, webauthn and the payment api.
indexeddb also use the structuralClone algoritm so it wouldn't chock me if it too was based upon cbor.

there have also been talks about exposing structuralClone and/or cbor natively: whatwg/html#3517

if you want to beet other serializer, try to increase the overall score on my testing website and try to support everything structuralClone can support

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

No branches or pull requests

2 participants