Releases: unional/type-plus
[email protected]
Minor Changes
- 335b870: Rename
$ExactOptions
to$Exact.Options
,
$ExactDefault
to$Exact.Default
,
$IsExact
to$Exact.Parse
- 4b2b89c: Replace
Equal
with the new$Equal
type. - d418300: Rename
$IsDistributive
to$Distributive.Parse
. - 1debfc2:
$Equality
to$Equal
. - 407b3d3: Deprecate
NoInfer
. - 3d70869: Remove
$Override
. It is not needed. - abdc5fe: Update bit types
- 53f6c0b: Consolidate
$Selection
types. - 1c7bab7: Deprecate
Failed
andFailedT
. - 2ed6063: Update
$Type
to work with primitive types and improve object type usage. - 19663d7: Rename
$SpecialType
to$Special
. - f09ef4d: Add
$Void
support. - d5e732a: Update
Equal
signature and implementation.
DeprecateIsEqual
andIsNotEqual
in favor ofEqual
. - 5263e8f: Rename
$DistributiveOptions
to$Distributive.Options
and$DistributiveDefault
to$Distributive.Default
. - 51a7bea: Rename
$Select
to$Equal
.
Remove$SelectStrict
, use$Equal<T, U, { exact: true }>
instead. - b150471: Updato logical types.
- ed723c7: Add
$Void
support toIsAny
andIsNotAny
. - c56d4a0: Change
$ResolveBranch
type parameters order.
T
is moved to the last position asD
(as it is the default value), and made optional. - b364e73: Export
$Exact
.
Patch Changes
[email protected]
Minor Changes
- cb37ca4: Add
AdjustExactOptionalProps
.
[email protected]
Minor Changes
- 17bf492: Remove
$Exact
namespace.
$Exact.$Options
is now$ExactOptions
.
$Exact.$Default
is now$ExactDefault
.
$Exact.$IsExact
is now$IsExact
.
Patch Changes
[email protected]
Minor Changes
- 2d4d9b4: Reintroduce CJS support.
[email protected]
Patch Changes
-
bbe256c: Remove
exports.default
inpackage.json
.That provide the wrong file to systems expecting CJS.
May need to add a different one for browser-spec.
[email protected]
Minor Changes
- f982121: Update to require typescript 5.4.
Patch Changes
- 4ae069b: Fix
IsPositive<number & { a: 1 }>
should returnboolean
- 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 returnsboolean
- cc94afd: Fix
IsNegative<number & { a: 1 }>
should returnboolean
[email protected]
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
[email protected]
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.
AddArrayPlus.IsReadonly
.Fix
ArrayPlus.Reverse
to supportreadonly
. -
69c5409: Add
Merge<A, B>
andObjectPlus.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 ofDeleteCount
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
withTypePlusOptions.Merge
. - Rename
TypePlusOptions.Predicate
toTypePlusOptions.Selection
.
- Replace
[email protected]
[email protected]
Minor Changes
-
4f1e6e8: Add
UnionType
andIsUnion
-
1bee392: Improve
FindFirst
andArrayPlus.Find
to supportunion_miss
andnever
cases,
and some bug fixes. -
b3d0af0: Export the improved
Required
type. -
bc535d4: Support customization for
Head
andTail
-
d2f97ca: Add options support for:
TupleType
,IsTuple
,NotTupleType
,IsNotTuple
DropFirst
,DropLast
,FindFirst
,ArrayPlus.FindFirst
,TuplePlus.FindFirst
Add
MergeOptions
.
AddNotUnknownOr
(all use cases are handled byMergeOptions
at the moment) -
94bb1c0: Improve
FindFirst
,
addArrayPlus.Find
andTuplePlus.Find
-
4e7e310: Clean up
CommonPropKeys
.Add
ArrayPlus.CommonPropKeys
andTuplePlus.CommonPropKeys
.
Add support ofcaseNever
. -
7a647ca: Support override
never
case forTupleType
,IsTuple
,IsNotTuple
, andNotTupleType