Skip to content

Releases: unional/type-plus

type-plus@8.0.0-beta.6

27 Sep 18:35
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • cb37ca4: Add AdjustExactOptionalProps.

type-plus@8.0.0-beta.5

26 Sep 11:38
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • 17bf492: Remove $Exact namespace.
    $Exact.$Options is now $ExactOptions.
    $Exact.$Default is now $ExactDefault.
    $Exact.$IsExact is now $IsExact.

Patch Changes

  • ac73d79: Removing incorrect usage of the typesVersions field in package.json.
  • 1e5108d: Add SubUnion type.
  • 37e47dc: Remove $Exact branch type. It is not needed anymore.

type-plus@8.0.0-beta.4

02 Aug 09:09
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • 2d4d9b4: Reintroduce CJS support.

type-plus@8.0.0-beta.3

27 Jul 00:31
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • bbe256c: Remove exports.default in package.json.

    That provide the wrong file to systems expecting CJS.
    May need to add a different one for browser-spec.

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