Releases: arokettu/bencode
Releases · arokettu/bencode
1.7.1
3.0.0
3.0.0 was branched from 2.6.1
- PHP 8.1 is required
- Decoding:
- Removed deprecated options:
dictionaryType
(usedictType
),useGMP
(usebigInt: Bencode\BigInt::GMP
) Bencode\BigInt
andBencode\Collection
are now enums,
thereforedictType
,listType
,bigInt
params no longer accept bare string values
(like'array'
or'object'
or'gmp'
).
- Removed deprecated options:
- Encoding:
- Traversables no longer become dictionaries by default.
You need to wrap them withDictType
. - Stringables no longer become strings by default.
UseuseStringable: true
to return old behavior. dump($filename, $data)
becamedump($data, $filename)
for consistency with streams.
- Traversables no longer become dictionaries by default.
Decoder
andEncoder
objects that can be pre-configured and then used with consistent options.bencodeSerialize
now declaresmixed
return type
2.7.0
1.7.0
3.0.0-alpha1
Update changelog