Releases: sylvainpolletvillard/ObjectModel
Releases · sylvainpolletvillard/ObjectModel
v1.2.0
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 descriptionvalidate
API has changed and now receives an optional error collector
v2.0.0
- 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
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
- v1.0
- added
model.validate
andmodel.test
- moved conventions to overridable exposed functions
- preserve object properties out of model definition at instanciation
- aligned array models constructors with other models behaviour