Skip to content

Task 031: Split util-server.ts by domain - #31

Merged
Igloczek merged 1 commit into
masterfrom
task/031-split-util-server
Jun 30, 2026
Merged

Igloczek merged 1 commit into
masterfrom
task/031-split-util-server

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/031-split-util-server.md from the ponytail audit backlog.

Goal

Break the ~1,069 LOC god module into focused files without changing behavior.

Scope

  • Extract cohesive domains into modules, e.g.:
    • src/server/radius.ts (if not done in Task 010)
    • src/server/tls-cert.ts
    • src/server/encoding.ts (chardet/iconv-lite)
    • src/server/settings-helpers.ts
  • Keep util-server.ts as a thin re-export barrel during migration, then shrink to only shared helpers.
  • No logic changes — move code only.

Acceptance criteria

  • util-server.ts is ≤400 LOC (or documents remaining shared surface).
  • All moved symbols still importable from previous paths OR all call sites updated.
  • bun run test:backend passes.
  • bun run build succeeds.

Depends on

Task 010 (radius inlined/split).

Verification

bun run test:backend
bun run build
wc -l src/server/util-server.ts

Audit reference

Finding #33 — util-server.ts god module.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

util-server.ts → 48-line re-export barrel. Domain split without logic changes.

Lean already. Ship.

12 files changed, 1142 insertions(+), 1066 deletions(-)

@Igloczek
Igloczek force-pushed the task/031-split-util-server branch from a0a3a76 to cc4b97e Compare June 30, 2026 12:01
Break the ~1,069 LOC god module into focused domain files while
keeping util-server.ts as a thin re-export barrel (48 LOC).

New modules: settings-helpers, encoding, radius, tls-cert, ping,
kafka, server-auth-helpers, http-utils, time-object, server-urls,
shared-helpers. No logic changes — move code only.
@Igloczek
Igloczek force-pushed the task/031-split-util-server branch from cc4b97e to 08f36bb Compare June 30, 2026 12:08
@Igloczek
Igloczek merged commit ed16029 into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/031-split-util-server branch June 30, 2026 12:59
Igloczek added a commit that referenced this pull request Aug 8, 2026
Task 031: Split util-server.ts by domain
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