xogroup / felicity

Javascript object constructors and sample data based on Joi schema.
Other
111 stars 9 forks source link

3.0.0 Release Notes #144

Closed WesTyler closed 6 years ago

WesTyler commented 6 years ago

Summary

This release changes default Constructor input validation behavior and drops support for Node 4.x (EOL for nearly 6mo now) and Node 6.x (maintenance LTS only) and updates dependencies, including updating from Joi@11 to Joi@13.

I will continue to backport bug and security fixes to the 2.x line until Node 6.x drops out of Maintenance LTS (Spring 2019).

Breaking Changes

As described in #145 , the default behavior of entityFor constructors was to always run Joi validation and strip unknown object keys and invalid array items from the input. This makes sense in the context of the validateInput: true option, but leads to confusing results when input validation is not desired. This release removes that layer of validation unless validateInput is explicitly passed as true.