Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Releases: paularmstrong/normalizr

v2.3.0

07 Dec 17:41
Compare
Choose a tag to compare
  • 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

14 Jul 15:31
Compare
Choose a tag to compare
  • Added Type declarations #84
  • Added Ability to set default values for missing keys #117

v2.1.0

12 May 18:04
Compare
Choose a tag to compare
  • Adds meta property to EntitySchema #89 by @frankwallis
  • Adds assignEntity property option to EntitySchema #104
  • Updates lodash requirement #100

v2.0.2

10 May 17:58
Compare
Choose a tag to compare
  • No-Op update. House-keeping related to the move from gaearon/normalizr to paularmstrong/normalizr

v2.0.1

30 Mar 19:35
Compare
Choose a tag to compare
  • 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

13 Jan 10:57
Compare
Choose a tag to compare

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. (#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. (#48)

v1.4.1

01 Jan 22:17
Compare
Choose a tag to compare
  • Removes all unnecessary files from npm package, including .babelrc. This fixes React Native support. (#43)

v1.4.0

28 Oct 11:39
Compare
Choose a tag to compare
  • Adds the ability to specify a custom mergeIntoEntity function configurable in options (#34, #35)

v1.3.1

22 Oct 18:46
Compare
Choose a tag to compare
  • Objects with ids equal to Object prototype method names no long confuse normalizr (#32, #33)

v1.3.0

16 Oct 19:21
Compare
Choose a tag to compare
  • Adds valuesOf(schema, [options]) that works like arrayOf(), but constraints object property values instead of array items. (#28, #29)