Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"packages/@hertzg/binstruct": "3.4.0",
"packages/@binstruct/arp": "0.3.0",
"packages/@binstruct/arp": "1.0.0",
"packages/@binstruct/au": "0.1.0",
"packages/@binstruct/bfd": "0.1.0",
"packages/@binstruct/bmp": "1.0.0",
"packages/@binstruct/cli": "0.3.0",
"packages/@binstruct/cli": "0.4.0",
"packages/@binstruct/dos-mz": "0.1.0",
"packages/@binstruct/esp": "0.1.0",
"packages/@binstruct/ethernet": "1.1.0",
"packages/@binstruct/icmp": "1.1.0",
"packages/@binstruct/icmpv6": "0.1.0",
"packages/@binstruct/ico": "0.1.0",
"packages/@binstruct/igmp": "0.1.0",
"packages/@binstruct/inet": "1.0.0",
"packages/@binstruct/ipv4": "0.3.0",
"packages/@binstruct/ipv6": "0.1.0",
"packages/@binstruct/igmp": "1.0.0",
"packages/@binstruct/inet": "2.0.0",
"packages/@binstruct/ipv4": "1.0.0",
"packages/@binstruct/ipv6": "1.0.0",
"packages/@binstruct/mbr": "0.1.0",
"packages/@binstruct/mp3": "0.1.0",
"packages/@binstruct/ntp": "0.1.0",
"packages/@binstruct/pcap": "0.4.0",
"packages/@binstruct/png": "0.4.0",
"packages/@binstruct/pcap": "1.0.0",
"packages/@binstruct/png": "0.5.0",
"packages/@binstruct/pppoe": "0.1.0",
"packages/@binstruct/rtp": "0.1.0",
"packages/@binstruct/sll": "0.1.0",
Expand All @@ -38,8 +38,8 @@
"packages/@hertzg/mymagti-api": "0.1.2",
"packages/@hertzg/bx": "3.0.3",
"packages/@hertzg/routeros-api": "0.1.2",
"packages/@hertzg/tplink-api": "1.3.0",
"packages/@hertzg/ip": "4.2.0",
"packages/@hertzg/tplink-api": "1.4.0",
"packages/@hertzg/ip": "5.0.0",
"packages/@hertzg/mac": "0.2.0",
"packages/@hertzg/crc": "0.3.1",
"packages/@hertzg/xhb": "4.0.0"
Expand Down
20 changes: 10 additions & 10 deletions import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@
"@std/path": "jsr:@std/path@^1.1.4",
"@hertzg/binstruct": "jsr:@hertzg/binstruct@^3.4.0",
"@hertzg/bx": "jsr:@hertzg/bx@^3.0.3",
"@hertzg/ip": "jsr:@hertzg/ip@^4.2.0",
"@hertzg/ip": "jsr:@hertzg/ip@^5.0.0",
"@hertzg/mac": "jsr:@hertzg/mac@^0.2.0",
"@hertzg/crc": "jsr:@hertzg/crc@^0.3.1",
"@hertzg/mymagti-api": "jsr:@hertzg/mymagti-api@^0.1.2",
"@hertzg/routeros-api": "jsr:@hertzg/routeros-api@^0.1.2",
"@hertzg/tplink-api": "jsr:@hertzg/tplink-api@^1.3.0",
"@hertzg/tplink-api": "jsr:@hertzg/tplink-api@^1.4.0",
"@hertzg/wg-keys": "jsr:@hertzg/wg-keys@^2.2.0",
"@hertzg/wg-ini": "jsr:@hertzg/wg-ini@^0.2.4",
"@hertzg/wg-conf": "jsr:@hertzg/wg-conf@^0.2.3",
"@binstruct/arp": "jsr:@binstruct/arp@^0.3.0",
"@binstruct/arp": "jsr:@binstruct/arp@^1.0.0",
"@binstruct/au": "jsr:@binstruct/au@^0.1.0",
"@binstruct/bfd": "jsr:@binstruct/bfd@^0.1.0",
"@binstruct/bmp": "jsr:@binstruct/bmp@^1.0.0",
"@binstruct/cli": "jsr:@binstruct/cli@^0.3.0",
"@binstruct/cli": "jsr:@binstruct/cli@^0.4.0",
"@binstruct/dos-mz": "jsr:@binstruct/dos-mz@^0.1.0",
"@binstruct/esp": "jsr:@binstruct/esp@^0.1.0",
"@binstruct/ethernet": "jsr:@binstruct/ethernet@^1.1.0",
"@binstruct/icmp": "jsr:@binstruct/icmp@^1.1.0",
"@binstruct/icmpv6": "jsr:@binstruct/icmpv6@^0.1.0",
"@binstruct/ico": "jsr:@binstruct/ico@^0.1.0",
"@binstruct/igmp": "jsr:@binstruct/igmp@^0.1.0",
"@binstruct/inet": "jsr:@binstruct/inet@^1.0.0",
"@binstruct/ipv4": "jsr:@binstruct/ipv4@^0.3.0",
"@binstruct/ipv6": "jsr:@binstruct/ipv6@^0.1.0",
"@binstruct/igmp": "jsr:@binstruct/igmp@^1.0.0",
"@binstruct/inet": "jsr:@binstruct/inet@^2.0.0",
"@binstruct/ipv4": "jsr:@binstruct/ipv4@^1.0.0",
"@binstruct/ipv6": "jsr:@binstruct/ipv6@^1.0.0",
"@binstruct/mbr": "jsr:@binstruct/mbr@^0.1.0",
"@binstruct/mp3": "jsr:@binstruct/mp3@^0.1.0",
"@binstruct/ntp": "jsr:@binstruct/ntp@^0.1.0",
"@binstruct/png": "jsr:@binstruct/png@^0.4.0",
"@binstruct/png": "jsr:@binstruct/png@^0.5.0",
"@binstruct/rtp": "jsr:@binstruct/rtp@^0.1.0",
"@binstruct/sll": "jsr:@binstruct/sll@^0.1.0",
"@binstruct/sqlite": "jsr:@binstruct/sqlite@^0.1.0",
Expand All @@ -58,7 +58,7 @@
"@binstruct/vlan": "jsr:@binstruct/vlan@^0.1.0",
"@binstruct/vxlan": "jsr:@binstruct/vxlan@^0.1.0",
"@binstruct/wav": "jsr:@binstruct/wav@^1.0.0",
"@binstruct/pcap": "jsr:@binstruct/pcap@^0.4.0",
"@binstruct/pcap": "jsr:@binstruct/pcap@^1.0.0",
"@binstruct/pppoe": "jsr:@binstruct/pppoe@^0.1.0",
"json5": "npm:json5@^2.2.3",
"fflate": "npm:fflate@^0.8.2",
Expand Down
13 changes: 13 additions & 0 deletions packages/@binstruct/arp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [1.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/arp-v0.3.0...@binstruct/arp-v1.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** `parseAddress*` return `{ address, zoneId? }` and `parseCidr*` return `Cidr & { zoneId? }` instead of the bare value. `parseAddress` and `parseCidr` take a second `options` argument, so `.map(parseCidr)` becomes `.map((s) => parseCidr(s))`. `expandIpv6` and `compressIpv6` are removed. `parseAddressv6("fe80::1%")`, `"fe80::1%eth0%1"`, `parseCidrv6("fe80::/64%eth0")` and `"fe80::%/64"` now throw; `parseAddressv4("192.168.1.1%eth0")` and `parseCidr("10.0.0.0/255.0.0.0")` now parse.
* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.

### Features

* **@hertzg/ip:** layered notation parser with zone IDs and mask dialect ([#295](https://github.com/hertzg/jsr-monorepo/issues/295)) ([dafadec](https://github.com/hertzg/jsr-monorepo/commit/dafadecf397fb527a45a5af22021048b76353e66))
* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))

## [0.3.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/arp-v0.2.0...@binstruct/arp-v0.3.0) (2026-05-01)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/arp/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/arp",
"version": "0.3.0",
"version": "1.0.0",
"exports": {
".": "./mod.ts"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/@binstruct/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [0.4.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/cli-v0.3.0...@binstruct/cli-v0.4.0) (2026-08-17)


### Features

* **@binstruct/pcap, @binstruct/png, @binstruct/cli:** make every coder factory callable with no arguments ([#260](https://github.com/hertzg/jsr-monorepo/issues/260)) ([f9f0322](https://github.com/hertzg/jsr-monorepo/commit/f9f0322f66d49f2314ac23cf56344f44e7c8595d))


### Bug Fixes

* **@binstruct/cli:** write all of stdout instead of one buffered write ([#282](https://github.com/hertzg/jsr-monorepo/issues/282)) ([bfaedba](https://github.com/hertzg/jsr-monorepo/commit/bfaedbae4921d083a6951845b10ed9fd175bde01)), closes [#281](https://github.com/hertzg/jsr-monorepo/issues/281)

## [0.3.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/cli-v0.2.0...@binstruct/cli-v0.3.0) (2026-08-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/cli/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/cli",
"version": "0.3.0",
"version": "0.4.0",
"exports": {
".": "./mod.ts",
"./cli": "./cli.ts"
Expand Down
11 changes: 11 additions & 0 deletions packages/@binstruct/igmp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [1.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/igmp-v0.1.0...@binstruct/igmp-v1.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.

### Features

* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))

## [0.1.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/igmp-v0.0.1...@binstruct/igmp-v0.1.0) (2026-08-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/igmp/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/igmp",
"version": "0.1.0",
"version": "1.0.0",
"exports": {
".": "./mod.ts"
},
Expand Down
13 changes: 13 additions & 0 deletions packages/@binstruct/inet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [2.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/inet-v1.0.0...@binstruct/inet-v2.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** `parseAddress*` return `{ address, zoneId? }` and `parseCidr*` return `Cidr & { zoneId? }` instead of the bare value. `parseAddress` and `parseCidr` take a second `options` argument, so `.map(parseCidr)` becomes `.map((s) => parseCidr(s))`. `expandIpv6` and `compressIpv6` are removed. `parseAddressv6("fe80::1%")`, `"fe80::1%eth0%1"`, `parseCidrv6("fe80::/64%eth0")` and `"fe80::%/64"` now throw; `parseAddressv4("192.168.1.1%eth0")` and `parseCidr("10.0.0.0/255.0.0.0")` now parse.
* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.

### Features

* **@hertzg/ip:** layered notation parser with zone IDs and mask dialect ([#295](https://github.com/hertzg/jsr-monorepo/issues/295)) ([dafadec](https://github.com/hertzg/jsr-monorepo/commit/dafadecf397fb527a45a5af22021048b76353e66))
* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))

## [1.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/inet-v0.3.0...@binstruct/inet-v1.0.0) (2026-08-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/inet/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/inet",
"version": "1.0.0",
"version": "2.0.0",
"exports": {
".": "./mod.ts"
},
Expand Down
13 changes: 13 additions & 0 deletions packages/@binstruct/ipv4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [1.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/ipv4-v0.3.0...@binstruct/ipv4-v1.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** `parseAddress*` return `{ address, zoneId? }` and `parseCidr*` return `Cidr & { zoneId? }` instead of the bare value. `parseAddress` and `parseCidr` take a second `options` argument, so `.map(parseCidr)` becomes `.map((s) => parseCidr(s))`. `expandIpv6` and `compressIpv6` are removed. `parseAddressv6("fe80::1%")`, `"fe80::1%eth0%1"`, `parseCidrv6("fe80::/64%eth0")` and `"fe80::%/64"` now throw; `parseAddressv4("192.168.1.1%eth0")` and `parseCidr("10.0.0.0/255.0.0.0")` now parse.
* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.

### Features

* **@hertzg/ip:** layered notation parser with zone IDs and mask dialect ([#295](https://github.com/hertzg/jsr-monorepo/issues/295)) ([dafadec](https://github.com/hertzg/jsr-monorepo/commit/dafadecf397fb527a45a5af22021048b76353e66))
* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))

## [0.3.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/ipv4-v0.2.0...@binstruct/ipv4-v0.3.0) (2026-05-01)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/ipv4/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/ipv4",
"version": "0.3.0",
"version": "1.0.0",
"exports": {
".": "./mod.ts"
},
Expand Down
13 changes: 13 additions & 0 deletions packages/@binstruct/ipv6/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [1.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/ipv6-v0.1.0...@binstruct/ipv6-v1.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** `parseAddress*` return `{ address, zoneId? }` and `parseCidr*` return `Cidr & { zoneId? }` instead of the bare value. `parseAddress` and `parseCidr` take a second `options` argument, so `.map(parseCidr)` becomes `.map((s) => parseCidr(s))`. `expandIpv6` and `compressIpv6` are removed. `parseAddressv6("fe80::1%")`, `"fe80::1%eth0%1"`, `parseCidrv6("fe80::/64%eth0")` and `"fe80::%/64"` now throw; `parseAddressv4("192.168.1.1%eth0")` and `parseCidr("10.0.0.0/255.0.0.0")` now parse.
* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.

### Features

* **@hertzg/ip:** layered notation parser with zone IDs and mask dialect ([#295](https://github.com/hertzg/jsr-monorepo/issues/295)) ([dafadec](https://github.com/hertzg/jsr-monorepo/commit/dafadecf397fb527a45a5af22021048b76353e66))
* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))

## [0.1.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/ipv6-v0.0.1...@binstruct/ipv6-v0.1.0) (2026-08-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/ipv6/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/ipv6",
"version": "0.1.0",
"version": "1.0.0",
"exports": {
".": "./mod.ts"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/@binstruct/pcap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## [1.0.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/pcap-v0.4.0...@binstruct/pcap-v1.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** `parseAddress*` return `{ address, zoneId? }` and `parseCidr*` return `Cidr & { zoneId? }` instead of the bare value. `parseAddress` and `parseCidr` take a second `options` argument, so `.map(parseCidr)` becomes `.map((s) => parseCidr(s))`. `expandIpv6` and `compressIpv6` are removed. `parseAddressv6("fe80::1%")`, `"fe80::1%eth0%1"`, `parseCidrv6("fe80::/64%eth0")` and `"fe80::%/64"` now throw; `parseAddressv4("192.168.1.1%eth0")` and `parseCidr("10.0.0.0/255.0.0.0")` now parse.
* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.

### Features

* **@binstruct/pcap, @binstruct/png, @binstruct/cli:** make every coder factory callable with no arguments ([#260](https://github.com/hertzg/jsr-monorepo/issues/260)) ([f9f0322](https://github.com/hertzg/jsr-monorepo/commit/f9f0322f66d49f2314ac23cf56344f44e7c8595d))
* **@binstruct/pcap:** add zero-argument pcapFileLe and pcapFileBe ([#285](https://github.com/hertzg/jsr-monorepo/issues/285)) ([146d19a](https://github.com/hertzg/jsr-monorepo/commit/146d19ac4e293706035c9785d9ea7077ee40693e))
* **@hertzg/ip:** layered notation parser with zone IDs and mask dialect ([#295](https://github.com/hertzg/jsr-monorepo/issues/295)) ([dafadec](https://github.com/hertzg/jsr-monorepo/commit/dafadecf397fb527a45a5af22021048b76353e66))
* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))

## [0.4.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/pcap-v0.3.0...@binstruct/pcap-v0.4.0) (2026-08-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/pcap/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/pcap",
"version": "0.4.0",
"version": "1.0.0",
"exports": {
".": "./mod.ts"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/@binstruct/png/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.5.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/png-v0.4.0...@binstruct/png-v0.5.0) (2026-08-17)


### Features

* **@binstruct/pcap, @binstruct/png, @binstruct/cli:** make every coder factory callable with no arguments ([#260](https://github.com/hertzg/jsr-monorepo/issues/260)) ([f9f0322](https://github.com/hertzg/jsr-monorepo/commit/f9f0322f66d49f2314ac23cf56344f44e7c8595d))

## [0.4.0](https://github.com/hertzg/jsr-monorepo/compare/@binstruct/png-v0.3.3...@binstruct/png-v0.4.0) (2026-04-03)


Expand Down
2 changes: 1 addition & 1 deletion packages/@binstruct/png/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binstruct/png",
"version": "0.4.0",
"version": "0.5.0",
"exports": {
".": "./mod.ts"
},
Expand Down
28 changes: 28 additions & 0 deletions packages/@hertzg/ip/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## [5.0.0](https://github.com/hertzg/jsr-monorepo/compare/@hertzg/ip-v4.2.0...@hertzg/ip-v5.0.0) (2026-08-17)


### ⚠ BREAKING CHANGES

* **@hertzg/ip:** `parseAddress*` return `{ address, zoneId? }` and `parseCidr*` return `Cidr & { zoneId? }` instead of the bare value. `parseAddress` and `parseCidr` take a second `options` argument, so `.map(parseCidr)` becomes `.map((s) => parseCidr(s))`. `expandIpv6` and `compressIpv6` are removed. `parseAddressv6("fe80::1%")`, `"fe80::1%eth0%1"`, `parseCidrv6("fe80::/64%eth0")` and `"fe80::%/64"` now throw; `parseAddressv4("192.168.1.1%eth0")` and `parseCidr("10.0.0.0/255.0.0.0")` now parse.
* **@hertzg/ip:** `Cidrv4` and `Cidrv6` are unions; `.prefixLength` is no longer a property of every block, read it with `cidrv4PrefixLength(cidr)` or narrow with `"prefixLength" in cidr`. The universal `cidrContainsCidr`, `cidrOverlaps`, `cidrIntersect` and `cidrSubtract` are overloaded per version instead of generic over one CIDR type.
* **@hertzg/ip:** every Ip-named export is renamed to its Address counterpart, the ./ip, ./ipv4, ./ipv6 and ./4to6 entrypoints are replaced by ./address, ./addressv4, ./addressv6, and the root parse / stringify / AddressOrCidr are removed.
* **@hertzg/ip:** parseIpv4, parseIpv6, parseCidrv4 and parseCidrv6 now reject input the RFC grammar does not allow. Sixteen IPv6 forms that previously parsed now throw TypeError, including "1:2:3:4:5:6:7:8::", "0x12::1" and "::1 ". parseIpv6("::-1") returned -1n and now throws. Prefix lengths no longer accept leading zeros. isValidIpv4 and isValidIpv6 return false for all of these.

### Features

* **@hertzg/ip:** add cidrContains ([#269](https://github.com/hertzg/jsr-monorepo/issues/269)) ([31a3403](https://github.com/hertzg/jsr-monorepo/commit/31a34039b556910d07516676d912c30686a1b5cf)), closes [#263](https://github.com/hertzg/jsr-monorepo/issues/263)
* **@hertzg/ip:** add cidrv4MaskToPrefixLength and cidrv6MaskToPrefixLength ([98df515](https://github.com/hertzg/jsr-monorepo/commit/98df5151a4cd99bbe293f1325db8ebde6ba4e21a)), closes [#264](https://github.com/hertzg/jsr-monorepo/issues/264)
* **@hertzg/ip:** add compareIp and compareCidr ([#273](https://github.com/hertzg/jsr-monorepo/issues/273)) ([1d0c6f6](https://github.com/hertzg/jsr-monorepo/commit/1d0c6f6fc336ee3b24a2ae29c9227f8d61c9212e)), closes [#266](https://github.com/hertzg/jsr-monorepo/issues/266)
* **@hertzg/ip:** add IPv4 usable-address helpers and universal block bounds ([4d9861f](https://github.com/hertzg/jsr-monorepo/commit/4d9861fbbc70e99163ecd9e4f0ad849e613b5e72)), closes [#268](https://github.com/hertzg/jsr-monorepo/issues/268)
* **@hertzg/ip:** add ipVersion and cidrVersion ([#274](https://github.com/hertzg/jsr-monorepo/issues/274)) ([c2ff649](https://github.com/hertzg/jsr-monorepo/commit/c2ff64907aa3299f1277559ca1f073dbcab8b9a2))
* **@hertzg/ip:** add reverse DNS pointer names (in-addr.arpa / ip6.arpa) ([#287](https://github.com/hertzg/jsr-monorepo/issues/287)) ([5fd4362](https://github.com/hertzg/jsr-monorepo/commit/5fd4362df99e20cfba15b617871302e9aade5a5c)), closes [#277](https://github.com/hertzg/jsr-monorepo/issues/277)
* **@hertzg/ip:** layered notation parser with zone IDs and mask dialect ([#295](https://github.com/hertzg/jsr-monorepo/issues/295)) ([dafadec](https://github.com/hertzg/jsr-monorepo/commit/dafadecf397fb527a45a5af22021048b76353e66))
* **@hertzg/ip:** precompute IPv6 mask and size tables ([#279](https://github.com/hertzg/jsr-monorepo/issues/279)) ([0aa06e5](https://github.com/hertzg/jsr-monorepo/commit/0aa06e516555b3d8c3c0a89060e53a311a60206a))
* **@hertzg/ip:** rename Ip-named values to Address ([#293](https://github.com/hertzg/jsr-monorepo/issues/293)) ([5833a75](https://github.com/hertzg/jsr-monorepo/commit/5833a756410408e5ca867d183d2e5bc4ea823885))
* **@hertzg/ip:** store CIDR masks as a second dialect of Cidr ([#294](https://github.com/hertzg/jsr-monorepo/issues/294)) ([3ac4636](https://github.com/hertzg/jsr-monorepo/commit/3ac4636b88443732d4b745128f53422d359b75f4))


### Bug Fixes

* **@hertzg/ip:** reject addresses outside the RFC 4291 grammar; single-pass IPv6 scan ([#288](https://github.com/hertzg/jsr-monorepo/issues/288)) ([12003fc](https://github.com/hertzg/jsr-monorepo/commit/12003fc158f3cc8440de29d964c51c4f4598c9d3))

## [4.2.0](https://github.com/hertzg/jsr-monorepo/compare/@hertzg/ip-v4.1.1...@hertzg/ip-v4.2.0) (2026-08-13)


Expand Down
Loading
Loading