Skip to content

Releases: sylvainpolletvillard/ObjectModel

v1.2.0

10 Jul 14:00
Compare
Choose a tag to compare
  • null is now a valid value for an optional property
  • stack errors instead of throwing the first error catched
  • added custom error collectors
  • assert API has changed and now receives an optional description
  • validate API has changed and now receives an optional error collector

v2.0.0

10 Jul 13:57
Compare
Choose a tag to compare
  • support for IE<11 had to be dropped (explainations)
  • removed Model.instanceOf as it is not useful anymore: use the instanceof operator
  • reduced the library size by ~ 20%

v1.1.0

10 Jul 14:01
Compare
Choose a tag to compare
  • model.extend can now take models and/or models definitions as arguments
  • fixed some issues with object deep merging on model extensions
  • make array models keys enumerable

v1.0.0

10 Jul 14:02
Compare
Choose a tag to compare
v1.0
added model.validate and model.test
moved conventions to overridable exposed functions
preserve object properties out of model definition at instanciation
aligned array models constructors with other models behaviour