Releases: skunkteam/types
Releases · skunkteam/types
v8.2.0
8.2.0 (2024-10-17)
Features
- add
pick
and omit
methods to InterfaceType
(f059fe4)
v8.1.0
8.1.0 (2024-10-17)
Bug Fixes
- no more warning for overlapping properties with exact same type (#100) (974f1ee)
Features
- option to generate default TypeScript-like name for some methods (#98) (d607cdc)
- support generators as
Validator
s in withValidation
(6532a50)
v8.0.1
8.0.1 (2024-10-09)
Bug Fixes
- validation messages now refer to the used type (#97) (857d64e)
v8.0.0
8.0.0 (2024-10-09)
Features
- add merge operation to interface types (8e41a1b)
- Rename
PropertyInfo#partial
to #optional
(3f22b88)
BREAKING CHANGES
ObjectType#propsInfo
elements had a partial
property. This is renamed to optional
, because that better reflects its meaning.
InterfaceType#withOptional(...)
no longer returns an IntersectionType
, but an InterfaceType
instead. Should cause no issues when upgrading, but some consumer code might depend on it. It is still possible to manually create an IntersectionType
using intersection(...)
. There are also some minor type changes to make all that possible.
v7.0.0
7.0.0 (2024-05-06)
Bug Fixes
- stop
or()
union constructor from stripping branding (#88) (2751bad)
BREAKING CHANGES
- union types built with the
.or()
constructor are now
possibly stricter as the branding is not unintentionally stripped anymore.
v6.0.0
6.0.0 (2023-10-26)
Bug Fixes
- correct inference of arrays of branded literal types (#85) (e6521cf)
BREAKING CHANGES
- This changes the meaning of the type parameter of the
array
function.
v5.0.1
5.0.1 (2023-09-27)
Bug Fixes
- remove peer dependency from package.json (#83) (64e6975)
v5.0.0
5.0.0 (2023-09-27)
Features
- support TypeScript up to version 5.2 (#82)
BREAKING CHANGES
- Support for TypeScript 5.0 and lower has been dropped.
v4.4.0
4.4.0 (2023-08-30)
Features
- fast typed stringify (#78) (16033c8)
- faster discriminated unions (#77) (a2a7b89)
- increase performance of
multipleOf
checks using big.js (#76) (f3a8767)
- type-guards are bound to the type-instance (#67) (84cb04b)
v4.3.0
4.3.0 (2023-06-16)
Features
- support TypeScript up to version 5.1.3 (#73) (8d3f17f)