New
v3.0.0
The entire normalizr package has been rewritten from v2.x for this version. Please refer to the documentation for all changes.
Added
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 ]
Changed
Schemahas been moved to aschemanamespace, available atschema.EntityarrayOfhas been replaced byschema.Arrayor[]unionOfhas been replaced byschema.UnionvaluesOfhas been replaced byschema.Values
Removed
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