changelogs.md


ochafik/es6-lenses

Repository  -  API  -  Source

0.4.1

  • Fix handling of null targets

0.4.0

  • 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
    

0.3.2

  • Simplified untyped syntax: lens(_.x) instead of lens(_ => _.x). The _ object is "placeholder selector" proxy.

0.3.1

  • Fixed .set (wasn't preserving original properties of objects)
  • Added basic support for Immutable.Map (uses its .setIn, .updateIn methods)

0.3.0

  • Better naming: update becomes set, introduced an update method that takes an updater function.

0.2.0

  • Added support for nested structures: lens(_ => [_.x, {a: _.y, b: _.z}])

0.1.9

  • First basic usable milestone.