PNW-TechPros / js-natural-lenses

A JavaScript-native lens (and ancillary optics) system loosely based on Kmett-style lenses.
MIT License
3 stars 0 forks source link

Allow locking datum plans to one specific version of lens property names #27

Closed rtweeks closed 2 years ago

rtweeks commented 2 years ago

As of 2.2.0, addition of properties to the Optic or Lens classes can lead to breaking changes for minor version upgrades (if the consumer's datum plan specification includes a property with a newly introduced property of Lens). This feature would provide an option when building the datum plan in which the consumer can specify the version of natural-lenses whose Lens properties would take priority of their datum plan specification's properties in deconfliction, with later-introduced methods of Lens being deprioritized.