Releases: rybakit/msgpack.php
Releases · rybakit/msgpack.php
v0.9.2
v0.9.1
v0.9.0
- Moved the
MessagePack\Extclass toMessagePack\Type\Ext - Moved the
MessagePack\TypeTransformer\CanPackinterface toMessagePack\CanPack - Moved the
MessagePack\TypeTransformer\Extensioninterface toMessagePack\Extension - Introduced the
MessagePack\CanBePackedinterface, updated theMessagePack\Type\Map,MessagePack\Type\BinandMessagePack\Type\Extclasses to implement the interface - Removed the obsolete
MessagePack\TypeTransformer\MapTransformerandMessagePack\TypeTransformer\BinTransformertransformers, addedMessagePack\TypeTransformer\TraversableTransformer - Overflowed map integer keys are now always unpacked to strings, even if the
BIGINT_AS_GMPorBIGINT_AS_DECunpacking option is set - Added more examples and improved existing ones
- Added Psalm, a static analysis tool for PHP
v0.8.0
v0.7.2
v0.7.1
v0.7.0
Added
BufferUnpacker::getRemainingCount()BufferUnpacker::hasRemaining()BufferUnpacker::release()UnpackOptions::BIGINT_AS_DEC
Removed
InsufficientDataException::unexpectedLength()IntegerOverflowExceptionUnpackOptions::BIGINT_AS_EXCEPTION
Changed
BufferUnpacker::tryUnpack()no longer releases the read buffer, to release the buffer useBufferUnpacker::release()
Fixed
- Fixed the
BufferUnpackerconstructor to acceptUnpackOptionsinstead ofPackOptions - Fixed checking the buffer size required to unpack
Ext(previously theExt"type" byte wasn't taken into account which could result in a noticeUninitialized string offsetfor extensions with zero-length data) - Forbade non-int/string map keys (previously they were silently cast to int/string which could result in a warning
Illegal offset type)
Misc
- Added a target file for PHP-Fuzzer
- Added
.gitattributes - Switched default PHP version in Docker to 7.4
- Applied minor optimizations
v0.6.1
v0.6.0
Added
- Methods:
BufferUnpacker::extendWith()BufferUnpacker::withBuffer()BufferUnpacker::read()Packer::extendWith()
- Interfaces:
TypeTransformer\Extension
- Classes:
Tests\Perf\Benchmark\PausableBenchmark
Renamed
Type\Binary→Type\BinTypeTransformer\BinaryTransformer→TypeTransformer\BinTransformerTypeTransformer\Packable→TypeTransformer\CanPack
Changed
BufferUnpacker::__construct()now acceptsExtension[] $extensionsas the third argumentPacker::__construct()now acceptsCanPack[] $transformersas the second argument
Removed
- Methods:
BufferUnpacker::__clone()
Cloning a BufferUnpacker object no longer resets the internal buffer, to get the old behavior
use$unpacker = $unpacker->withBuffer('')BufferUnpacker::registerTransformer()Packer::registerTransformer()
- Interfaces:
TypeTransformer\Unpackable