Skip to content

v3.0.0-rc2

Pre-release
Pre-release
Compare
Choose a tag to compare
@rlanvin rlanvin released this 22 Jul 19:04
· 2 commits to master since this release

Backward Compatibility Breaking Changes

  • Separate "private" from other "reserved" IP addresses.
    This changes the behaviour of IP::isPrivate() and IPBlock::getPrivateBlocks() to be more narrow in scope.
    The previous behaviour has been moved to new methods: IP::isReserved() and IPBlock::getReservedBlocks().
  • IP::isPrivate() renamed to IP::isReserved()
  • IPBlock::getPrivateBlocks() renamed to IPBlock::getReservedBlocks()
  • IP::isPrivate() now only tests if an IP is in a forwardable and non globally reachable IP Block as defined in the IANA special-purpose address registry
  • IPBlock::getPrivateBlocks() now returns only the forwardable and non globally reachable IP Blocks as defined in the IANA special-purpose address registry