Releases: rybakit/msgpack.php
Releases · rybakit/msgpack.php
v0.9.1
v0.9.0
- Moved the
MessagePack\Ext
class toMessagePack\Type\Ext
- Moved the
MessagePack\TypeTransformer\CanPack
interface toMessagePack\CanPack
- Moved the
MessagePack\TypeTransformer\Extension
interface toMessagePack\Extension
- Introduced the
MessagePack\CanBePacked
interface, updated theMessagePack\Type\Map
,MessagePack\Type\Bin
andMessagePack\Type\Ext
classes to implement the interface - Removed the obsolete
MessagePack\TypeTransformer\MapTransformer
andMessagePack\TypeTransformer\BinTransformer
transformers, addedMessagePack\TypeTransformer\TraversableTransformer
- Overflowed map integer keys are now always unpacked to strings, even if the
BIGINT_AS_GMP
orBIGINT_AS_DEC
unpacking 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()
IntegerOverflowException
UnpackOptions::BIGINT_AS_EXCEPTION
Changed
BufferUnpacker::tryUnpack()
no longer releases the read buffer, to release the buffer useBufferUnpacker::release()
Fixed
- Fixed the
BufferUnpacker
constructor to acceptUnpackOptions
instead 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 offset
for 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\Bin
TypeTransformer\BinaryTransformer
→TypeTransformer\BinTransformer
TypeTransformer\Packable
→TypeTransformer\CanPack
Changed
BufferUnpacker::__construct()
now acceptsExtension[] $extensions
as the third argumentPacker::__construct()
now acceptsCanPack[] $transformers
as 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