Comparing version 3.0.2 to 3.1.0
@@ -0,1 +1,7 @@ | ||
# v3.1.0 | ||
* **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. | ||
# v3.0.0 | ||
@@ -2,0 +8,0 @@ |
@@ -59,1 +59,7 @@ declare namespace schema { | ||
}; | ||
export function denormalize( | ||
input: any, | ||
schema: Schema, | ||
entities: any | ||
): any; |
{ | ||
"name": "normalizr", | ||
"version": "3.0.2", | ||
"description": "Normalizes JSON according to schema for Redux and Flux applications", | ||
"version": "3.1.0", | ||
"description": "Normalizes and denormalizes JSON according to schema for Redux and Flux applications", | ||
"bugs": { | ||
@@ -17,2 +17,3 @@ "url": "https://github.com/paularmstrong/normalizr/issues" | ||
"normalize", | ||
"denormalize", | ||
"api", | ||
@@ -27,8 +28,9 @@ "json" | ||
], | ||
"main": "dist/index.js", | ||
"main": "dist/src/index.js", | ||
"typings": "index.d.ts", | ||
"scripts": { | ||
"build": "npm run clean && mkdirp dist && npm-run-all --parallel build:development build:production", | ||
"build": "npm run clean && mkdirp dist && npm-run-all --parallel build:development build:production build:node", | ||
"build:development": "NODE_ENV=development rollup -c", | ||
"build:production": "NODE_ENV=production rollup -c", | ||
"build:node": "babel src/*.js -d dist && babel src/schemas/*.js -d dist", | ||
"clean": "rimraf dist", | ||
@@ -35,0 +37,0 @@ "flow": "flow src; test $? -eq 0 -o $? -eq 2", |
@@ -16,3 +16,4 @@ # normalizr [![build status](https://img.shields.io/travis/paularmstrong/normalizr/master.svg?style=flat-square)](https://travis-ci.org/paularmstrong/normalizr) [![Coverage Status](https://img.shields.io/coveralls/paularmstrong/normalizr/master.svg?style=flat-square)](https://coveralls.io/github/paularmstrong/normalizr?branch=master) [![npm version](https://img.shields.io/npm/v/normalizr.svg?style=flat-square)](https://www.npmjs.com/package/normalizr) [![npm downloads](https://img.shields.io/npm/dm/normalizr.svg?style=flat-square)](https://www.npmjs.com/package/normalizr) | ||
* [API](/docs/api.md) | ||
- [normalize](/docs/api.md#normalize) | ||
- [normalize](/docs/api.md#normalizedata-schema) | ||
- [denormalize](/docs/api.md#denormalizeinput-schema-entities) | ||
- [schema](/docs/api.md#schema) | ||
@@ -24,3 +25,3 @@ | ||
* [Relational Data](/examples/relationships) | ||
* [Redux](/examples/redux) | ||
* [Interactive Redux](/examples/redux) | ||
@@ -27,0 +28,0 @@ ## Quick Start |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59212
14
997
104
1