Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -0,1 +1,5 @@ | ||
# 1.0.0-alpha.4 | ||
* [FIX] Make `associations` serialization options optional | ||
# 1.0.0-alpha.3 | ||
@@ -2,0 +6,0 @@ |
@@ -12,5 +12,5 @@ /** Options for constructing a model instance. */ | ||
/** Whether to serialize associations recursively. */ | ||
associations: boolean; | ||
associations?: boolean; | ||
/** The depth of associations to recursively serialize. */ | ||
depth: number; | ||
depth?: number; | ||
} | ||
@@ -20,7 +20,7 @@ /** Options for deserializing a JSON object to a model instance. */ | ||
/** Whether to serialize associations recursively. */ | ||
associations: boolean; | ||
associations?: boolean; | ||
/** The depth of associations to recursively serialize. */ | ||
depth: number; | ||
depth?: number; | ||
/** Whether to run validations to ensure the JSON data is valid. */ | ||
validate: boolean; | ||
validate?: boolean; | ||
} | ||
@@ -33,3 +33,3 @@ /** Options for validating a model instance. */ | ||
*/ | ||
required: boolean; | ||
required?: boolean; | ||
} | ||
@@ -36,0 +36,0 @@ /** |
{ | ||
"name": "modelsafe", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/creativecuriositystudio/modelsafe/issues", |
@@ -21,6 +21,6 @@ /** Contains the model classes and decorators. */ | ||
/** Whether to serialize associations recursively. */ | ||
associations: boolean; | ||
associations?: boolean; | ||
/** The depth of associations to recursively serialize. */ | ||
depth: number; | ||
depth?: number; | ||
} | ||
@@ -31,9 +31,9 @@ | ||
/** Whether to serialize associations recursively. */ | ||
associations: boolean; | ||
associations?: boolean; | ||
/** The depth of associations to recursively serialize. */ | ||
depth: number; | ||
depth?: number; | ||
/** Whether to run validations to ensure the JSON data is valid. */ | ||
validate: boolean; | ||
validate?: boolean; | ||
} | ||
@@ -47,3 +47,3 @@ | ||
*/ | ||
required: boolean; | ||
required?: boolean; | ||
} | ||
@@ -50,0 +50,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
287393