Repository navigation
task/008: Replace hand-rolled validators with stdlib - #6
Merged
Merged
Conversation
6 tasks
Collaborator
Author
/ponytail-reviewFour util files deleted with no new shared modules. Stdlib used at call sites per task spec. Lean already. Ship.
|
Delete is-ip, is-url, is-fqdn, and form-urlencode util modules. Use node:net, URL/URLSearchParams, and inline hostname checks at call sites.
Igloczek
force-pushed
the
task/008-replace-handrolled-validators
branch
from
June 30, 2026 11:44
af1680f to
0d2c531
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
…ators task/008: Replace hand-rolled validators with stdlib
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/008-replace-handrolled-validators.md from the ponytail audit backlog.
Goal
Delete small util modules that duplicate
node:net,URL, andURLSearchParams.Scope
src/util/is-ip.tswithnode:netisIP()/isIPv4()/isIPv6()(server) or minimal inline checks (frontend).src/util/is-url.tswithURL.canParse()ortry { new URL() }.src/util/is-fqdn.tswith URL hostname validation or a single regex at call sites.src/util/form-urlencode.tswithnew URLSearchParams(params).toString().test/backend-testor frontend tests that import these modules.Acceptance criteria
src/util/is-ip.ts,is-url.ts,is-fqdn.ts,form-urlencode.tsare deleted.bun run lintpasses.bun run test:backendpasses.Depends on
Nothing.
Verification
Audit reference
Finding #16 — hand-rolled validators.