Runtypes Versions Save

Runtime validation for static types

v4.1.0

4 years ago
  • Add key to throw ValidationError in decorator (#117)
  • Add failed key to error message (#121)

v4.0.3

4 years ago

Fixes issue with circularity detection in show() (#108)

v4.0.2

4 years ago

Improve performance by using pure guard function as the primitive type checking operation rather than exceptions (#99)

v4.0.1

4 years ago

Remove reflect-metadata dependency and simplify @checked decorator code (#101)

v4.0.0

4 years ago

Big thanks to @justingrant for the major contributions in this release:

  • Enable Constraint to have a custom name and/or a custom static type (#78)
    • Convenience method withGuard for producing runtypes from type guards
    • BREAKING CHANGE: Constraint's args parameter moved to within options parameter (this likely does not affect many users)
  • Adds TypeScript 3.5 compatibility

v3.2.0

5 years ago
  • Add isReadonly flag to Array and Record runtypes (#80)
  • Deprecate the Void runtype (#82)

v3.1.2

5 years ago

Make ValidationError public (#59)

v3.0.1

5 years ago

Fix bug with @checked (#72)

v3.0.0

5 years ago

Replace Always with Unknown

v2.2.0

5 years ago

Add @checked decorator (#71)