Skip to content

Releases: arokettu/torrent-file

4.0.0

30 Dec 02:20
Compare
Choose a tag to compare
  • New internal structure makes library more stable on malformed but valid-ish torrent files
    • In general both Bencode and Torrent File libs aim at save(load(file)) === file compatibility
  • Default constructor parameters on the data structures now accept variadic lists of elements instead of iterables
    • Default constructors are not recommended because their signatures are not considered stable.
      Named constructors should be used instead as explained in the documentation
  • Getters on Node and FileDataProgressEvent were removed
  • getRawData() now returns immutable ArrayAccess&Countable&Traversable objects instead of arrays
    • If you need a real array, use getRawData()->toArray()

3.2.0

30 Dec 02:20
Compare
Choose a tag to compare
  • The package was renamed to arokettu/torrent-file
  • The namespace was changed to Arokettu\Torrent\
    • Aliased all classes in Arokettu\Torrent\* to SandFox\Torrent\* for backward compatibility
    • Added aliases.php so the changes can be indexed by the IDEs
  • Old package sandfoxme/torrent-file is now provided by the new package
  • Deprecated getters on Node and FileDataProgressEvent

2.4.0

30 Dec 02:19
Compare
Choose a tag to compare
  • Alias all classes in SandFox\Torrent\* to Arokettu\Torrent\* in preparation for 4.0
  • Old package sandfoxme/torrent-file is now provided by the new package

1.4.0

30 Dec 02:19
Compare
Choose a tag to compare
  • Alias all classes in SandFox\Torrent\* to Arokettu\Torrent\* in preparation for 4.0
  • Old package sandfoxme/torrent-file is now provided by the new package

3.1.1

14 Dec 00:22
Compare
Choose a tag to compare
  • sandfoxme/bencode -> arokettu/bencode

2.3.1

14 Dec 18:53
Compare
Choose a tag to compare
  • sandfoxme/bencode -> arokettu/bencode

1.3.2

14 Dec 18:53
Compare
Choose a tag to compare
  • sandfoxme/bencode -> arokettu/bencode

3.1.0

02 Dec 09:19
Compare
Choose a tag to compare
  • Added version option
    • Creation of V2 torrents is now allowed (BEP-52)
  • New and changed methods to get info hash:
    • getInfoHash() will return V2 info hash if V2 metadata is present
    • New method getInfoHashV1() to get V1 hash explicitly
    • New method getInfoHashV2() to get V2 hash explicitly
    • New method getInfoHashes() to get all metadata hashes as array
  • Fixed detectExec option not having any effect

2.3.0

02 Dec 09:18
Compare
Choose a tag to compare
  • Added version option
    • Creation of V2 torrents is now allowed (BEP-52)
  • New and changed methods to get info hash:
    • getInfoHash() will return V2 info hash if V2 metadata is present
    • New method getInfoHashV1() to get V1 hash explicitly
    • New method getInfoHashV2() to get V2 hash explicitly
    • New method getInfoHashes() to get all metadata hashes as array
  • Fixed detectExec option not having any effect

3.0.1

01 Dec 08:01
Compare
Choose a tag to compare
  • Node: getters were replaced with readonly properties.
    Getters are kept for now, but they will be deprecated in 3.2.
  • FileDataProgressEvent: getters were returned for smoother upgrade.
    They will be deprecated in 3.2.