refactor!: pre-release debloat pass #180
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
performance
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Grandiras/ATProto.NET#180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the v0.7.0 update cycle (tracking #141). A pre-release debloat pass: the cycle added a lot of protocol surface the owner asked for, and v0.6.0 code got leaner (about −4,100 code lines of old
src/code removed), but three read-only audits found duplication and over-structure inside the new code: about 3,700 code, 2,500 XML-doc and 5,900 test lines removable without losing a feature.Where the bloat is
Cursor.Unknown*union classes run to 20 lines each.Enumerate*helpers, where the issues asked for about 13.Owner decisions
FirehoseVerifier(useSyncVerifier).Enumerate*to the requested ones and make the paginator public.FirehoseClient/JetstreamClientinto the consumers.Passes (one PR each)
Every breaking change gets a
Breaking changesCHANGELOG bullet with a migration note, and an entry indocs/migrating-to-0.7.md. Each PR reports the before/after line counts for its area.All six passes have merged: A #182, B #181, C #183, D #185, E #186 and #189, F #184.
Totals, from main before the pass (
573747c) to now:About a third of the removed XML doc was rationale on internal members, and it became plain
//comments rather than being dropped. The net doc-plus-comment reduction is about 4,700 lines.What went:
FirehoseVerifier,FirehoseClientandJetstreamClient, per the owner's decision;Enumerate*helpers; the paginator is now public instead;Bugs the adversarial reviews caught before merge:
datalink;The performance follow-up is #190.