Skip to content

Releases: papb/tree-shortcut

v2.0.0

24 Jan 19:03
Compare
Choose a tag to compare

Breaking

  • Drop support for Node.js 10
  • Require TS 4.1 or above

Fixes

  • Fixed the algorithm on some edge-cases:

    • When the tree contains an array with mixed plain-objects and other values, such as [3, 4, { foo: true }, null]
    • When the shortcut target prop exists on a non-plain-object, such as setTime for Dates
    • TypeScript only: readonly modifiers are handled properly now
  • Fixed detailed algortithm explanation on readme

Internal improvements

  • Switch from xo to @papb/linter
  • Add more keywords to package.json
  • Add TS compatibility tests for 4.1, 4.2, 4.3, 4.4 and 4.5 on CI

v1.1.0...v2.0.0

v1.1.0

19 Sep 13:15
Compare
Choose a tag to compare

Changes

  • Accept a non-tree as input (returning it directly).
    • This is useful if you have for example a tree that could be undefined. In that case treeShortcut will gracefully return undefined as well.

Commits

  • Handle non-trees gracefully 31e345c

v1.0.2...v1.1.0

v1.0.2

16 Sep 19:01
Compare
Choose a tag to compare

Changes

  • The 1.0.1 release had packing issues. This release is fixed, with correct size (15.8 kB).

Commits

  • Don't use Yarn to release fe0c109

v1.0.1...v1.0.2

v1.0.1

16 Sep 18:42
Compare
Choose a tag to compare

Fixes

  • Correctly handle non-plain objects (such as dates)

Commits

v1.0.0...v1.0.1