Skip to content

feat: 3.0, drop the Eraser names and rewrite the inherited code - #307

Open
JustMaris wants to merge 123 commits into
mainfrom
feat/3-0
Open

JustMaris wants to merge 123 commits into
mainfrom
feat/3-0

Conversation

@JustMaris

@JustMaris JustMaris commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

The 3.0 release. Merging it makes release-please open a 3.0.0 release PR (the commit carries Release-As: 3.0.0); that release PR is a separate manual merge and stays unmerged until the public promotion resumes (December).

1. The pre-rename Eraser names are gone

  • the eraser alias binary, its archives, cask line and Homebrew caveat
  • ERASER_* environment fallbacks (config.Getenv reads DELISTD_* only) and the Dockerfile's legacy defaults
  • the ghcr.io/drumandbytes/eraser image tag (the release workflow publishes delistd only)
  • the rename notices (CLI line, dashboard card, /renamed/dismiss) and the automatic pre-rename schedule migration
  • the 2.0 "What's new" card, its CLI line, and docs/upgrading-to-2.0.md / docs/2.0-plan.md
  • renamed with fallbacks so nothing is orphaned: data dir ~/.delistd (an existing ~/.eraser is still used, internal/datadir), the Docker volume delistd-data, the launchd label / systemd unit delistd-auto (schedule install|remove clean up the old job), the default archive folder Delistd, the session cookies, and the password-encryption key (old values still decrypt and are re-encrypted on save)
  • docs/upgrading-to-3.0.md covers what to change; "Formerly Eraser" is the only remaining mention outside it and stability.md

2. The inherited upstream code is being rewritten

Measured with git blame against the fork's only upstream commit, 3.8% of the tracked lines were still its originals before the final pass and about 2.7% are after it (Go code 4.3% before, under 3% of lines now). Of the Go lines that remain, only about 80 are more than a signature, a struct field or a one-line idiom (0.35% of the Go code); they are API: config and YAML field names, exported function signatures, the Profile and Broker fields. The three email templates have new wording and structure, and the web templates use named classes with one canonical class order, verified element by element across 51 pages. Each area is rewritten from its behaviour, guarded by a golden-file regression corpus recorded from the old code, so behaviour is pinned rather than assumed.

Done (each against a regression net recorded from the old code):

  • Classifier (classify.go, rules.go, response.go): 6,918-case golden corpus. Intentional change: ties on points used to be broken by map-iteration order (about 9% of mixed replies were nondeterministic); they are now settled the same way every time and sent to review.
  • Links and bounce recipients (urls.go, bounce_recipient.go): 4,197-case golden corpus, identical behaviour.
  • Web core (render.go, routes.go, middleware.go, ratelimit.go, brokerlist.go, pages*.go, session.go, job.go): 59-page snapshot (text, links and forms of each page's <main>). Templates parsed once and cloned, pages rendered to a buffer (a template error is a clean 500), strict id parsing, no background goroutines in sessions or jobs.
  • History store (store.go, schema.go, requests.go, responses.go, tasks.go): a 5.7k-line scenario log of every call. Intentional changes: times are stored in UTC with a one-time conversion (rows written with a local offset mis-ordered "latest send" and the daily count around clock changes), and the latest-request query is an index seek per broker (2.3x faster).
  • Browser package (navigate.go, submit.go, settle.go, confirm.go, filler.go): recorded fixtures on 24 page/profile combinations in real Chrome. One page query per field, JSON-escaped values, no Enter typed into one-line inputs, waiting for the page to settle instead of fixed sleeps, bounded clicks (a hidden submit button no longer stalls a page for its whole time limit), and failure phrases outrank success phrases in the confirmation check.
  • IMAP monitor (monitor.go, fetch.go, message.go, watch.go, folders.go): mail in ISO-8859-x and windows-125x is now decoded (those bodies used to arrive empty; the same fix is on main as fix(inbox): decode ISO-8859-x and windows-125x mail #311). Archiving without MOVE now uses UID EXPUNGE when the server has UIDPLUS (RFC 4315), so mail another client flagged \Deleted is no longer removed with ours; servers without it keep the warning.
  • Commands: confirm and fill share the stored-link picking; a CAPTCHA task now carries the broker's name.
  • Templates: one icon helper instead of 88 inline SVGs; Action Needed rows built in Go; the brokers page is one filter form (refreshes keep the filters) with its script in static/js; history numbers rendered by the server. Each change was checked by the page snapshot and by pixel comparison of 26 screenshots (desktop light, phone dark): identical.

Templates are now built from blocks: card/section/endcard, field, info-row, flash, steps, status-dot, icon, badge, spinner and dict; the profile form, the request options, the dashboard figures and the Action Needed rows are described as Go data. Page scripts live in static/js (theme, app, brokers, history, settings). Each template change was checked by the page snapshot and a pixel comparison of 26 screenshots.

  • Shared and split code: the broker status filter (eligible, never/pending, sent, failed, all) is one function, history.MatchesFilter, used by send --status and the web brokers page; config.go is split into config.go, profiles.go and mail.go (no field or YAML key changed); runSend is split into selection, status filter, daily cap and send loop.

  • One send engine: email.Batch runs the CLI's send loop and the web "Send all" job (skipping, daily budget, the three-auth-failures cutoff, pacing, per-send timeout, cancellation), with its own tests. A cancelled web job now stays "cancelled" (it used to be overwritten with "completed"), and the pause between sends ends when the job is cancelled.

  • Guide pages are built by Hugo: delistd guides writes site/data/guides.json and brokers.json (facts, editorial text and the rendered request letters) and site/content/brokers/_content.gotmpl lays the pages out. Built HTML, sitemap and llms.txt were diffed against the old generator: identical. The unused offline --format html mode and static/brokers.json are gone.

  • Web CSS on one scale: type (--fs-*) and corner (--radius-*) tokens; every inline style= and the tasks <style> block became a named class; hard-coded reds and greens use the status tokens; utilities.css was rewritten from 1,184 to about 250 lines (a hand-written reset plus the utilities templates use; the Tailwind --tw-* plumbing, ring, filter and transform machinery are gone); css_utilities_test.go fails on a utility class used without a rule, on a rule nothing uses, and on inline styles. The change was checked with a computed-style fingerprint of every element on 51 pages (desktop light, phone dark) before and after: only the intended differences remain (12.5px badges are 13px, one logo radius, error tints use the token, the tasks "All" pill finally gets its background). It also restored min-w-* on the brokers filters, pulseGlow, six border/background classes and grid-cols-3, which were broken or missing.

  • Leftovers removed: the pre-rename launchd migration helpers, a second Host guard, JobManager.Create/Cleanup, isSuccessResponse, 46 unused utility-CSS rules, 20 unused component rules and 4 keyframes, plus the duplicated broker lookup, filler JS and manual-send prompt code.

3. Fixes and speed found on the way

  • Brokers page: 2.3 MB of HTML (722 brokers at the time, twice) is now 200 KB: the list renders 50 at a time with a "Show more" button, and the filter bar is one form
  • Dependencies: chromedp 0.16 -> 0.23 (typed commands, pipe transport to a launched Chrome, remote package for DELISTD_CHROME_URL; the browser layer was ported, plus a new test for the remote path), and every other module bumped (x/*, oauth2, yaml, pflag, sqlite, libc and more)
  • Go toolchain 1.26.9 -> 1.26.11 (govulncheck: net/http GO-2026-6859, crypto/x509 GO-2026-6809)
  • config.yaml and the broker lists are written atomically (temp file, fsync, rename; symlinks are followed, read-only files refused). Before, a crash or full disk mid-write truncated them
  • Outgoing mail has a Date header (spam filters count its absence), RFC 2047 subjects and quoted-printable bodies for non-ASCII text; drafts get an RFC 2047 subject
  • Date inputs on broker forms are set by value: typed keys came out as a different date depending on the browser's locale
  • Store benchmark added (go test ./internal/history -bench Store); golden tests run in parallel

4. The broker list is worldwide: 722 to 1,125 entries

  • New controllers, credit bureaus, directories, people-search sites and B2B data sellers across the US, the UK and Europe (Germany to the Baltics and Nordics, the Netherlands, France, Spain, Portugal, Hungary, Cyprus, Malta), Canada, Latin America, Africa, Asia and Oceania. Each entry's source is the privacy page read for it.
  • About a hundred entries carry countries: (46 countries) and are hidden for profiles in other countries; credit bureaus are listed for access and correction, not because credit history will be erased.
  • Every "700+" claim (README, site, setup page, docs) now says "1,000+" and that coverage is worldwide; docs/upgrading-to-3.0.md and EU-NOTES.md describe the country scoping.

Before this merges

  • The rewrite list above is finished
  • December: the public-promotion plan is ready to resume
  • Retaken README, docs and site screenshots
  • AlternativeTo listing text trimmed of "formerly Eraser" wording (listing is yours to edit)
  • A last look at ghcr.io/drumandbytes/eraser consumers (the tag stops at its last 2.x release)

go test ./... passes with a local Chrome (Brave works via DELISTD_TEST_CHROME and a google-chrome shim); golangci-lint 2.15.0 and govulncheck are clean.

Release-As: 3.0.0

3.0 drops what the Eraser to Delistd rename kept alive through 2.x: the
`eraser` alias binary (and its cask line), the ERASER_* environment
fallbacks (and the Dockerfile's legacy defaults), the ghcr.io/drumandbytes/eraser
image tag, the rename notices (CLI line, dashboard card, /renamed/dismiss)
and the automatic migration of pre-rename OS schedules.

Unchanged on purpose: the ~/.eraser data directory, the eraser-data
volume, the launchd label and systemd unit names, the session cookies and
the encryption key derivation. docs/upgrading-to-3.0.md lists what to
change; stability.md and the README are updated.

Release-As: 3.0.0
@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

@JustMaris JustMaris changed the title feat: remove the pre-rename Eraser names feat: 3.0, drop the Eraser names and rewrite the inherited code Nov 15, 2026
…es rendered to a buffer, table-driven routes, brokerQuery
…n UTC (with a one-time conversion), latest-request query by index seek
… JSON-escaped values, no Enter typed into one-line inputs), recorded-behaviour tests
…outrank success, no shared redirect state), host matching by hostname
…ce replies (#318)

A broker on gmail.com and the like owns its address, not the domain: any other Gmail sender was filed under whichever broker was indexed last. Also scores done-tense confirmations and acknowledgements from Retention.com, DataGrail and TrustSuperset. Phrases taken from sinful1992's fork.
* feat(site): add a Support page for optional paid setup help and organisation support

* fix(site): drop the duplicate home breadcrumb on root pages; support periods agreed up front, no NGO line

* feat(site): a breadcrumb on every page; reword the support check-ins

* feat(site): support page asks for what we need to quote and what to have ready

* feat(site): support price anchor, prerequisites, paid-support privacy section and terms page

* feat(site): terms in footer and llms.txt; a quiet 'Stuck? I can help' on the home page and README

* fix(site): support mail on drumandbytes.com, screen-share and Stripe wording, one voice

* feat(site): terms name the Consumer Disputes Committee and the language they are in

* fix(site): terms say the service is in English

* feat(site): terms state the price is confirmed before payment and English is agreed at booking

* feat(site): fixed prices and extras for individual setups

* feat(site): extra work is quoted before it is done

* feat(site): FAQ, feedback template, short-notice booking and an internal support runbook

* feat(site): short notice only by agreement, a star nudge in more places, feedback by email too

* chore(site): label feedback issues

* feat(site): full terms for paid setup and a complete paid-support section in the privacy page

* fix(site): drop the VAT-registration sentence from the terms

* feat(site): terms follow the Law of Obligations Act's pre-contract and withdrawal requirements

* feat(site): terms give a telephone number

* fix(site): shorten the liability carve-out

* feat(site): new positioning on the home page, README and site description

* docs(support): order flow, refunds and the Stripe set-up checklist in the runbook

* docs(support): move the session runbook out of the repo
…ian UK and TransUnion UK

Contact details read from each company's own privacy notice on 2026-11-18. The list of UK controllers follows the closed #285 from sinful1992.
…Nordics

Credit bureaus, company registers, B2B contact databases and people-search sites from DE/AT/CH, FR/BE/NL/LU, ES/IT/PT/GR, UK, the Nordics, the Baltics and CEE. Each has a first-party privacy contact fetched on 2026-11-18; duplicates and shared mailboxes were dropped.
…a and Oceania

Credit bureaus, Dun & Bradstreet regional contacts, caller-ID apps, a B2B contact database and identity-graph vendors, each with a first-party privacy contact fetched on 2026-11-18.
@JustMaris
JustMaris marked this pull request as ready for review November 23, 2026 07:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant