...
- Fix handling of null targets
-
Lenses and placeholder selectors are now functions:
[{x: 1}, {x: 2}].map(_.x) // [1, 2] const xy = lens(_.x.y) xy({x: {y: 1}}) // 1
- Simplified untyped syntax:
lens(_.x)
instead oflens(_ => _.x)
. The_
object is "placeholder selector" proxy.
- Fixed
.set
(wasn't preserving original properties of objects) - Added basic support for
Immutable.Map
(uses its.setIn
,.updateIn
methods)
- Better naming:
update
becomesset
, introduced anupdate
method that takes an updater function.
- Added support for nested structures:
lens(_ => [_.x, {a: _.y, b: _.z}])
- First basic usable milestone.