summaryrefslogtreecommitdiff
path: root/serde_v8/src
AgeCommit message (Collapse)Author
2022-03-24chore: drop src/ in bench_util & serde_v8 (#14097)Aaron O'Mullan
To align with conventions used in our other crates
2022-03-23cleanup(serde_v8): streamline magic types (#14076)Aaron O'Mullan
Formalize magic types and how they're "transerialized", also makes U16String deserializable
2022-03-16perf(web): Optimize `TextDecoder` by adding a new `U16String` type (#13923)Andreu Botella
2022-03-11chore: update rusty_v8 to 0.41.0 (#13909)Divy Srivastava
2022-03-07perf(serde_v8): avoid SerializablePkg allocs (#13860)Aaron O'Mullan
For common return types such as String/ZeroCopyBuf/ByteString
2022-03-07cleanup(serde_v8): SerializablePkg verbosity (#13855)Aaron O'Mullan
2022-03-07perf(serde_v8): optimize ByteString deserialization (#13853)Aaron O'Mullan
2022-01-20feat(serde_v8): deserialize ArrayBuffers (#13436)Aaron O'Mullan
Previously we would only deserialize `ArrayBufferView`s as zero-copy bufs This avoids rewrapping `ArrayBuffers` in `ArrayBufferView`s when implementing APIs that take [BufferSource](https://webidl.spec.whatwg.org/#BufferSource) args passed through the op-layer
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-07fix(serde_v8): support #[serde(default)] (#13300)Aaron O'Mullan
2021-12-04chore: upgrade to Rust 1.57.0 (#12968)Bartek Iwańczuk
2021-11-10fix: non ascii buffer response in http server (#12728)Luca Casonato
2021-11-02chore: update to Rust edition 2021 (#12578)Bartek Iwańczuk
2021-10-27chore: update to rusty_v8 0.33.0 (#12564)Luca Casonato
2021-10-26perf(http): encode string bodies in op-layer (#12451)Aaron O'Mullan
Using serde_v8's StringOrBuffer
2021-10-20feat(serde_v8): allow all values to deserialize to unit type (#12504)Aaron O'Mullan
2021-10-20feat(serde_v8): StringOrBuffer (#12503)Aaron O'Mullan
2021-10-20chore: return serde_v8 to main repo (#12500)Aaron O'Mullan
Reduces fragmentation, avoids version drift and facilitates coordinating serde_v8 and op-layer changes
2021-06-09chore: move serde_v8 to separate repo (#10909)Bartek Iwańczuk
Now available at https://github.com/denoland/serde_v8
2021-05-19fix(serde_v8): remove intentional deserialization error on non-utf8 strings ↵Aaron O'Mullan
(#10156) Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-05-11feat(runtime/worker): Structured cloning worker message passing (#9323)Tim Ramlot
This commit upgrade "Worker.postMessage()" implementation to use structured clone algorithm instead of non-spec compliant JSON serialization.
2021-04-30feat(serde_v8): ZeroCopyBuf (#10432)Aaron O'Mullan
Bidirectional zero-copy serialization of buffers between v8 & rust that can be nested in structs/tuples/etc.
2021-04-20chore: update copyright headers (#10243)Yoshiya Hinosawa
2021-04-19refactor(core): move SerializablePkg to serde_v8 (#10231)Aaron O'Mullan
2021-04-18refactor(serde_v8): move magic code to subfolder and minor cleanup (#10230)Aaron O'Mullan
2021-04-18lint(serde_v8): fix "inconsistent struct constructor" (#10227)Aaron O'Mullan
2021-04-04perf(serde_v8): preallocate vector when serializing arrays (#9955)Aaron O'Mullan
2021-04-04perf(serde_v8): drop need for EscapableHandleScope (#9990)Aaron O'Mullan
This is another improvement to serde_v8's serialization code, it drops the need for creating a v8::EscapableHandleScope or "subscope".
2021-04-04perf(serde_v8): introduce Serializable boxable object (#9983)Aaron O'Mullan
2021-04-04perf(serde_v8): drop need for RC in serializer (#9987)Aaron O'Mullan
Which substantially improves the performance of to_v8() by removing Rc's overhead (extra allocs, drops, checks, etc...)
2021-04-02perf(serde_v8/de): implement SeqAccess size_hint (#9975)Aaron O'Mullan
2021-03-31refactor: new optimized op-layer using serde_v8 (#9843)Aaron O'Mullan
- Improves op performance. - Handle op-metadata (errors, promise IDs) explicitly in the op-layer vs per op-encoding (aka: out-of-payload). - Remove shared queue & custom "asyncHandlers", all async values are returned in batches via js_recv_cb. - The op-layer should be thought of as simple function calls with little indirection or translation besides the conceptually straightforward serde_v8 bijections. - Preserve concepts of json/bin/min as semantic groups of their inputs/outputs instead of their op-encoding strategy, preserving these groups will also facilitate partial transitions over to v8 Fast API for the "min" and "bin" groups
2021-03-27chore: add Deno copyright headers to all rust files (#9909)Aaron O'Mullan
2021-03-25Introduce serde_v8 (#9722)Aaron O'Mullan