Skip to content

Releases

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 22 Oct 22:14
43f136c

Patch Changes

  • f5d4c90: Added Development and Releasing sections to the README: the scripts, how to run the benchmarks and how a release reaches npm (no code changes)

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 16:43
7a22f00

Major Changes

  • 1fc1431: update() reads only own props: 'toString.value' and 'constructor.prototype.x' create those props (were read from Object.prototype, and 'constructor.prototype' paths could change it for the whole app)
  • 1fc1431: update() throws on paths with 'proto' (was changing the prototype of the copy)

Patch Changes

  • 2358030: update() is faster on nested paths (1.5x to 2x at depth 3 and more, same results): each level slices the path instead of joining its keys again, and one-path updates skip the tracker of copied paths
  • 1fc1431: isStringIndex('NaN') returns false and parseStringIndex('NaN') returns null (were true and NaN)
  • 1fc1431: 'skip' in onNewProps, onNewIndexes and onPathsIntersectedByPrimitiveValues skips only that path, at any depth (looped forever when the new prop, index or primitive was in the middle of the path)

v2.11.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 00:41

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)

v2.10.0

Choose a tag to compare

@github-actions github-actions released this 06 Jan 14:32
9945b47

Minor Changes

  • 8f2d7d3: added strictness to callbacks in update value, changed name of ensureStrictness to strictValueWrapper

Patch Changes

  • e821a7d: added additional export to strict function as "strict" name

v2.9.0

Choose a tag to compare

@github-actions github-actions released this 06 Jan 02:23
43cfe47

Minor Changes

v2.8.4

Choose a tag to compare

@github-actions github-actions released this 02 Jan 18:01
1168b91

Patch Changes

  • c822e9c: improved "remove" function

v2.8.3

Choose a tag to compare

@github-actions github-actions released this 02 Jan 17:51
7dd536d

Patch Changes

  • 18136ef: added ObjectLiteral as export value and improved its type

v2.8.2

Choose a tag to compare

@github-actions github-actions released this 02 Jan 17:34
404dd22

Patch Changes

  • c3ab617: isStringIndex type narrowing
  • 4e63888: improved isObjectLiteral typing and type narrowing. Fixed update highlighting type issue in its second parameter.

v2.8.1

Choose a tag to compare

@github-actions github-actions released this 01 Jan 18:45
21940e4

Patch Changes

v2.8.0

Choose a tag to compare

@github-actions github-actions released this 01 Jan 01:41
2c01bb4

Minor Changes

  • dcebe1e: added strictCallback, improved flexibility in the update function