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
API for structured serialized data #3517
Comments
|
Would be nice to have circular references for something like this as well. |
One possible option would be creating dynamic modules which could be exported and imported w3c/FileAPI#97 (comment). |
@guest271314 this format shouldn't perform any evaluation (all stored data should be completely static) |
The data can be stored as text and only evaluated when necessary. |
this format cannot rely on any form of evaluation; it presents inherent security and performance concerns. |
Is a goal to encrypt the data? Plain text could be converted to and from an |
the goal here is a static format for storing serialized javascript values analogous to JSON but with support for many more types. this api would most likely be similar to https://nodejs.org/api/v8.html#v8_serialization_api but without the class or transferables support. |
|
It feels like the intent here is to expose https://html.spec.whatwg.org/multipage/structured-data.html#serializable-objects as some kind of format. |
@jakearchibald indeed that is what inspired me to open this |
There might be security considerations for platform objects (step 18) that are |
I think this is worth another look. As I just mentioned in the fetch repo, CBOR with tags is well suited to this problem. Its also part of WebAuthn so there must be some CBOR logic already happening in all the major browsers. |
Problem
JSON is being left in the dust as we get more and more stuff for JS, and it probably won't be getting any updates.
Goals
Intuitions
StructuredSerializeForStorage
Prior art
Other considerations
The text was updated successfully, but these errors were encountered: