Repository navigation
Task 036: Shrink remaining src/util micro-helpers - #35
Merged
Merged
Conversation
Collaborator
Author
/ponytail-reviewDeletion/simplification pass aligned with task scope. No speculative abstractions added.
|
Igloczek
force-pushed
the
task/036-shrink-remaining-util-helpers
branch
from
June 30, 2026 12:01
2c216be to
db3271e
Compare
Inline or replace the five leftover util modules at their call sites: - jwt-decode → inline JWT payload decode in socket mixin - event-emitter → native EventTarget in socket mixin - password-strength → local helper in server.ts and reset-password.ts - version-compare → Bun.semver on server, minimal compare in Layout.vue - random-id → crypto.randomUUID() hex secret for API keys Deletes all five util files (206 LOC reduction in src/util).
Igloczek
force-pushed
the
task/036-shrink-remaining-util-helpers
branch
from
June 30, 2026 12:08
db3271e to
d95c42d
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
…elpers Task 036: Shrink remaining src/util micro-helpers
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 free
to 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.
Implements tasks/036-shrink-remaining-util-helpers.md from the ponytail audit backlog.
Goal
Inline or delete small util modules not covered by Task 008.
Scope
jwt-decode.ts— keep as 5-line inline at sole call site or merge intojwt.ts.event-emitter.ts— replace withEventTargetor inline if single caller.password-strength.ts— inline 15-line check at setup form.version-compare.ts— useBun.semveron server; keep minimal compare where needed on frontend.random-id.ts— usecrypto.randomUUID()if alphabet constraints allow.Acceptance criteria
src/util/total LOC reduced by ≥100 vs pre-task count.bun run lintpasses.bun run test:backendpasses.Depends on
Task 012 (util split clarifies what stays shared).
Verification
Audit reference
Finding #16 (extended) — remaining
src/util/*helpers.