Comparing version 1.1.13 to 1.1.14
{ | ||
"name": "serializr", | ||
"version": "1.1.13", | ||
"version": "1.1.14", | ||
"description": "Serialize and deserialize complex object graphs to JSON", | ||
@@ -5,0 +5,0 @@ "main": "lib/serializr.js", |
@@ -298,3 +298,3 @@ # Serializr | ||
[src/serializr.js:52-52](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/serializr.js#L52-L52 "Source code on GitHub") | ||
[src/serializr.js:52-52](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/serializr.js#L52-L52 "Source code on GitHub") | ||
@@ -345,3 +345,3 @@ JSDOC type defintions for usage w/o typescript. | ||
[src/api/createSimpleSchema.js:17-24](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/api/createSimpleSchema.js#L17-L24 "Source code on GitHub") | ||
[src/api/createSimpleSchema.js:17-24](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/api/createSimpleSchema.js#L17-L24 "Source code on GitHub") | ||
@@ -371,3 +371,3 @@ Creates a model schema that (de)serializes from / to plain javascript objects. | ||
[src/api/createModelSchema.js:29-47](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/api/createModelSchema.js#L29-L47 "Source code on GitHub") | ||
[src/api/createModelSchema.js:29-47](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/api/createModelSchema.js#L29-L47 "Source code on GitHub") | ||
@@ -405,3 +405,3 @@ Creates a model schema that (de)serializes an object created by a constructor function (class). | ||
[src/api/getDefaultModelSchema.js:9-18](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/api/getDefaultModelSchema.js#L9-L18 "Source code on GitHub") | ||
[src/api/getDefaultModelSchema.js:9-18](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/api/getDefaultModelSchema.js#L9-L18 "Source code on GitHub") | ||
@@ -418,3 +418,3 @@ Returns the standard model schema associated with a class / constructor function | ||
[src/api/setDefaultModelSchema.js:15-18](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/api/setDefaultModelSchema.js#L15-L18 "Source code on GitHub") | ||
[src/api/setDefaultModelSchema.js:15-18](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/api/setDefaultModelSchema.js#L15-L18 "Source code on GitHub") | ||
@@ -437,3 +437,3 @@ Sets the default model schema for class / constructor function. | ||
[src/api/serializable.js:93-103](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/api/serializable.js#L93-L103 "Source code on GitHub") | ||
[src/api/serializable.js:93-103](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/api/serializable.js#L93-L103 "Source code on GitHub") | ||
@@ -462,3 +462,3 @@ Decorator that defines a new property mapping on the default model schema for the class | ||
[src/core/serialize.js:16-34](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/core/serialize.js#L16-L34 "Source code on GitHub") | ||
[src/core/serialize.js:16-34](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/core/serialize.js#L16-L34 "Source code on GitHub") | ||
@@ -478,3 +478,3 @@ Serializes an object (graph) into json using the provided model schema. | ||
[src/core/serialize.js:89-100](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/core/serialize.js#L89-L100 "Source code on GitHub") | ||
[src/core/serialize.js:89-100](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/core/serialize.js#L89-L100 "Source code on GitHub") | ||
@@ -489,3 +489,3 @@ The `serializeAll` decorator can be used on a class to signal that all primitive properties should be serialized automatically. | ||
[src/core/deserialize.js:38-56](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/core/deserialize.js#L38-L56 "Source code on GitHub") | ||
[src/core/deserialize.js:38-56](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/core/deserialize.js#L38-L56 "Source code on GitHub") | ||
@@ -509,3 +509,3 @@ Deserializes a json structor into an object graph. | ||
[src/core/update.js:21-42](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/core/update.js#L21-L42 "Source code on GitHub") | ||
[src/core/update.js:21-42](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/core/update.js#L21-L42 "Source code on GitHub") | ||
@@ -526,3 +526,3 @@ Similar to deserialize, but updates an existing object instance. | ||
[src/types/primitive.js:17-29](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/primitive.js#L17-L29 "Source code on GitHub") | ||
[src/types/primitive.js:17-29](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/primitive.js#L17-L29 "Source code on GitHub") | ||
@@ -546,3 +546,3 @@ Indicates that this field contains a primitive value (or Date) which should be serialized literally to json. | ||
[src/types/identifier.js:42-56](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/identifier.js#L42-L56 "Source code on GitHub") | ||
[src/types/identifier.js:42-56](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/identifier.js#L42-L56 "Source code on GitHub") | ||
@@ -587,3 +587,3 @@ Similar to primitive, but this field will be marked as the identifier for the given Model type. | ||
[src/types/date.js:8-23](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/date.js#L8-L23 "Source code on GitHub") | ||
[src/types/date.js:8-23](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/date.js#L8-L23 "Source code on GitHub") | ||
@@ -594,3 +594,3 @@ Similar to primitive, serializes instances of Date objects | ||
[src/types/alias.js:20-31](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/alias.js#L20-L31 "Source code on GitHub") | ||
[src/types/alias.js:20-31](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/alias.js#L20-L31 "Source code on GitHub") | ||
@@ -620,3 +620,3 @@ Alias indicates that this model property should be named differently in the generated json. | ||
[src/types/custom.js:36-45](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/custom.js#L36-L45 "Source code on GitHub") | ||
[src/types/custom.js:36-45](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/custom.js#L36-L45 "Source code on GitHub") | ||
@@ -663,3 +663,3 @@ Can be used to create simple custom propSchema. Multiple things can be done inside of a custom propSchema, like deserializing and serializing other (polymorphic) objects, skipping the serialization of something or checking the context of the obj being (de)serialized. | ||
[src/types/object.js:34-52](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/object.js#L34-L52 "Source code on GitHub") | ||
[src/types/object.js:34-52](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/object.js#L34-L52 "Source code on GitHub") | ||
@@ -701,3 +701,3 @@ `object` indicates that this property contains an object that needs to be (de)serialized | ||
[src/types/reference.js:65-98](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/reference.js#L65-L98 "Source code on GitHub") | ||
[src/types/reference.js:65-98](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/reference.js#L65-L98 "Source code on GitHub") | ||
@@ -766,3 +766,3 @@ `reference` can be used to (de)serialize references that point to other models. | ||
[src/types/list.js:33-54](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/list.js#L33-L54 "Source code on GitHub") | ||
[src/types/list.js:33-54](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/list.js#L33-L54 "Source code on GitHub") | ||
@@ -805,3 +805,3 @@ List indicates that this property contains a list of things. | ||
[src/types/map.js:13-62](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/map.js#L13-L62 "Source code on GitHub") | ||
[src/types/map.js:13-62](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/map.js#L13-L62 "Source code on GitHub") | ||
@@ -818,3 +818,3 @@ Similar to list, but map represents a string keyed dynamic collection. | ||
[src/types/mapAsArray.js:15-52](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/types/mapAsArray.js#L15-L52 "Source code on GitHub") | ||
[src/types/mapAsArray.js:15-52](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/types/mapAsArray.js#L15-L52 "Source code on GitHub") | ||
@@ -834,3 +834,3 @@ Similar to map, mapAsArray can be used to serialize a map-like collection where the key is contained in the 'value object'. | ||
[src/constants.js:20-20](https://github.com/mobxjs/serializr/blob/c924b623c150db5caa92ae202b9ff87b953de710/src/constants.js#L20-L20 "Source code on GitHub") | ||
[src/constants.js:20-20](https://github.com/mobxjs/serializr/blob/3a2bb289fb2dcdafcab997a5b884faf150033918/src/constants.js#L20-L20 "Source code on GitHub") | ||
@@ -837,0 +837,0 @@ In the event that a property needs to be deserialized, but not serialized, you can use the SKIP symbol to omit the property. This has to be used with the custom serializer. |
@@ -72,2 +72,4 @@ // TODO: put this in the source files, and extract it, to preserve comments | ||
export function mapAsArray(propSchema: PropSchema, keyPropertyName: string): PropSchema; | ||
export function custom(serializer: (value: any) => any, deserializer: (jsonValue: any) => any): PropSchema; | ||
@@ -74,0 +76,0 @@ |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
199879
2343
0