Skip to report

A Base64 action and its shared regex

Follow Valibot’s base64 action from a new actions directory into the shared regex module, which also exports the new Base64 pattern publicly.

open-circle/valibot #644 · PR by morinokami · Merged

open-circle/valibot c7addca8..15a96a9a

base and head as given

  • Base64 validation is now available among validation actions.
  • A shared Base64 pattern now supports validation.
files changed
21
in a component
5
lines in components
158
components
3
public routes changed
0
schema statements
0
new dependencies
0
excluded by role
16
Based on 5 of 5 eligible changed files

Base64 validation

Added
Before
No Base64 validation action existed
After
Base64 strings can be validated

Applications can now reject string values that are not valid Base64 and provide a custom validation message. The action preserves string input and output types while reporting a Base64-specific issue.

In favour

  • In favour: Uses a shared pattern for the action requirement

The model found nothing to weigh against this.

Files changed in 3 components. Dependencies shown: 2 new, 1 unchanged
unchanged · 1new · 21 component added

2 new dependencies between components — Actions → Base64 Actions · Base64 Actions → Library Source

What else could behave differently

19 components · 36 files

These components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure.

Reached 2

ComponentSymbolCited atFilesReached by
Base64 Actionslibrary/src/actions/base64/Added 1 of 4 changed symbols reaching itlibrary/src/actions/base64/base64.ts:13-3432 direct · 1 at two steps
Trace path

Shortest component path from the changed symbol:

  1. Base64 Actions

Later steps follow file imports; they do not prove this symbol is called.

library/src/actions/bic/Signature changed library/src/regex.ts:1031 direct · 2 at two steps
Trace path

Shortest component path from the changed symbol:

  1. Library Source
  2. library/src/actions/bic/

Later steps follow file imports; they do not prove this symbol is called.

Held back 17

ComponentFilesReached byResolution
library/src/actions/1none direct · 1 at three stepsprecise
library/src/1none direct · 1 at four stepsprecise
library/src/schemas/object/2none direct · 2 at four stepsprecise
library/src/methods/pipe/2none direct · 2 at four stepsprecise
library/src/schemas/looseObject/2none direct · 2 at four stepsprecise
library/src/schemas/objectWithRest/2none direct · 2 at four stepsprecise
library/src/schemas/strictObject/2none direct · 2 at four stepsprecise
library/src/methods/fallback/2none direct · 2 at four stepsprecise
library/src/methods/getFallback/1none direct · 1 at four stepsprecise
library/src/utils/ValiError/1none direct · 1 at four stepsprecise
library/src/schemas/record/3none direct · 3 at four stepsprecise
library/src/methods/parse/2none direct · 2 at four stepsprecise
library/src/methods/safeParse/2none direct · 2 at four stepsprecise
library/src/methods/forward/2none direct · 2 at four stepsprecise
library/src/methods/parser/2none direct · 2 at four stepsprecise
library/src/methods/safeParser/2none direct · 2 at four stepsprecise
library/src/methods/is/1none direct · 1 at four stepsprecise

Statements 2

Base64Issue was added and reaches 3 files in Base64 Actions. 21
library/src/actions/base64/base64.ts:13-34
BIC_REGEX's signature changed and reaches 3 files in Bic Actions. 12
library/src/regex.ts:10

28 reached files belong to no component — tests, docs and config.

Routes, schema, dependencies

No public URL, no migration and no new package.

Inspect components, files and symbols

Component

ActionsModified
library/src/actions/

1 file · 1 line

42 dependents

Library SourceModified
library/src/

1 file · 8 lines

25 dependents

The Library Source export surface added BASE64_REGEX.
Base64 ActionsAdded
library/src/actions/base64/

3 files · 149 lines

1 dependent

The Base64 Actions export surface added Base64Action, Base64Issue, and base64.

File

Actionslibrary/src/actions/
library/src/actions/index.ts

+1 −0

Library Sourcelibrary/src/
library/src/regex.ts

+7 −1

Base64 Actionslibrary/src/actions/base64/
library/src/actions/base64/base64.ts

+105 −0

Base64 Actionslibrary/src/actions/base64/
library/src/actions/base64/base64.test-d.ts

+43 −0

Base64 Actionslibrary/src/actions/base64/
library/src/actions/base64/index.ts

+1 −0

Function

imports what changeddownstream of it, one mark per step

BASE64_REGEX()library/src/regex.ts

reaches 17 components

BASE64_REGEX was added and reaches 1 file in Actions. 1
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 1 file in Library Source. 1
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Object Schemas. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Pipe Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Loose Object Schemas. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Object With Rest Schemas. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Strict Object Schemas. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Fallback Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 1 file in Get Fallback Methods. 1
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 1 file in ValiError Utilities. 1
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 3 files in Record Schemas. 3
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Parse Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Safe Parse Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Forward Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Parser Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 2 files in Safe Parser Methods. 2
library/src/regex.ts:4-5
BASE64_REGEX was added and reaches 1 file in Is Methods. 1
library/src/regex.ts:4-5

Diff

Actionslibrary/src/actions/
library/src/actions/index.ts

2–2

Library Sourcelibrary/src/
library/src/regex.ts

1–6, 10–10

Base64 Actionslibrary/src/actions/base64/
library/src/actions/base64/base64.ts

1–105

Base64 Actionslibrary/src/actions/base64/
library/src/actions/base64/base64.test-d.ts

1–43

Base64 Actionslibrary/src/actions/base64/
library/src/actions/base64/index.ts

1–1

Analysis scope

1764 → 3
  1. 1,764
    files at head
  2. 182
    components
  3. 3
    changed by this change

Where the new files landed

3 new files
New fileBelongs toUsed byCallsServes
library/src/actions/base64/3 new files
Base64 Actionsnew territory
Actions
Library Sourcelibrary/src/types/library/src/utils/

2 added files carry no component — 1 docs, 1 test.

3components changed
16reached, not changed
1components added/removed
5dependencies added between components
0dependencies removed between components
0files moved to another path

21 files changed, 24 claims stated. 19 components reached in total.

naming: “model

narrative: “model

analyzer 0.2.0, config v1.9.0-phase8

Every line above is derived from c7addca8..15a96a9a and nothing else.