Skip to content

v2.0.0

Compare
Choose a tag to compare
@mernxl mernxl released this 11 Aug 03:09
· 70 commits to master since this release

2.0.0 (2018-08-11)

Performance Improvements

  • initialise: MongooseIdAssigner constructor now takes a ModelInstance (bba5a1c)

BREAKING CHANGES

  • initialise: MongooseIdAssigner.plugin will NOT return IdAssigner instance. It is intended to be used only with like so -> schema.plugin(MongooseIdAssigner.plugin, options).
    Use MongooseIdAssigner Constructor to get Instance. It takes parameters ModelInstance and AssignerOptions. The interface AssignerOptions also changed, modelName not needed. Use AssignerPluginOptions when working with schema.plugin(..., options).