open-circle/valibot a46941a5..d2654763
base and head as given
- Credit card validation joined the library’s validation catalog.
- Credit card validation now depends on the shared Luhn checker.
- files changed
- 11
- in a component
- 4
- lines in components
- 78
- components
- 3
- public routes changed
- 0
- schema statements
- 0
- new dependencies
- 0
- excluded by role
- 7
Credit card validation
Added- Before
- Credit card validation did not exist
- After
- Cards pass provider and Luhn checks
Applications can validate credit card numbers with provider-format checks and a Luhn checksum. Spaces and hyphens are accepted before validation.
In favour
- In favour: Rejects Luhn-valid numbers outside listed card provider formats
Against
- Against: Mastercard pattern alternation is not anchored consistently
Inspect 4 source files behind this explanation
2 new dependencies between components — Validations → Credit Card Validations · Credit Card Validations → Is Luhn Algo
What else could behave differently
3 components · 5 filesThese components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure. Some paths stopped at heavily imported files; inspect those consumers separately.
Reached 2
| Component | Symbol | Cited at | Files | Reached by |
|---|---|---|---|---|
| Credit Card Validationslibrary/src/validations/creditCard/ | Body changed isLuhnAlgo | library/src/utils/isLuhnAlgo/isLuhnAlgo.ts:13-31 | 2 | 1 direct · 1 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| library/src/validations/imei/ | Body changed isLuhnAlgo | library/src/utils/isLuhnAlgo/isLuhnAlgo.ts:13-31 | 2 | 1 direct · 1 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
Held back 1
| Component | Files | Reached by | Resolution |
|---|---|---|---|
| library/src/validations/ | 1 | none direct · 1 at three steps | precise |
Not traced past a hub 1
| Symbol | Hub file | Imported by |
|---|---|---|
| library/src/utils/isLuhnAlgo/isLuhnAlgo.ts:isLuhnAlgo | library/src/validations/index.ts | 38 |
Statements 2
isLuhnAlgo reached 2 credit card validation files; 1 of 2 names in its file changed. 11isLuhnAlgo reached 2 IMEI validation files; 1 of 2 names in its file changed. 113 reached files belong to no component — tests, docs and config.
Routes, schema, dependencies
No public URL, no migration and no new package.
Not stated
- 42 import edges resolve to more than one file. A reach that passes through one is held back rather than claimed, and said so where it is listed.
Inspect components, files and symbols
Component
File
Function
imports what changeddownstream of it, one mark per step
Diff
Analysis scope
878 → 3- files at head878
- components135
- changed by this change3
Where the new files landed
2 new files| New file | Belongs to | Used by | Calls | Serves |
|---|---|---|---|---|
| library/src/validations/creditCard/2 new files | Credit Card Validationsnew territory | Validations | library/src/types/library/src/utils/ | — |
2 added files carry no component — 1 docs, 1 test.
11 files changed, 8 claims stated. 3 components reached in total.