Skip to content

Releases: unional/type-plus

v6.7.1

09 May 21:34
Compare
Choose a tag to compare

Patch Changes

  • 963f8a4: Pass stub value to init function for stub()

v6.7.0

01 May 05:57
Compare
Choose a tag to compare

Minor Changes

  • cf32375: Add NoInfer<T> and improve stub()

v6.6.0

16 Apr 05:08
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • a9825e6: Update JSDocs
  • 7496bba: Remove extra unique symbol.
  • f52c794: Fix Equal<A, B> to handle optional param.

v6.5.0

10 Apr 17:45
Compare
Choose a tag to compare

Minor Changes

  • 99afa70: Add Failed and FailedT error type.

Patch Changes

  • c741e86: Improve Brand and Flavor to handle all types.
    Added Branded and Flavored interface to improve their rendering in IDE.

v6.4.0

03 Apr 00:15
Compare
Choose a tag to compare

Minor Changes

  • bcc4b09: Adding a new set of types for type-level programming.

    • IsAnyOrNever
    • AnyType, IsAny, NotAnyType, IsNotAny
    • NeverType, IsNever, NotNeverType, IsNotNever
    • StrictBooleanType, IsStrictBoolean, NotStrictBooleanType, IsNotStrictBoolean
    • BooleanType, NotBooleanType, IsNotBoolean
    • TrueType, IsTrue, NotTrueType, IsNotTrue
    • FalseType, IsFalse, NotFalseType, IsNotFalse
    • ObjectType, IsObject, NotObjectType, IsNotObject
    • StrictFunctionType, IsStrictFunction, NotStrictFunctionType, IsNotStrictFunction
    • FunctionType, IsFunction, NotFunctionType, IsNotFunction
    • UndefinedType, IsUndefined, NotUndefinedType, IsNotUndefined
    • NumberType, IsNumber, NotNumberType, IsNotNumber
    • StrictNumberType, IsStrictNumber, NotStrictNumberType, IsNotStrictNumber
    • StringType, IsString, NotStringType, IsNotString
    • StrictStringType, IsStrictString, NotStrictStringType, IsNotStrictString
    • SymbolType, IsSymbol, NotSymbolType, IsNotSymbol
    • BigIntType, IsBigInt, NotBigIntType, IsNotBigInt
    • StrictBigIntType, IsStrictBigInt, NotStrictBigIntType, IsNotStrictBigInt
    • VoidType, IsVoid, NotVoidType, IsNotVoid
    • UnknownType, IsUnknown, NotUnknownType, IsNotUnknown
    • Positive, IsPositive, NotPositive, IsNotPositive

    Adding a new testType for testing.
    It provides better testing support compares to isType and assertType.

    Improve:

    • Equal: to support all known scenarios.

v6.3.0

21 Mar 06:28
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v6.2.0

20 Mar 08:23
Compare
Choose a tag to compare

Minor Changes

  • bc82e90: Fix number types to support never correctly.

    Add IsInteger, Positive.

Patch Changes

  • 23fd42a: Fix NumberType to handle any and union.

v6.1.0

19 Mar 22:28
Compare
Choose a tag to compare

Minor Changes

  • b640352: Add ArrayType<A>

  • 569ff77: Export Concat under ArrayPlus.

  • 15257ec: Add ArrayPlus.IsIndexOutOfBound<A, N>

  • 82bed0e: Add ArrayPlus.IndexAt.

    Update At to use IndexAt to get consistent results.

  • 015d046: Fix IsAny and add to AnyType.
    Now using the same mechanism from ts-essentials.

  • 3ff303c: Add NumberType<T>

Patch Changes

  • 812949b: Default CreateTuple<_, T> to unknown.

    With TypeScript 5.0, the tuple size limit is now 9999.

  • 52d6200: Clean up type imports.
    Use Awaited instead of PromiseValue.

v6.0.0

17 Mar 08:22
Compare
Choose a tag to compare

Major Changes

  • 3a01eb6: CJS target upgraded to ES2020

Minor Changes

  • 35b489d: Add the following:

    • isType.never
    • Numeric
    • Zero
    • Integer
    • Negative
    • NonNegative
    • NumberPlus.Numeric
    • NumberPlus.Zero
    • NumberPlus.Integer
    • NumberPlus.Negative
    • NumberPlus.NonNegative
    • At
    • ArrayPlus.At
    • ArrayPlus.Concat

Patch Changes

  • 33b78a7: Add module field for webpack 4 compatibility.

v5.6.0

24 Jan 02:37
Compare
Choose a tag to compare

Minor Changes

  • 15443f6: stub.build() now supports an initializer function.
    This allows the init value to be randomized.