Releases: papb/tree-shortcut
Releases · papb/tree-shortcut
Release list
v2.0.0
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
setTimefor Dates - TypeScript only:
readonlymodifiers are handled properly now
- When the tree contains an array with mixed plain-objects and other values, such as
-
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
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 casetreeShortcutwill gracefully returnundefinedas well.
- This is useful if you have for example a tree that could be
Commits
- Handle non-trees gracefully 31e345c