Releases: unional/type-plus
[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
Patch Changes
[email protected]
Minor Changes
- b55a61d: Deprecate
drop()
as it does not sufficiently support the needed types. - cb2c686: Add
extends()
,union()
,intersect()
,union_*
,intersect_*
toInspectedType
.
Patch Changes
- 8115873: Separate
Filter
andPadStart
for array and tuple - 9f08f56: Improve
Head
andLast
to support empty_tuple override - 9f08f56: Improve
IntersectOfProps
to work with array just for completeness. - 8101816: Improve
DropFirst
andDropLast
to support overriding cases. - 58da4b3: Update export field to export
./package.json
. - 2454ab2: Improve
CommonPropKeys