Skip to content

Updated API & dependencies#3

Merged
cmath10 merged 39 commits intomainfrom
refactor
Mar 9, 2026
Merged

Updated API & dependencies#3
cmath10 merged 39 commits intomainfrom
refactor

Conversation

@cmath10
Copy link
Copy Markdown
Member

@cmath10 cmath10 commented Mar 8, 2026

This PR significantly expands the validator library API and its surrounding tooling.

At the runtime/API level, it redesigns and extends the validation model around typed tuples, structured violations, and richer combinators. The changes include shape-oriented validation improvements, tuple/record/union
combinators, object-level shape refinement, nested selector support, violation collection utilities, and a broader metadata/introspection surface. The library also gains a JSON Schema export entrypoint, with
corresponding public type updates.

The PR also strengthens overall project quality and maintainability. Test coverage was raised to 100%, runtime and type-level test coverage were expanded, and validation/assertion tests were reorganized and
consolidated. Documentation was substantially improved with rewritten project positioning, localized guides, recipes, and AI-oriented reference materials. In parallel, CI and release automation were extended, the Yarn 4
toolchain was adopted, and developer dependencies such as commitlint and ESLint were updated.

…cate constructor for checking objects structures
Replace the legacy assertions layer with the new assert/checkers/extractors modules.

Align validation, tests, build, and type checking around the camelCase assertion API and structured violation metadata.

BREAKING CHANGE: legacy assertion entrypoints were removed, assertion exports now use camelCase names, and violations now expose structured metadata via violates.{predicate,rule,args}.
Additional tests were added for optional hasLength flows, async validation branches, and isShape shorthand usage.

Shape typings were aligned with the existing shorthand predicate runtime behavior.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (079c455) to head (8f96f4b).
⚠️ Report is 39 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main        #3    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            8        11     +3     
  Lines          167       736   +569     
  Branches        52       166   +114     
==========================================
+ Hits           167       736   +569     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cmath10 cmath10 merged commit b222397 into main Mar 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant