Skip to content

Releases: arokettu/bencode

3.0.0

17 Sep 14:18
Compare
Choose a tag to compare

3.0.0 was branched from 2.6.1

  • PHP 8.1 is required
  • Decoding:
    • Removed deprecated options: dictionaryType (use dictType), useGMP (use bigInt: Bencode\BigInt::GMP)
    • Bencode\BigInt and Bencode\Collection are now enums,
      therefore dictType, listType, bigInt params no longer accept bare string values
      (like 'array' or 'object' or 'gmp').
  • Encoding:
    • Traversables no longer become dictionaries by default.
      You need to wrap them with DictType.
    • Stringables no longer become strings by default.
      Use useStringable: true to return old behavior.
    • dump($filename, $data) became dump($data, $filename) for consistency with streams.
  • Decoder and Encoder objects that can be pre-configured and then used with consistent options.
  • bencodeSerialize now declares mixed return type

2.7.0

17 Sep 14:18
Compare
Choose a tag to compare
  • Decoder and Encoder are backported from 3.x
  • DictType backported from 3.x
  • useJsonSerializable backported from 3.x
  • useGMP is marked as deprecated
  • Fixed 'useGMP' in options array causing crash

1.7.0

17 Sep 14:18
Compare
Choose a tag to compare
  • Decoder and Encoder are backported from 3.x
  • DictType backported from 3.x
  • useJsonSerializable backported from 3.x

3.0.0-alpha1

17 Sep 14:17
Compare
Choose a tag to compare
3.0.0-alpha1 Pre-release
Pre-release
Update changelog

2.6.1

10 Sep 19:47
Compare
Choose a tag to compare
  • Fixed possible invalid dictionary encoding when traversable returns non unique keys

1.6.2

10 Sep 19:47
Compare
Choose a tag to compare
  • Fixed possible invalid dictionary encoding when traversable returns non unique keys

2.6.0

14 Feb 15:11
Compare
Choose a tag to compare
  • Expanded big integer support:
    • brick/math
    • Math_BigInteger
    • Custom BigIntType numeric string wrapper
    • Callback and custom class name

1.6.1

14 Feb 15:11
Compare
Choose a tag to compare
  • Fixed invalid BigIntType::assertValidInteger visibility
  • Added missing @internal and strict type markings

1.6.0

14 Feb 15:11
Compare
Choose a tag to compare
  • Expanded big integer support:
    • brick/math
    • Math_BigInteger
    • Custom BigIntType numeric string wrapper
    • Callback and custom class name

2.5.0

03 Feb 02:01
Compare
Choose a tag to compare
  • Added stream API
  • Added GMP support