Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: ts-essentials/ts-essentials

v10.1.1

12 Jun 21:22
e3d0301

Choose a tag to compare

Patch Changes

  • 8ae038e: Fix DeepReadonly<Type> & DeepRequired<Type> types when Type is an array containing rest element, like
    [string, ...number[]]

v10.1.0

08 Jun 22:01
bf8befc

Choose a tag to compare

Minor Changes

  • 39d315e: Implement DeepMarkRequired utility type that constructs a type by picking all properties from type Type
    where properties by paths KeyPathUnion are set as required
  • f7c2c36: Implement DeepMarkOptional utility type that constructs a type by picking all properties from type Type
    where properties by paths KeyPathUnion are set as optional

v10.0.4

26 Dec 13:46
4233566

Choose a tag to compare

Patch Changes

  • ecb490b: Head<Type> no longer includes an extraneous | undefined when instantiated with a union of empty and
    non-empty tuple, like [] | [1, 2]
  • 859d85c: MarkOptional<Type, Keys> is now assignable to Partial<Type>
  • dda4def: Tail<Type> now works with readonly arrays and also correctly returns the tail for tuples with all optional
    members. Additionally, it now acts as an identity for non-tuple arrays, i.e., it returns Type when Type is a
    non-tuple array, such as string[], number[], etc.
  • d02bf22: Fix MarkRequired<Type, Keys> & MarkWritable<Type, Keys> types when Keys is any
  • d3b56d7: Prettify the output of Mark-* and Merge types

v10.0.3

01 Nov 13:16
8fd5cdf

Choose a tag to compare

Patch Changes

  • cc7b838: ReadonlyKeys<Type> and WritableKeys<Type> now return only the readonly and writable keys, respectively,
    for arrays and tuples
  • d6867ea: Prettify<Type> returns the same type when the type parameter is a function
  • bc51ac5: OptionalKeys<Type> returns never for primitives and returns only optional indices for arrays and tuples
  • d0ad79f: Improve Paths performance by limiting the depth of paths to 7 (default)
  • 162fd9d: Add Paths<Type, { anyArrayIndexAccessor: '*' }>, a string literal representing a catch-all or "wildcard"
    when indexing on arrays.

v10.0.2

13 Aug 07:56
52e61f3

Choose a tag to compare

Patch Changes

  • 490712c: Deprecated DictionaryValues in favour of ValueOf
  • c311536: Added a support of interfaces for PathValue

v10.0.1

20 Jun 20:01

Choose a tag to compare

Patch Changes

  • 365612c: Use key remapping in PickKeys, OmitProperties and PickProperties that reduced the number of
    instantiations by ~20-40% on average
  • 39eb424: Remove XOR union element with all properties excluded from the intersection

v10.0.0

01 May 19:22
0ab051e

Choose a tag to compare

Major Changes

  • b127a8a: Use TypeScript@^4.2.0 because of excessively deep and possibly infinite type instantiation limitation for
    PathValue and Paths
  • 26be790: Fixed assignability of Mark* utility types which required removing support of TypeScript@<4.5
  • 9935d80: Added StrictDeepOmit and StrictDeepPick that support generic type and removed generic constraint on the
    second type parameter of DeepOmit and DeepPick

Minor Changes

  • 5b7650a: Add variadic XOR, up to 50 generic types
  • b127a8a: Implement Paths and PathValue to access object properties, array/tuple indices

Patch Changes

  • d2dbcf9: Added CONVENTIONS.md for reliable, consistent and predictable development
  • ed57101: Add support for types which explicitly extend Array inside types passed to DeepRequired.
  • 25f3f60: Add support of union types for arrays, tuples, objects and primitive in isExact

v9.4.2

06 Apr 18:45
8e625d9

Choose a tag to compare

Patch Changes

  • f88f757: Add TypeScript 5.3 and 5.4 support (fix a bug with WeakKey for WeakSet and WeakMap)

v9.4.1

05 Oct 21:31
852a08f

Choose a tag to compare

Patch Changes

  • bc3c474: Fix regression in TypeScript 5.1 with CamelCase

v9.4.0

27 Aug 20:22
e1cb90a

Choose a tag to compare

Minor Changes

  • ddb1bea: Make typescript optional as a peer dependency