Skip to content

Releases: davidkarolyi/tguard

BREAKING CHANGE: v3 stable

28 Aug 20:55
Compare
Choose a tag to compare
  • chore: Update dev-dependencies 2149a05
  • docs: Fix namings in docs c662c46

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

v2.1.0...v3.0.4

v3.0.4-1

28 Aug 19:17
Compare
Choose a tag to compare
v3.0.4-1 Pre-release
Pre-release
  • refactor: Rename GuardType -> GuardedType 10984e0

v3.0.4-0...v3.0.4-1

v3.0.4-0

28 Aug 15:22
Compare
Choose a tag to compare
v3.0.4-0 Pre-release
Pre-release
  • feat: Add generic type to Schema 63d63e2

v3.0.3-0...v3.0.4-0

v3.0.3-0

28 Aug 12:50
Compare
Choose a tag to compare
v3.0.3-0 Pre-release
Pre-release
  • feat: Export ValidationError 6672623

v3.0.2-0...v3.0.3-0

v3.0.2-0

28 Aug 12:24
Compare
Choose a tag to compare
v3.0.2-0 Pre-release
Pre-release
  • feat: Add TNumberAsString, TMatch, and TAnd c451645

v3.0.1-0...v3.0.2-0

v3.0.1-0

28 Aug 09:30
Compare
Choose a tag to compare
v3.0.1-0 Pre-release
Pre-release
  • fix: Export members, fix typos, and error messages ef853aa

v3.0.0-0...v3.0.1-0

v3 preview

27 Aug 20:26
Compare
Choose a tag to compare
v3 preview Pre-release
Pre-release
  • fix: Add missing exports fdf7a99
  • BREAKING CHANGE: Implement initial v3 9774c73

v2.1.0...v3.0.0-0

TypeScript version upgrade

19 Aug 17:12
Compare
Choose a tag to compare
  • test: Add test for type inference 91f8185
  • chore: Upgrade dependencies to latest version be6182c
  • fix: Remove dependency badge 29ffa1b
  • fix: Missing imports in README 121cfd7

v2.0.1...v2.1.0

Documentation patch

27 Oct 18:44
Compare
Choose a tag to compare
  • fix: Old example in README 5c0c1f6

v2.0.0...v2.0.1

Simpler API

27 Oct 18:01
Compare
Choose a tag to compare
  • 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

v1.0.1...v2.0.0