Skip to content

Releases: skunkteam/types

v8.0.1

09 Oct 13:35
857d64e
Compare
Choose a tag to compare

8.0.1 (2024-10-09)

Bug Fixes

  • validation messages now refer to the used type (#97) (857d64e)

v8.0.0

09 Oct 12:12
Compare
Choose a tag to compare

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

06 May 13:44
2751bad
Compare
Choose a tag to compare

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

26 Oct 10:02
e6521cf
Compare
Choose a tag to compare

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

27 Sep 17:40
64e6975
Compare
Choose a tag to compare

5.0.1 (2023-09-27)

Bug Fixes

  • remove peer dependency from package.json (#83) (64e6975)

v5.0.0

28 Sep 06:21
d686e97
Compare
Choose a tag to compare

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

30 Aug 15:59
Compare
Choose a tag to compare

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

16 Jun 10:05
8d3f17f
Compare
Choose a tag to compare

4.3.0 (2023-06-16)

Features

  • support TypeScript up to version 5.1.3 (#73) (8d3f17f)

v4.2.0

23 Jun 09:19
4c61376
Compare
Choose a tag to compare

4.2.0 (2022-06-23)

Features

v4.1.0

02 Jun 14:40
Compare
Choose a tag to compare

4.1.0 (2022-06-02)

Bug Fixes

  • disregard discriminators with overlapping domains (bff9e25)

Features

  • improved error diagnostic and message with keyof (ba8fcad)
  • support discriminators with multiple possible literal values (bf0d32b)