Closed ForbesLindesay closed 3 years ago
Uses Object.create(null) to create placeholder objects
Object.create(null)
This prevents the possibility of prototype polution
Added the Named type
Named
This lets you add a name to an existing type for when that type is printed in error messages.
Better error messages for Unions of Intersect
Support Record types created using Object.create(null)
Record
This fixes a prior incompatibility with some toml/yaml parsers.
Edit changelog
Change Log for funtypes (3.0.2 → 4.0.0)
Breaking Changes
Uses
Object.create(null)
to create placeholder objectsThis prevents the possibility of prototype polution
New Features
Added the
Named
typeThis lets you add a name to an existing type for when that type is printed in error messages.
Better error messages for Unions of Intersect
Bug Fixes
Support
Record
types created usingObject.create(null)
This fixes a prior incompatibility with some toml/yaml parsers.
Edit changelog