IMPORTANT: This package has been merged back into aldeed:collection2
as version 3.0.0 of that package. Refer to https://github.com/aldeed/meteor-collection2/blob/master/CHANGELOG.md#300
If you pass default clean options to a schema when creating it (see https://github.com/aldeed/simple-schema-js#set-default-cleaning-options), they are now respected rather than being overridden by Collection2 defaults.
The error thrown or passed to the callback when an operation fails due to the object being invalid now has a message that includes the collection name, the type of operation, and the full key if it's deeply nested. This helps more quickly see where errors originated in cases where multiple operations could have caused the error.
Support SimpleSchema 1.0.0+
Add support for validating an upsert where the query has $and.
Fix issue where autoValue function was running twice on the client for client-initiated inserts and updates. This led to issues with autoValues not being added correctly, or inserts or updates not succeeding.
Fix error when validating an object with no prototype (thanks @jasonphillips)
Requires Meteor 1.3+ and requires you to install and use the Node SimpleSchema package.
Support for SimpleSchema 2.0
- Fix merging of identical selector schemas (thanks @spencern)
- Fix attaching w/ "replace" option when switching between a selector and non-selector schema (thanks @paulbalomiri)
- Fix choosing of correct selector schema for cleaning inserts or updates that originate on the client (thanks @paulbalomiri)
Support for multiple schemas on the same collection. See aldeed:collection2 readme.
Initial release. Previously included in aldeed:collection2 package.