Skip to content

Releases: angular-package/type

4.2.0

25 Jun 21:40
4438be5
Compare
Choose a tag to compare

[4.2.0] - 2021-06-25

Added

  • a6b567f
    New NumberBetween and StringOfLength type.

  • 21f3f48
    New functions isDate(), isFalse(), isNumberBetween(), isRegExp(), isStringLength(), isTrue() with tests and types.

  • 7d4cda7
    This CHANGELOG.md.

Changed

  • e70b034
    All types description in the README.md.

  • 61e9376
    Add possibility to use is prefixed functions directly from the guard eg. guard.array().

4.1.4

04 Jun 10:40
78bc88c
Compare
Choose a tag to compare

4.1.3

02 Jun 15:36
dd4a6eb
Compare
Choose a tag to compare

#25 #26 #27 #28

Most important

Update README.md

Fix:

  • Fixes the return type boolean, which doesn't strictly indicate the value is defined by changing the value type to a generic Type and the return type to value is Defined<Type> 9154c07
  • All isNot prefixed functions to strictly indicate the value is not a type 1c86751

4.1.2

30 May 19:14
951c409
Compare
Choose a tag to compare

4.1.1

29 May 13:52
b7ce020
Compare
Choose a tag to compare

4.1.0

27 May 17:12
ce1a523
Compare
Choose a tag to compare

#19
Added:

  • isObjectKeys(): checks if any value is an object of a generic Type with some of its own specified keys d2e08b5
  • guardObjectKeys(): guard the value to be an object of a generic Type with some of its own specified keys daebc84

Updated:

  • isInstance(): default type variable Class is set to Function 2338fce
  • isKey(): check primitive only 6a7f079

Fixed:

  • guardKey(): change return from boolean to value is Key c673ccb
  • guardDefined(): guard the value to be not undefined e1432e6
  • guardObjectKey() guardObject() guard the value with object bd3e733
  • guardInstance(): guard the value with object 5ba793c
  • guardClass(): guard the value with Function 654e656

4.0.5

23 May 08:58
64539b5
Compare
Choose a tag to compare

4.0.2

22 May 12:47
419daf2
Compare
Choose a tag to compare

4.0.1

20 May 20:46
fe34022
Compare
Choose a tag to compare

Fix guardObjectKey() guards the key.

4.0.0

20 May 01:49
b465963
Compare
Choose a tag to compare

Added:

  • isClass()
  • guardClass()
  • guardDefined()

Updated:

  • isFunction()
  • isInstance()
  • isObject()
  • guardFunction()
  • guardInstance()
  • guardObject()
  • guardObjectKey()