Release 2.0.0 - #133
Merged
Merged
Conversation
From codec to platform: a public protocol registry so a third party can extend the decode walk without forking (#87); decode_frame(), the chain walker, ships with the library instead of living in the README and three copy-pasted test files (#88); every ProtocolError carries structured diagnostics -- protocol, field, offset, frame_offset, expected/actual -- instead of only a formatted string (#91); Packet indexes by protocol type and is hashable, and .payload is deleted outright as the breaking change behind this major bump (#90); a canonical, direction-independent flow key for TCP/UDP conversations (#89); and ICMPv4/ICMPv6.embedded_chain decodes an error message's truncated embedded packet with no try/except (#92). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SVCFe7B1U5VeJRoUbx24vb
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Sep 4, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cuts 2.0.0 — Tier 2 of the post-1.3.0 roadmap (#107), now that #104 and all six of its sub-issues (#87, #88, #89, #90, #91, #92) are closed. Mirrors the exact shape of the 1.3.0 release commit (
0f86821):CHANGELOG.md's## [Unreleased]heading becomes## [2.0.0] - 2026-09-04,pyproject.tomlandnetprotocols.__version__bump to2.0.0, anduv.lockis regenerated to match. No functional changes — those already merged in #130, #131, #132 (and earlier this cycle in #125, #126, #127).Why major:#90 deletes
Packet.payloadoutright (it was always exactlybytes(self), a redundant duplicate of__bytes__). Everything else in the tier is additive.What ships in 2.0.0
decode_frame()(Ship decode_frame() — the chain walker belongs in the library #88) — the chain walker ships with the library instead of living in the README and three copy-pasted test files.ProtocolErrordiagnostics (Structured parse diagnostics on ProtocolError #91) —protocol,field,offset,frame_offset,expected/actualon every raise site.Packettype indexing (packet[TCP]),.get(), and hashing;.payloaddeleted (Make Packet pull its weight — type indexing, hashing, and a rename #90, breaking).ICMPv4/ICMPv6.embedded_chain— an error message's truncated embedded packet, decoded with notry/except(A named lax decode mode for deliberately truncated input #92).Verification
uv run --frozen ruff check .anduv run --frozen ruff format --check .are cleanuv run --frozen mypyis clean (strict)uv run --frozen pytestpasses locally (includestest_version.py's__version__/pyproject.tomlagreement check)uv run --frozen python scripts/benchmark.py --check --threshold 15— within threshold (-3.2% vs. baseline)uv buildsucceeds and producesnetprotocols-2.0.0Notes
Merging this does not publish anything by itself. Per
.github/workflows/release.yml, only a pushedv2.0.0tag on the resulting merge commit triggers CI +uv publishto real PyPI (trusted publishing) — that is a separate, deliberate step after this merges, and I'll confirm with you before pushing that tag since a published version can only be yanked, never replaced.🤖 Generated with Claude Code
https://claude.ai/code/session_01SVCFe7B1U5VeJRoUbx24vb
Generated by Claude Code