- Fixed Add types for fallback strategy
- Chore Upgraded development dependencies
- Added
fallbackStrategyfor denormalization (#422) - Fixed entities can be
undefinedin TS defs if none found (#435)
- Added ability to dynamically set nested schema type (#415)
- Changed Enable loose transformation for object spread operator to improve performance (#431)
- Fixed don't use schema to attribute mapping on singular array schemas (#387)
- Fixed When normalize() receives null input, don't say it is an object (#411)
- Fixed Improve performance of circular reference detection (#420)
- Changed Now built with Babel 7
- Added Support for circular references (gh-335)
- Added Symbols are valid keys for Entity keys (gh-369)
- Added/Changed Typescript definitions include generics for
normalize(gh-363) - Fixed denormalization skipping of falsy valued ids used in
Objectschemas (gh-345) - Chore Update dev dependencies
- Chore Added Greenkeeper
- Added ES Module builds
- Fixed type error with typescript on array+object shorthand (gh-322)
- Added Support denormalizing from Immutable entities (gh-228)
- Added Brought back
get idAttribute()toschema.Entity(gh-226) - Fixed Gracefully handle missing data in
denormalize(gh-232) - Fixed Prevent infinite recursion in
denormalize(gh-220)
- Added
denormalize. (gh-214) - Changed No longer requires all input in a polymorphic schema (
Array,Union,Values) have a matching schema definition. (gh-208) - Changed Builds do both rollup and plain babel file conversions.
"main"property in package.json points to babel-converted files.
The entire normalizr package has been rewritten from v2.x for this version. Please refer to the documentation for all changes.
schema.EntityprocessStrategyfor modifyingEntityobjects before they're moved to theentitiesstack.mergeStrategyfor merging with multiple entities with the same ID.
- Added
schema.Object, with a shorthand of{} - Added
schema.Array, with a shorthand of[ schema ]
Schemahas been moved to aschemanamespace, available atschema.EntityarrayOfhas been replaced byschema.Arrayor[]unionOfhas been replaced byschema.UnionvaluesOfhas been replaced byschema.Values
normalizeno longer accepts an optionaloptionsargument. All options are assigned at the schema level.- Entity schema no longer accepts
defaultsas an option. Use a customprocessStrategyoption to apply defaults as needed. assignEntityhas been replaced byprocessStrategymetaoption. SeeprocessStrategy