Skip to content

v2.11.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 00:41
· 16 commits to main since this release

Minor Changes

  • e901509: changed strictValueWrapper into strictType, more readable
  • 86a0a05: paths through optional or nullable objects now work in update() and select() ('address.city' with address?: { city }, 'manager.name' with manager: { name } | null)

Patch Changes

  • 86a0a05: select() now returns undefined when an object in the path is null or undefined (was throwing)
  • 86a0a05: KeyOf and DotPaths no longer add undefined for optional props, and DotPaths<T, string> now includes optional strings (were left out)
  • 86a0a05: ObjectLiteral no longer matches Promise, WeakMap or ArrayBuffer; KeyOf, Strict and DotPaths now treat File and Blob as values (KeyOf is never)
  • 86a0a05: fixed DotPaths failing as a circular type on TypeScript 5.4 and newer
  • 86a0a05: ValueInPath and ReturnedValueInPath now return never for a tuple position that doesn't exist ('point.5' on [number, number], was number)