Skip to content

Releases: unional/type-plus

type-plus@8.0.0-beta.2

25 Mar 02:46
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • f982121: Update to require typescript 5.4.

Patch Changes

  • 4ae069b: Fix IsPositive<number & { a: 1 }> should return boolean
  • 7227250: Simplify Omit type as the simpler code is working with typescript 5.4
  • 8901e75: Work around excessive stack depth error in TS 5.4 for type Zeros.
  • b480c6c: Update some docs under numerics
  • 3d56d1a: Fix IsInteger<number & { a: 1 }> should returns boolean
  • cc94afd: Fix IsNegative<number & { a: 1 }> should return boolean

type-plus@7.6.2

17 Mar 03:41
Compare
Choose a tag to compare

Fixed excessive stack depth error around Zeros type #427 by @ehoogeveen-medweb

Simplify Omit type as the simpler code is working with typescript 5.4

type-plus@8.0.0-beta.0

13 Sep 05:56
Compare
Choose a tag to compare
Pre-release

Major Changes

  • 2a0d791: Rename case* to $* to make them easier to use.
  • 0616400: Update and release as ESM package only.

Minor Changes

  • afac18a: Add IsStrictObject<T> type.

  • b98ed6d: Accept readonly for array.
    Add ArrayPlus.IsReadonly.

    Fix ArrayPlus.Reverse to support readonly.

  • 69c5409: Add Merge<A, B> and ObjectPlus.Merge<A, B>

  • de54957: Add customize support for ArrayPlus.Filter

  • 7116392: Add Box<T> to box primitive types to their boxed types.

Patch Changes

  • 3ed4dce: Optimize SplitAt by moving never check of DeleteCount to the top.

  • 5535a4a: fix IsArray<never[]>

  • d852d76: Add docs for ArrayPlus.IsReadonly.

    The following are internal changes thus not considered a breaking change:

    • Replace MergeOptions/MergeCases with TypePlusOptions.Merge.
    • Rename TypePlusOptions.Predicate to TypePlusOptions.Selection.

type-plus@7.6.0

08 Jul 20:52
Compare
Choose a tag to compare

Minor Changes

  • 036094b: Support Delete and Insert for SplitAt.

Patch Changes

type-plus@7.5.0

05 Jul 07:57
Compare
Choose a tag to compare

Minor Changes

  • 4f1e6e8: Add UnionType and IsUnion

  • 1bee392: Improve FindFirst and ArrayPlus.Find to support union_miss and never cases,
    and some bug fixes.

  • b3d0af0: Export the improved Required type.

  • bc535d4: Support customization for Head and Tail

  • d2f97ca: Add options support for:

    • TupleType, IsTuple, NotTupleType, IsNotTuple
    • DropFirst, DropLast,
    • FindFirst, ArrayPlus.FindFirst, TuplePlus.FindFirst

    Add MergeOptions.
    Add NotUnknownOr (all use cases are handled by MergeOptions at the moment)

  • 94bb1c0: Improve FindFirst,
    add ArrayPlus.Find and TuplePlus.Find

  • 4e7e310: Clean up CommonPropKeys.

    Add ArrayPlus.CommonPropKeys and TuplePlus.CommonPropKeys.
    Add support of caseNever.

  • 7a647ca: Support override never case for TupleType, IsTuple, IsNotTuple, and NotTupleType

Patch Changes

  • 91211c9: Rename caseNoMatch to caseNotMatch.
    Rename caseUnionMiss to caseUnionNotMatch.

    Change caseUnionNotMatch default from undefined to never,
    making it defaults to the type behavior instead of JavaScript behavior.

  • 8a60488: Move TestType under testType so that it is exported

type-plus@7.4.0

03 Jul 02:16
Compare
Choose a tag to compare

Minor Changes

  • b55a61d: Deprecate drop() as it does not sufficiently support the needed types.
  • cb2c686: Add extends(), union(), intersect(), union_*, intersect_* to InspectedType.

Patch Changes

  • 8115873: Separate Filter and PadStart for array and tuple
  • 9f08f56: Improve Head and Last to support empty_tuple override
  • 9f08f56: Improve IntersectOfProps to work with array just for completeness.
  • 8101816: Improve DropFirst and DropLast to support overriding cases.
  • 58da4b3: Update export field to export ./package.json.
  • 2454ab2: Improve CommonPropKeys

type-plus@7.3.1

01 Jul 18:10
Compare
Choose a tag to compare

Patch Changes

  • 90eb2a4: Update package.json try fixing readme references

type-plus@7.3.0

01 Jul 17:00
Compare
Choose a tag to compare

Minor Changes

  • e8547eb: Add IsOptionalKey<T, K>.
  • bd6c695: Add OptionalProps<T>.
    Improve OptionalKeys<T> and IsOptionalKey<T, K>
  • d3faa0b: Add OptionalKeys<T>

Patch Changes

  • d214ce6: Improve testType.inspect<T>(fn) to provide more information about T.

    Not consider as breaking change as the function is not expected to be use in any code.

type-plus@7.2.1

26 Jun 04:35
Compare
Choose a tag to compare

Patch Changes

  • 6be5fa7: Improve IsLiteral type to support boolean, bigint, and symbol.
  • 0f0b9f8: Improve LeftJoin type behavior.

type-plus@7.2.0

25 Jun 05:27
Compare
Choose a tag to compare

Minor Changes

  • a52cce0: Add testType.inspect<T>(fn) for easy type inspection.