simpl-schema
Advanced tools
Changelog
1.5.1
$pull
modifier being incorrectly cleaned in some cases where some properties have defaultValue
(thanks @vparpoil)Changelog
1.5.0
allowedValues
may now be a Set
instance (thanks @kevinkassimo)EmailWithTLD
regular expression with one that is not susceptible to catastrophic backtracking attacks (thanks @davisjam)Changelog
1.4.3
Changelog
1.4.2
The SimpleSchema constructor or .extend()
will now throw an error if you define an Array field but forget to define the corresponding array item field.
Changelog
1.4.1
Fixed an issue where defaultValues would be incorrectly added to $setOnInsert
when your modifier contained $unset
for deeply nested fields.
Changelog
1.4.0
$setOnInsert
added to a modifier containing $addToSet
would target an incorrect object path.null
.this.key
in the function context when executing schema definition properties that are functions. This can help you determine what the array index is for keys that are within arrays.clone()
function on SimpleSchema instances.Changelog
1.3.0
Add this.key
and this.closestSubschemaFieldName
to autoValue
context to help with tricky situations when subschemas are used.