Releases: arokettu/torrent-file
Releases · arokettu/torrent-file
3.1.0
- Added
versionoption- 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
detectExecoption not having any effect
2.3.0
- Added
versionoption- 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
detectExecoption not having any effect
3.0.1
3.0.0
(forked from 2.2.0)
- PHP 8.1 is now required
- In
TorrentFile::forPath()options array is removed and replaced with named parameters getCreationDate()now returns an instance ofDateTimeImmutablegetCreationDateAsDateTime()andgetCreationDateAsTimestamp()now trigger silent deprecations
getAnnounceList()now returns an instance ofAnnounceListgetAnnounceListAsArray()andgetAnnounceListAsObject()now trigger silent deprecations
FileDataProgressEvent: getters were replaced with readonly properties
2.2.0
- Fixed possible announce list corruption if deduplication of trackers happened
- Fixed
nullhandling onannounceandcreated by getRawData()now always returns the representation as it would appear in the saved fileTorrentFilenow serializes in cross version compatible manner- Added 2 temporary methods:
getCreationDateAsDateTime()andgetCreationDateAsTimestamp()
to simplify future migration to 3.x.
In 3.xgetCreationDate()will returnDateTimeImmutableinstead ofint - Added 2 temporary methods:
getAnnounceListAsArray()andgetAnnounceListAsObject()
to simplify future migration to 3.x.
In 3.xgetAnnounceList()will returnAnnounceListinstead ofstring[][] - Added support for
nodesfield (BEP-5) - Added support for
httpseedsfield (BEP-17) - Added support for
url-listfield (BEP-19) - Added
setName()andgetName() - Added
isDirectory() sortFilesoption is deprecated and no longer has any effect. Files are always sorted now (BEP-52 compatibility)pieceLengthoption is validated to be pow of 2 and at least 16 KiB (BEP-52 compatibility)md5sumoption is deprecated and no longer has any effect- sha1 sums for all files are now generated (BEP-47)
- The library now detects executable files and sets the attribute (BEP-47)
- Enabled by default. Set the new option
detectExectofalseto disable it
- Enabled by default. Set the new option
- The library now detects symlinks (BEP-47)
- Disabled by default. Set the new option
detectSymlinkstotrueto enable it
- Disabled by default. Set the new option
- The library now allows aligning files to piece boundaries (BEP-47)
- Disabled by default. Set the new option
pieceAligntotrueor minimum bytes value to enable it
- Disabled by default. Set the new option