- Fix a bug in
isSerialized
(Thanks @maxbronnikov10)
-
Remove dependence on
assert
native module for validation, and use simple error instead (Thanks @eliandoran)Because this changes the error class from
AssertionError
toError
which might break downstream code, this is being tagged as semver-major.
- Fix
Map
support for multiple elements (Thanks @trim21)
- Add support for JS
Map
s as equivalent for unordered PHP objects (Thanks @trim21)
- Workaround an npm publish issue
- Emit declarations for typings, instead of using source
- Add TS Typings - Thanks @vace
- Convert arrays with missing keys to objects in unserialize
- BREAKING Export modules in CJS and CommonJS.
- Add support for parsing protected and private fields
- Fix handling of shallow arrays (Thanks @neoaggelos)
- Require at least Node v8
- Add
isSerialized
method, mirrored from Wordpress source
- Add support for
encoding
parameter for serialize/unserialize
- Fix validation being too strict for pairs
- Simplify internals
- Validate input and Throw syntax errors
- Fix serialization support for big numbers
- Added support for namespaced serializations
- Fixed support for multi-byte strings
- Rewrote most of decode internals to work on Buffers instead of strings (external API still the same)
- Move
flow-bin
to dev dependencies from dependencies (sorry guys!)
- Fix decoding of empty arrays (Thanks @incadawr)
- Fix encoding/decoding of multi-byte utf8 strings
- Fix a bug where objects/Array guessing would fail when values were/not numeric.
- Add support for
__PHP_Incomplete_Class
- Add support for deep serialization (Thanks @cantremember)
- Complete rewrite
- Fixed a lot of bugs/limitations
- Added specs to ensure stability
- Initial release