v3.0.0
3.0.0 (2019-05-12)
Bug Fixes
document must have an _id before saving
issue (e6a854c)- flow-types: change typescript Schema to flow MongooseSchema (c4c9f86)
- flow-types: update flow types with latest changes (2c2a675)
BREAKING CHANGES
@see Automattic/mongoose#5073
MongooseIdAssigner WILL NOT BE initialised using Models.
Plugin can now only be used by calling schema.plugin(MongooseIdAssigner, options)
or schema.plugin(MongooseIdAssigner.plugin, options)
To get IdAssigner Instance,
1: Get from localStateStore.getIdAssigner(schema)
2: Use const IA = MongooseIdAssigner.plugin(schema, options)
3: Use const IA = new MongooseIdAssigner(schema, options)