npm / ts-essentials
ts-essentials
What changed in ts-essentials 2 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
8 breaking3 deprecations22 new APIs and options4 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initts-essentials 1024 changes
Deprecations 3
Deprecates Exact and renames it to IsExact.
Deprecates NonEmptyArray and renames it to AnyNonEmptyArray.
Deprecates NonNever and renames it to OmitNeverProperties.
New APIs and options 12
Added the PublicInterface<Type> utility type.
Adds OverrideDeepReadonlyOptions to configure passthrough behaviour for built-in types Date, Error, and RegExp per use-case.
Adds Iterable support for DeepWritable.
Adds the JsonValue utility type, along with JsonPrimitive, JsonObject, and JsonArray.
Adds the NonUnion utility type.
Adds the RequireAtLeastOne utility type.
Adds the RequireAtMostOne utility type.
Adds the UnionKeys utility type.
Added a type for accessing object properties and array or tuple indices.
Added a strict deep omit utility type that supports generic types.
Added a strict deep pick utility type that supports generic types.
XOR now supports variadic use with up to 50 generic types.
Behavior and default changes 3
Adds Iterable support for DeepReadonly.
The generic constraint on the second type parameter was removed.
Now supports union types for arrays, tuples, objects, and primitives.
Fixes and other changes 6
Fixes DeepPartial for arrays containing a rest element.
Fixes IsTuple for tuples with both optional elements and a rest element.
Fixes Prettify when its type argument is a class with private or protected members.
Fixes assignability for UnionKeys.
Fixes assignability for UnionToIntersection.
Now supports types which explicitly extend Array inside types passed to DeepRequired.
ts-essentials 94 changes
Breaking changes 1
TypeScript ^4.1.0 is required because the release uses recursive conditional types.
New APIs and options 3
Adds the isExact function.
Adds IsNever, which returns true if a type is never and false otherwise.
Adds IsUnknown, which returns true if a type is unknown and false otherwise.
ts-essentials 84 changes
New APIs and options 2
Adds MergeN, which recursively applies Merge to a tuple of size N.
Adds StrictExtract to check the original structure of a type and extract it correctly.
Behavior and default changes 1
DeepReadonly now supports the unknown type.
Fixes and other changes 1
IsTuple now works with tuples of any length.
ts-essentials 73 changes
Breaking changes 2
The order of Opaque's arguments changed, which is a breaking change for code using the type.
SafeDictionary now works with finite types in an expected way; the change is marked as breaking.
New APIs and options 1
A Newable type was added.
ts-essentials 62 changes
Breaking changes 1
Support for ReadonlyMaps and ReadonlySets was tweaked in a breaking change.
New APIs and options 1
SafeDictionary was added.
ts-essentials 52 changes
Breaking changes 1
Changed how DeepPartial works on arrays.
New APIs and options 1
A new XOR type was added.
ts-essentials 42 changes
Breaking changes 1
TypeScript 3.7 is now required.
New APIs and options 1
An assert type was added.
ts-essentials 32 changes
Breaking changes 1
TypeScript 3.5 is now required.
Fixes and other changes 1
Deep types were improved.
ts-essentials 22 changes
Breaking changes 1
The NonNullable type was removed, which is a breaking change for code that uses it.
New APIs and options 1
A new Writable type was added.