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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
version:
description: Semantic version to dry-run, without a leading v
required: true
default: 0.2.0
default: 0.3.0
type: string
push:
tags:
Expand Down
46 changes: 46 additions & 0 deletions Documentation/ReleaseNotes/0.3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# cidrwalk 0.3.0

`cidrwalk` 0.3.0 adopts `swift-cidr` 0.9 and makes network range endpoints
retain their input prefix context. This release intentionally changes
network-mode JSON boundaries and rejects redundant network pairs.

## Output compatibility

- In network mode, `rangeStart` is the lowest first address and `rangeEnd` is
the highest last address across the inputs. Each boundary retains the prefix
length of the network that supplies it, rather than becoming `/32` or `/128`.
- For `10.0.0.0/24` and `10.0.2.0/25`, the JSON boundaries are
`10.0.0.0/24` and `10.0.2.127/25`. The summarized prefixes remain
`10.0.0.0/23` and `10.0.2.0/25`.
- For `2001:db8::/126` and `2001:db8::8/127`, the JSON boundaries are
`2001:db8::/126` and `2001:db8::9/127`.
- JSON field names are unchanged. The `inputs` array preserves canonical
networks in command-line order. Reversing valid inputs preserves the
boundaries and summarized prefixes.
- Address mode still requires `/32` or `/128` host endpoints. Deterministic
IPv6 text and the envelope summarization algorithm are unchanged.

## Input validation

- Network inputs must use the same address family, be different after
canonicalization, and neither may contain the other.
- Equal, canonically equivalent, and nested network pairs now produce a
validation error on stderr, a nonzero exit status, and no summary output.
Mixed-family inputs continue to be rejected.
- Distinct adjacent networks and host-length networks remain valid.
- The summary covers the entire envelope between the boundaries, including
any gap between the two networks.

## Dependency boundary

- The `swift-cidr` requirement is now `>= 0.9.0` and `< 0.10.0`.
- `Package.resolved` records the reviewed `swift-cidr` 0.9.0 implementation.
- Building from source now requires Swift 6.2 or newer.

## Release integrity

- Signed annotated tags are verified before packaging.
- Native macOS and Linux archives are provided for arm64 and x86-64, with
`LICENSE`, `THIRD_PARTY_NOTICES.txt`, and a shared `SHA256SUMS` file.
- Linux archives statically include the Swift runtime and are checked in
Ubuntu 22.04 containers without a Swift installation.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ plain `swift test` cannot locate `Testing.framework`.
Maintainers can validate a committed release candidate from a clean worktree:

```bash
./scripts/check-release.sh 0.2.0
./scripts/check-release.sh 0.3.0
```

The release workflow's manual dispatch builds and inspects the same four
Expand Down
2 changes: 1 addition & 1 deletion Sources/cidrwalk/cidrwalk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Foundation

@main
struct CIDRWalk: ParsableCommand {
static let version = "0.2.0"
static let version = "0.3.0"

static let configuration = CommandConfiguration(
commandName: "cidrwalk",
Expand Down
2 changes: 1 addition & 1 deletion Tests/cidrwalkTests/cidrwalkTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Testing

@Test("Root command exposes release version")
func rootCommandExposesReleaseVersion() {
#expect(CIDRWalk.version == "0.2.0")
#expect(CIDRWalk.version == "0.3.0")
}

@Test("Root command accepts long and short version flags")
Expand Down
Loading