msgpack-javascript
msgpack-javascript copied to clipboard
@msgpack/msgpack - MessagePack for JavaScript / msgpack.org[JavaScript/TypeScript/ECMA-262]
This PR adds native support for JavaScript BigInts. I didn't want to cause a breaking change in any way, so I've introduced a few different decoding options that essentially allow...
Hello! I have an issue with reusing Encoder instances. For some reason decoding fails in some cases. ("Extra 224 of 233 byte(s)", "Insufficient data") The bug does not happen when...
It is not a good choice to handle 64bit integers with extension codec. While 64 bit integers are built-in types of msgpack and BigInt is a built-in type of javascript,...
Hi, Thank for your work on this library. I have one question: Do you have some plans to add features to serialize/deserialize using specific types? like the type reflection in...
Scenario: I have a small app where I store a binary blob. The binary blob has metadata associated with it, so, I think: I will store first some sort of...
When using reusable encoders/decoders, decoding fails when using the reused `decode()` function in the custom decoding function. The following example works if `USE_REUSABLE_CODING` is set to `false`, meaning the whole...
```js const msgpack = require('@msgpack/msgpack'); let original = {x: undefined}; let serialized = msgpack.encode(original, {extensionCodec}); let deserialized = msgpack.decode(serialized, {extensionCodec}); console.log(original, deserialized, original.x === deserialized.x); ``` prints "{ x: undefined...
### Background Migrate from `msgpack-lite`, which has support for many types out of box. And I had a look at types at `@msgpack/msgpack/dist/encode.d.ts`, seems everything is also OK out-of-box. ```ts...
**TLDR:** I'd like to suggest a tweak to the extension API. As well as the current process where an extension returns a blob which the encoder copies, I propose allowing...
Currently, `@msgpack/msgpack` does not automatically call `.toJSON()` on objects which define that method. Since JSON and msgpack have significant overlap in semantics and intent, and [toJSON()](https://tc39.es/ecma262/#sec-serializejsonproperty) is a signal from...