mirror of
https://github.com/ersinkoc/vld.git
synced 2026-04-26 22:45:52 +03:00
[PR #12] fix: NPM package bug analysis - Fix 6 HIGH priority bugs #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vld#12
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?
Original Pull Request: https://github.com/ersinkoc/vld/pull/12
State: closed
Merged: Yes
Comprehensive bug analysis discovered 56+ bugs across the codebase.
This commit fixes 6 HIGH priority bugs with full test coverage.
Fixed Bugs
BUG-NPM-002: VldDefault - Validate default value at construction
BUG-NPM-003: VldCatch - Validate fallback value at construction
BUG-NPM-006: hexToUint8Array - Silent data corruption
BUG-NPM-007: IPv6 validation - Overly permissive
BUG-NPM-004: jwtPayload - Missing error handling
BUG-NPM-005: base64Json - Missing error handling
Test Coverage
Documentation
Breaking Changes
⚠️ BUG-NPM-002 & BUG-NPM-003: Invalid default/fallback values now throw errors
at construction time instead of silently accepting invalid data. Update code:
Before:
After: