ipaddress 1.0.0
To mark the release of ipaddress 1.0.0, some breaking changes were made to improve the interface for data analysis.
Breaking changes
- Removed the
multipleargument fromip_to_hostname()andhostname_to_ip()(#83).ip_to_hostname()andhostname_to_ip()now always return one result per input (stored in a vector).- New
ip_to_hostname_all()andhostname_to_ip_all()return all results per input (stored in a list of vectors).
subnets()now takes vector input and outputs a list of vectors (#83).- Some arguments must now be explicitly passed using the argument name:
- The
strictargument ofip_network(). - The
explodedargument offormat.ip_address(),format.ip_network()andformat.ip_interface(). - The
replaceargument ofsample_ipv4(),sample_ipv6()andsample_network().
- The
New features
- New
country_networks()downloads IP networks registered to specific countries (#87). - Error formatting has been improved using {cli} (#86).
Minor improvements and fixes
- The
is_ipv6argument ofnetmask()andhostmask()defaults toNULL. This option prefers an IPv4 mask, but creates an IPv6 mask as a fallback. - Renamed
vignette("ipaddress-classes")tovignette("ip-data"). - Renamed
vignette("ipaddress-examples")tovignette("recipes"). - Updated the
iana_ipv4dataset. - Tests now use {testthat} 3e.