Releases: davidkarolyi/tguard
Releases · davidkarolyi/tguard
BREAKING CHANGE: v3 stable
Changed API: Use the Guard class instead of the guard function.
// v2
const isUser = guard({ name: TString });
// v3
const TUser = new Guard({ name: TString});
TUser.isValid // same as isUser
v3.0.4-1
- refactor: Rename GuardType -> GuardedType 10984e0
v3.0.4-0
- feat: Add generic type to Schema 63d63e2
v3.0.3-0
- feat: Export ValidationError 6672623
v3.0.2-0
- feat: Add TNumberAsString, TMatch, and TAnd c451645
v3.0.1-0
- fix: Export members, fix typos, and error messages ef853aa
v3 preview
TypeScript version upgrade
Documentation patch
- fix: Old example in README 5c0c1f6
Simpler API
- Merge pull request #6 from davidkarolyi/remove-duplicate-functionality 36f537a
- fix: Remove double build step from CI 602214c
- docs: Update README with the new API 27fc2ca
- feat: Remove class definition 2c6f42c
- Merge pull request #5 from davidkarolyi/fix-coverage-bug 12cb348
- fix: Coverage ignored guard.ts 857c520
- Merge pull request #4 from davidkarolyi/create-predicate-function 55bddb2
- docs: Add createPredicate to README d85f4c4
- feat: Add createPredicate function 7471f66
- Merge pull request #3 from davidkarolyi/add-badges 78bbe3f
- feat: Add badges to README d58c07b