Conversation
…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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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.
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.