|
| 1 | +# v3.5.0 |
| 2 | + |
| 3 | +- **Added** ability to dynamically set nested schema type (#415) |
| 4 | +- **Changed** Enable loose transformation for object spread operator to improve performance (#431) |
| 5 | +- **Fixed** don't use schema to attribute mapping on singular array schemas (#387) |
| 6 | +- **Fixed** When normalize() receives null input, don't say it is an object (#411) |
| 7 | +- **Fixed** Improve performance of circular reference detection (#420) |
| 8 | + |
1 | 9 | # v3.4.0
|
2 | 10 |
|
3 |
| -* **Changed** Now built with Babel 7 |
4 |
| -* **Added** Support for circular references (gh-335) |
5 |
| -* **Added** Symbols are valid keys for Entity keys (gh-369) |
6 |
| -* **Added/Changed** Typescript definitions include generics for `normalize` (gh-363) |
7 |
| -* **Fixed** denormalization skipping of falsy valued ids used in `Object` schemas (gh-345) |
8 |
| -* **Chore** Update dev dependencies |
9 |
| -* **Chore** Added Greenkeeper |
| 11 | +- **Changed** Now built with Babel 7 |
| 12 | +- **Added** Support for circular references (gh-335) |
| 13 | +- **Added** Symbols are valid keys for Entity keys (gh-369) |
| 14 | +- **Added/Changed** Typescript definitions include generics for `normalize` (gh-363) |
| 15 | +- **Fixed** denormalization skipping of falsy valued ids used in `Object` schemas (gh-345) |
| 16 | +- **Chore** Update dev dependencies |
| 17 | +- **Chore** Added Greenkeeper |
10 | 18 |
|
11 | 19 | # v3.3.0
|
12 | 20 |
|
13 |
| -* **Added** ES Module builds |
14 |
| -* **Fixed** type error with typescript on array+object shorthand (gh-322) |
| 21 | +- **Added** ES Module builds |
| 22 | +- **Fixed** type error with typescript on array+object shorthand (gh-322) |
15 | 23 |
|
16 | 24 | # v3.2.0
|
17 | 25 |
|
18 |
| -* **Added** Support denormalizing from Immutable entities (gh-228) |
19 |
| -* **Added** Brought back `get idAttribute()` to `schema.Entity` (gh-226) |
20 |
| -* **Fixed** Gracefully handle missing data in `denormalize` (gh-232) |
21 |
| -* **Fixed** Prevent infinite recursion in `denormalize` (gh-220) |
| 26 | +- **Added** Support denormalizing from Immutable entities (gh-228) |
| 27 | +- **Added** Brought back `get idAttribute()` to `schema.Entity` (gh-226) |
| 28 | +- **Fixed** Gracefully handle missing data in `denormalize` (gh-232) |
| 29 | +- **Fixed** Prevent infinite recursion in `denormalize` (gh-220) |
22 | 30 |
|
23 | 31 | # v3.1.0
|
24 | 32 |
|
25 |
| -* **Added** `denormalize`. (gh-214) |
26 |
| -* **Changed** No longer requires all input in a polymorphic schema (`Array`, `Union`, `Values`) have a matching schema definition. (gh-208) |
27 |
| -* **Changed** Builds do both rollup and plain babel file conversions. `"main"` property in package.json points to babel-converted files. |
| 33 | +- **Added** `denormalize`. (gh-214) |
| 34 | +- **Changed** No longer requires all input in a polymorphic schema (`Array`, `Union`, `Values`) have a matching schema definition. (gh-208) |
| 35 | +- **Changed** Builds do both rollup and plain babel file conversions. `"main"` property in package.json points to babel-converted files. |
28 | 36 |
|
29 | 37 | # v3.0.0
|
30 | 38 |
|
31 | 39 | The entire normalizr package has been rewritten from v2.x for this version. Please refer to the [documentation](/docs) for all changes.
|
32 | 40 |
|
33 | 41 | ## Added
|
34 | 42 |
|
35 |
| -* `schema.Entity` |
36 |
| - * `processStrategy` for modifying `Entity` objects before they're moved to the `entities` stack. |
37 |
| - * `mergeStrategy` for merging with multiple entities with the same ID. |
38 |
| -* Added `schema.Object`, with a shorthand of `{}` |
39 |
| -* Added `schema.Array`, with a shorthand of `[ schema ]` |
| 43 | +- `schema.Entity` |
| 44 | + - `processStrategy` for modifying `Entity` objects before they're moved to the `entities` stack. |
| 45 | + - `mergeStrategy` for merging with multiple entities with the same ID. |
| 46 | +- Added `schema.Object`, with a shorthand of `{}` |
| 47 | +- Added `schema.Array`, with a shorthand of `[ schema ]` |
40 | 48 |
|
41 | 49 | ## Changed
|
42 | 50 |
|
43 |
| -* `Schema` has been moved to a `schema` namespace, available at `schema.Entity` |
44 |
| -* `arrayOf` has been replaced by `schema.Array` or `[]` |
45 |
| -* `unionOf` has been replaced by `schema.Union` |
46 |
| -* `valuesOf` has been replaced by `schema.Values` |
| 51 | +- `Schema` has been moved to a `schema` namespace, available at `schema.Entity` |
| 52 | +- `arrayOf` has been replaced by `schema.Array` or `[]` |
| 53 | +- `unionOf` has been replaced by `schema.Union` |
| 54 | +- `valuesOf` has been replaced by `schema.Values` |
47 | 55 |
|
48 | 56 | ## Removed
|
49 | 57 |
|
50 |
| -* `normalize` no longer accepts an optional `options` argument. All options are assigned at the schema level. |
51 |
| -* Entity schema no longer accepts `defaults` as an option. Use a custom `processStrategy` option to apply defaults as needed. |
52 |
| -* `assignEntity` has been replaced by `processStrategy` |
53 |
| -* `meta` option. See `processStrategy` |
| 58 | +- `normalize` no longer accepts an optional `options` argument. All options are assigned at the schema level. |
| 59 | +- Entity schema no longer accepts `defaults` as an option. Use a custom `processStrategy` option to apply defaults as needed. |
| 60 | +- `assignEntity` has been replaced by `processStrategy` |
| 61 | +- `meta` option. See `processStrategy` |
0 commit comments