Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

normalizr

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalizr - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

dist/normalizr.js

6

CHANGELOG.md

@@ -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;

10

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc