angular-package
TwitterGitHub
Type
Type
  • Introduction
  • ❤ Benefits
  • Getting started
    • Skeleton
    • Installation
      • npm
    • Public API
    • General concepts
  • Helper
    • recognizeValue()
      • Recognized instances
      • OfRecognized
    • resultCallback()
    • typeOf()
  • is
    • isArray()
    • isBigInt()
    • isBoolean()
    • isBooleanObject()
    • isBooleanType()
    • isClass()
    • isDate()
    • isDefined()
    • ★ isFalse()
    • isFunction()
    • isInstance()
    • isKey()
    • isNull()
    • ★ isNumber()
    • isNumberBetween()
    • isNumberObject()
    • isNumberType()
    • isObject()
    • isObjectKey()
    • isObjectKeyIn()
    • isObjectKeys()
    • isObjectKeysIn()
    • isObjectSomeKeys()
    • isPrimitive()
    • isRegExp()
    • ★ isString()
    • isStringIncludes()
    • isStringIncludesSome()
    • isStringLength()
    • isStringLengthBetween()
    • isStringObject()
    • isStringType()
    • isSymbol()
    • ★ isTrue()
    • isType()
    • isUndefined()
  • is not
    • isNotBoolean()
    • isNotDefined()
    • isNotFunction()
    • isNotNull()
    • isNotNumber()
    • isNotString()
    • isNotUndefined()
  • Are
    • areDeterminer()
      • every()
      • forEach()
      • some()
    • areBigInt()
      • every()
      • forEach()
      • some()
    • areBoolean()
      • every()
      • forEach()
      • some()
    • areDate()
      • every()
      • forEach()
      • some()
    • areDefined()
      • every()
      • forEach()
      • some()
    • ★ areFalse()
      • every()
      • forEach()
      • some()
    • areNull()
      • every()
      • forEach()
      • some()
    • ★ areNumber()
      • every()
      • forEach()
      • some()
    • areRegExp()
      • every()
      • forEach()
      • some()
    • ★ areString()
      • every()
      • forEach()
      • some()
    • areSymbol()
      • every()
      • forEach()
      • some()
    • ★ areTrue()
      • every()
      • forEach()
      • some()
    • areUndefined()
      • every()
      • forEach()
      • some()
  • Guard
    • guardArray()
    • guardBigInt()
    • guardBoolean()
    • guardClass()
    • guardDate()
    • guardDefined()
    • ★ guardFalse()
    • guardFunction()
    • guardInstance()
    • guardKey()
    • guardNull()
    • guardNumber()
    • guardNumberBetween()
    • guardObject()
    • guardObjectKey()
    • guardObjectKeyIn()
    • guardObjectKeys()
    • guardObjectKeysIn()
    • guardObjectSomeKeys()
    • guardPrimitive()
    • guardRegExp()
    • ★ guardString()
    • guardStringIncludes()
    • guardStringIncludesSome()
    • guardStringLength()
    • guardStringLengthBetween()
    • guardSymbol()
    • ★ guardTrue()
    • guardType()
    • guardUndefined()
  • object
    • are: Are {}
    • guard: Guard {}
    • guardIs: GuardIs {}
    • is: Is {}
    • isNot: IsNot {}
    • type {}
  • Interface
    • MinMax
  • Type
    • AnyBoolean
    • AnyNumber
    • AnyString
    • CallbackPayload
    • Constructor
    • Defined
    • ForEachCallback
    • GenericObject
    • Never
    • NotUndefined
    • NumberBetween
    • Primitive
    • Primitives
    • ResultCallback
    • StringOfLength
    • Type
    • Types
    • Undefined
  • Experimental
    • isParam()
  • GIT
    • Commit
    • Semantic Versioning
  • Change log
    • Keep a changelog
    • Unreleased
    • v5.0.0
    • v4.2.0
  • License
    • MIT
  • Contact
    • ⋯ Chat
    • @ Email
  • Donate
    • ฿ Cryptocurrency
    • $ Fiat
  • More versions
Powered by GitBook
On this page
  • [5.0.0] - 2022-01-30
  • Added
  • Changed
  • Removed

Was this helpful?

  1. Change log

v5.0.0

PreviousUnreleasedNextv4.2.0

Last updated 3 years ago

Was this helpful?

[5.0.0] - 2022-01-30

Added

  • Added Undefined generic type.

  • Added guard function guardStringLengthBetween().

  • Added check function isStringLengthBetween().

  • Added generic type GenericObject.

  • Added guardStringIncludes() and guardStringIncludesSome() functions with tests.

  • Added guardObjectKeysIn() function to guard the value to be an object with specified keys in it(or its prototype chain).

  • Added are prefixed functions to check the values of a rest parameter. areBigInt() areBoolean() areDate() areDefined() areFalse() areNull() areNumber() areRegExp() areSymbol() areTrue() areUndefined().

  • Added a generic type MinMax that takes generic type variable Min and Max that represents the range between minimum and maximum.

  • Added new guard functions guardDate(), guardFalse(), guardNumberBetween(), guardObjectKeyIn(), guardObjectSomeKeys(), guardRegExp(), guardStringLength(), guardTrue().

  • Added isObjectKeysIn(), isObjectSomeKeys(), isStringIncludes() and isStringIncludesSome() and to the is object and to the Is interface.

  • Added CallbackPayload and ForEachCallback types.

  • Added the type object consists of are, is and guard objects.

  • Added an object to handle executing the tests.

  • Added recognizeValue() to recognize type of any value.

Changed

  • Updated the way of checking values in some of the is and guard prefixed functions.

  • Updated isPrimitive() and isType() function does not use switch on the type argument.

  • Updated guard, is, isNot prefixed functions to use updated generic type ResultCallback with payload parameter of generic type variable Payload.

Removed

Updated isStringLength() function to check the specific length.

Updated guardStringLength() function to check the specific length.

Updated is {} object by adding stringLengthBetween method.

Updated guardIs object by adding objectKeysIn, stringIncludes, stringLengthBetween and stringIncludesSome methods.

Updated GuardIs interface by adding stringLengthBetween.

Updated areString() function that works by using the returned methods.

Freeze the guard, guardIs, isNot and is object.

Updated isObject() function by adding the ability to check any kind of object, not only the Object.

Updated NumberBetween interface by adding MinMax interface and a generic type variable Type.

Updated StringOfLength interface by adding MinMax interface and a generic type variable Type.

Updated isInstance() function can now check any kind of instance.

Updated Is interface by adding stringLengthBetween.

Updated Is interface and isNot by changing the function types to the typeof operator.

Updated the type of callback function ResultCallback to provide the type of value and the shape of payload.

Updated functions by adding a generic type variable Payload constrained by the object type that is by default equal to the object.

Updated functions by adding a payload parameter of generic type CallbackPayload that takes generic type variable Payload to assign to callback function payload parameter.

Updated functions by removing typeOf() function if it's not necessary to use it.

Updated the Defined to not use of Never type cause of some compile issues.

Updated the guard object by removing is property.

Updated the isParam() function by removing the Func generic type in favor of Function.

Updated isObjectKey(), isObjectKeyIn to check only one key instead of multiple keys.

Updated isObjectKeys() works differently, now it searches for every key. The previous functionality provides isObjectSomeKeys().

Removed guard prefixed function types.

Removed Func type in favor of build-in Function type.

Removed Key type in favor of build-in PropertyKey type.

Removed CycleHook type.

53e02d8
5d044f9
fd14947
691f07e
21e523b
823dac3
e503d38
c374612
55635fa
1e48fb1
a4cb61d
f809f32
5c85a03
d440e38
0efe8ae
98a2722
dfb3df9
8dd8099
230063b
d2f756e
061ab52
0e48591
083ffd0
8679b4c
1d44d2e
7387e23
68c9365
00e8841
09fb70f
c4e6f8f
0efe8ae
de6aa12
1263a2e
24621f7
7d288c2
26d7a9d
8ddb720
8ddb720
8ddb720
34a1b1f
5c9486f
6d190f5
8ddb720
e09a84f
aa80250
42065c9
b7092a9
b7092a9
a8e8566
8ddb720
5148f05
562ec13
4d53a55