Releases: mlocati/ip-lib
Releases · mlocati/ip-lib
Release list
v1.22.1
What's Changed
- Update versions of GitHub Actions by @mlocati in #112
- Fix end address of patterns returned by Subnet::asPattern() by @mlocati in #113
- Fix Pattern::toString() for IPv6 patterns with IPv4-mapped prefix by @mlocati in #114
- Don't accept trailing text when parsing IPv6 reverse DNS lookup names by @mlocati in #115
- Don't accept trailing newlines when parsing strings by @mlocati in #116
- Use the IPv4 range type for IPv4-mapped IPv6 ranges by @mlocati in #117
- Minor cleanups by @mlocati in #118
- Increase code coverage by @mlocati in #119
- Call the PHPUnit assertions statically in tests by @mlocati in #120
Full Changelog: 1.22.0...1.22.1
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.1
v1.17.0
New features
- added support for not quad-dotted IPv4 addresses
- added support for IPv4 ranges compact form
Deprecated functions
In order to support parsing the above notations, some new functions have been introduced, which deprecate some of the methods that parse strings.
| Deprecated function | New function |
|---|---|
IPLib\Factory::addressFromString |
IPLib\Factory::parseAddressString |
IPLib\Factory::rangeFromString |
IPLib\Factory::parseRangeString |
IPLib\Factory::rangeFromBoundaries |
IPLib\Factory::getRangeFromBoundaries |
IPLib\Factory::rangesFromBoundaries |
IPLib\Factory::getRangesFromBoundaries |
IPLib\Address\IPv4::fromString |
IPLib\Address\IPv4::parseString |
IPLib\Address\IPv6::fromString |
IPLib\Address\IPv6::parseString |
IPLib\Range\Pattern::fromString |
IPLib\Range\Pattern::parseString |
IPLib\Range\Single::fromString |
IPLib\Range\Single::parseString |
IPLib\Range\Subnet::fromString |
IPLib\Range\Subnet::parseString |
See the phpdoc of the deprecated methods for further details.
Special thanks to @elrido for his productive contributions.
v1.16.0
- New method for ranges:
getSize()(thanks @vstelmakh)