Normalizr Versions Save

Normalizes nested JSON according to a schema

v2.3.0

7 years ago
  • Adds ability to use functions to get schema (#159)
  • Adds key value to idAttribute function signature (#155)
  • Fixes some issues with typescript file locations (#178)

v2.2.0

7 years ago
  • Added Type declarations #84
  • Added Ability to set default values for missing keys #117

v2.1.0

7 years ago
  • Adds meta property to EntitySchema #89 by @frankwallis
  • Adds assignEntity property option to EntitySchema #104
  • Updates lodash requirement #100

v2.0.2

7 years ago
  • No-Op update. House-keeping related to the move from gaearon/normalizr to paularmstrong/normalizr

v2.0.1

8 years ago
  • Hopefully works around a GC bug in Safari where some entities would disappear and cause crashes in production (#82)
  • Custom assignEntity now has access to the original object (#72, #64)

v2.0.0

8 years ago

Breaking Changes

  • Now internally using Lodash 4.0, so support for IE < 9 is removed. This is aligned with other libraries, e.g. React 15 also drops it, and Microsoft has officially stopped supporting IE 8 a few days ago. (https://github.com/gaearon/normalizr/pull/52)

New Features

  • Adds support for polymorphic fields via unionOf(schemaMap, options) which works like the polymorphic support for arrayOf and valuesOf but for non-collection fields (#40).
  • Adds an official getIdAttribute() method that existed in v1.0.0, as well as getKey(), to the Schema prototype. (https://github.com/gaearon/normalizr/pull/48)

v1.4.1

8 years ago

v1.4.0

8 years ago
  • Adds the ability to specify a custom mergeIntoEntity function configurable in options (#34, #35)

v1.3.1

8 years ago
  • Objects with ids equal to Object prototype method names no long confuse normalizr (#32, #33)

v1.3.0

8 years ago
  • Adds valuesOf(schema, [options]) that works like arrayOf(), but constraints object property values instead of array items. (#28, #29)