msgpack5 5.3.2 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +1 -1
- package/README.md +1 -1
- package/dist/msgpack5.js +458 -350
- package/dist/msgpack5.min.js +1 -1
- package/lib/decoder.js +2 -3
- package/lib/encoder.js +22 -1
- package/package.json +2 -2
- package/test/compatibility-mode.js +33 -0
package/.github/workflows/ci.yml
CHANGED
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ options:
|
|
|
108
108
|
|
|
109
109
|
- `forceFloat64`, a boolean to that forces all floats to be encoded as 64-bits floats. Defaults to false.
|
|
110
110
|
- `sortKeys`, a boolean to force a determinate keys order
|
|
111
|
-
- `compatibilityMode`, a boolean that enables "compatibility mode" which doesn't use str 8 format. Defaults to false.
|
|
111
|
+
- `compatibilityMode`, a boolean that enables "compatibility mode" which doesn't use bin format family and str 8 format. Defaults to false.
|
|
112
112
|
- `disableTimestampEncoding`, a boolean that when set disables the encoding of Dates into the [timestamp extension type](https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type). Defaults to false.
|
|
113
113
|
- `preferMap`, a boolean that forces all maps to be decoded to `Map`s rather than plain objects. This ensures that `decode(encode(new Map())) instanceof Map` and that iteration order is preserved. Defaults to false.
|
|
114
114
|
- `protoAction`, a string which can be `error|ignore|remove` that determines what happens when decoding a plain object with a `__proto__` property which would cause prototype poisoning. `error` (default) throws an error, `remove` removes the property, `ignore` (not recommended) allows the property, thereby causing prototype poisoning on the decoded object.
|