@rest-hooks/normalizr
Advanced tools
Comparing version 5.0.5 to 5.0.6
@@ -6,2 +6,11 @@ # Change Log | ||
### [5.0.6](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/normalizr@5.0.5...@rest-hooks/normalizr@5.0.6) (2020-03-13) | ||
### 🐛 Bug Fix | ||
* Schema can be null (for media) ([#293](https://github.com/coinbase/rest-hooks/issues/293)) ([003b3ca](https://github.com/coinbase/rest-hooks/commit/003b3ca53703174b66c5fc9d546d2b340e293e86)) | ||
### [5.0.5](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/normalizr@5.0.4...@rest-hooks/normalizr@5.0.5) (2020-02-26) | ||
@@ -8,0 +17,0 @@ |
@@ -74,5 +74,3 @@ define(['exports'], function (exports) { 'use strict'; | ||
var PolymorphicSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var PolymorphicSchema = /*#__PURE__*/function () { | ||
function PolymorphicSchema(definition, schemaAttribute) { | ||
@@ -189,5 +187,3 @@ if (schemaAttribute) { | ||
var ArraySchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ArraySchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ArraySchema, _PolymorphicSchema); | ||
@@ -275,5 +271,3 @@ | ||
var ObjectSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var ObjectSchema = /*#__PURE__*/function () { | ||
function ObjectSchema(definition) { | ||
@@ -414,5 +408,3 @@ this.define(definition); | ||
var EntitySchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var EntitySchema = /*#__PURE__*/function () { | ||
function EntitySchema(key, definition, options) { | ||
@@ -544,5 +536,3 @@ if (definition === void 0) { | ||
var UnionSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var UnionSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(UnionSchema, _PolymorphicSchema); | ||
@@ -571,5 +561,3 @@ | ||
var ValuesSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ValuesSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ValuesSchema, _PolymorphicSchema); | ||
@@ -576,0 +564,0 @@ |
@@ -75,5 +75,3 @@ var rest_hooks_normalizr = (function (exports) { | ||
var PolymorphicSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var PolymorphicSchema = /*#__PURE__*/function () { | ||
function PolymorphicSchema(definition, schemaAttribute) { | ||
@@ -190,5 +188,3 @@ if (schemaAttribute) { | ||
var ArraySchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ArraySchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ArraySchema, _PolymorphicSchema); | ||
@@ -276,5 +272,3 @@ | ||
var ObjectSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var ObjectSchema = /*#__PURE__*/function () { | ||
function ObjectSchema(definition) { | ||
@@ -415,5 +409,3 @@ this.define(definition); | ||
var EntitySchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var EntitySchema = /*#__PURE__*/function () { | ||
function EntitySchema(key, definition, options) { | ||
@@ -545,5 +537,3 @@ if (definition === void 0) { | ||
var UnionSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var UnionSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(UnionSchema, _PolymorphicSchema); | ||
@@ -572,5 +562,3 @@ | ||
var ValuesSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ValuesSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ValuesSchema, _PolymorphicSchema); | ||
@@ -577,0 +565,0 @@ |
@@ -76,5 +76,3 @@ 'use strict'; | ||
var PolymorphicSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var PolymorphicSchema = /*#__PURE__*/function () { | ||
function PolymorphicSchema(definition, schemaAttribute) { | ||
@@ -191,5 +189,3 @@ if (schemaAttribute) { | ||
var ArraySchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ArraySchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ArraySchema, _PolymorphicSchema); | ||
@@ -277,5 +273,3 @@ | ||
var ObjectSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var ObjectSchema = /*#__PURE__*/function () { | ||
function ObjectSchema(definition) { | ||
@@ -416,5 +410,3 @@ this.define(definition); | ||
var EntitySchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var EntitySchema = /*#__PURE__*/function () { | ||
function EntitySchema(key, definition, options) { | ||
@@ -546,5 +538,3 @@ if (definition === void 0) { | ||
var UnionSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var UnionSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(UnionSchema, _PolymorphicSchema); | ||
@@ -573,5 +563,3 @@ | ||
var ValuesSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ValuesSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ValuesSchema, _PolymorphicSchema); | ||
@@ -578,0 +566,0 @@ |
@@ -78,5 +78,3 @@ (function (global, factory) { | ||
var PolymorphicSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var PolymorphicSchema = /*#__PURE__*/function () { | ||
function PolymorphicSchema(definition, schemaAttribute) { | ||
@@ -193,5 +191,3 @@ if (schemaAttribute) { | ||
var ArraySchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ArraySchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ArraySchema, _PolymorphicSchema); | ||
@@ -279,5 +275,3 @@ | ||
var ObjectSchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var ObjectSchema = /*#__PURE__*/function () { | ||
function ObjectSchema(definition) { | ||
@@ -418,5 +412,3 @@ this.define(definition); | ||
var EntitySchema = | ||
/*#__PURE__*/ | ||
function () { | ||
var EntitySchema = /*#__PURE__*/function () { | ||
function EntitySchema(key, definition, options) { | ||
@@ -548,5 +540,3 @@ if (definition === void 0) { | ||
var UnionSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var UnionSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(UnionSchema, _PolymorphicSchema); | ||
@@ -575,5 +565,3 @@ | ||
var ValuesSchema = | ||
/*#__PURE__*/ | ||
function (_PolymorphicSchema) { | ||
var ValuesSchema = /*#__PURE__*/function (_PolymorphicSchema) { | ||
_inheritsLoose(ValuesSchema, _PolymorphicSchema); | ||
@@ -580,0 +568,0 @@ |
{ | ||
"name": "@rest-hooks/normalizr", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"description": "Normalizes and denormalizes JSON according to schema for Redux and Flux applications", | ||
@@ -65,3 +65,3 @@ "homepage": "https://github.com/coinbase/rest-hooks/tree/master/packages/normalizr#readme", | ||
}, | ||
"gitHead": "df8971741c68125fedd83c405ba3139d313aa892" | ||
"gitHead": "e75e14696b2e8dca6c56992c5213b910435c659f" | ||
} |
@@ -307,2 +307,3 @@ declare namespace schema { | ||
export type Schema = | ||
| null | ||
| string | ||
@@ -309,0 +310,0 @@ | { [K: string]: any } |
157847
3075