A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
Full Changelog: https://github.com/Meteor-Community-Packages/meteor-collection2/compare/4.0.0...4.0.1
simpl-schema
as we from now on use the Meteor package aldeed:simple-schema
again, which is now under our maintenance. While the npm package works, there will be no Meteor support in the future and we decided for a hard fork in order to remain compatible.In order to import it dynamically you need to run:
import 'meteor/aldeed:collection2/dynamic'
Collection2.load() // returns a promise!!!!
In order to import it statically you need to run:
import 'meteor/aldeed:collection2/static'
Collection2.load() // no promise
Full Changelog: https://github.com/Meteor-Community-Packages/meteor-collection2/compare/3.5.0...4.0.0
Add the ability to override in-built schema clean options.
packages.collection2.disableCollectionNamesInValidation
in your Meteor settings to disable showing Collection name in errors from server, this is set to false
by default to preserve the original behavior. (fixes #422)raix:[email protected]
and tmeasday:[email protected]
tmeasday:check-npm-versions
to use version 1.0.1
as well