All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.2.1 (2026-03-09)
0.2.0 (2026-03-09)
- Validation API was redesigned around typed tuples
- legacy assertion entrypoints were removed, assertion exports now use camelCase names, and violations now expose structured metadata via violates.{predicate,rule,args}.
- isObject now returns false on null values, added isShape predicate constructor for checking objects structures
- Injecting check utility into Assertion
- Added JSON Schema export entrypoint (0b3ec5b)
- Added metadata and introspection API (16ea412)
- Added simple runtime predicates for built-in values (11c9f19)
- Added violation collection utilities (64e9e36)
- assertions: Added reusable assertion mixins for strings and numbers (658dc9f)
- combinators: Added object-level shape refinement runtime (2e2607f)
- combinators: Added tuple and record validators (71742f9)
- combinators: Added union variant validators (8b9e131)
- combinators: Extended fieldsMatch with nested selectors (af5801e)
- Expanded metadata introspection contracts (a188152)
- Injecting check utility into Assertion (be8b22e)
- isObject now returns false on null values, added isShape predicate constructor for checking objects structures (ee70741)
- redesign assertion API around structured violations (acf16f3)
- Shape object API was unified (c43f6b6)
- types: Added code-aware violation inference (f9851db)
- Validation API was redesigned around typed tuples (d645441)
0.1.0 (2024-12-22)
- validator object replaced with validate function, containing sub method sync for synchronous validation
- Length constraint replaced with HasLength functional assertion
- Exists constraint replaced with IsDefined functional assertion
- Each object replaced with Each runner
- Collection object replaced with HasProperties runner
- Type "Key" replaced with in-box "PropertyKey"
- ConstraintCollection type was removed
- ConstraintValidator was renamed to Validator
- ConstraintViolation was renamed to Violation
- d.ts files for exported logic units are now generated and available in dist catalogue
- Logic redesign and simplification (b829a1e)
0.0.2 (2024-02-05)
- Added constraint Each to apply constraints to array entries (eb0f44f)
- Added exported by src/index.ts members to types/index.d.ts (cce525b)
- Added Length / OneOf constraint to exported by src/index.ts members (c152199)
- Added meta to ConstraintViolation (11b9bf0)
- Added meta to OneOf violation (8dd59fc)
- Added possibility to override initial valitators set (0192f44)
- Asynchronous validation (1505f41)