- Updated mongoose dependency to version 7.1.1
- Dependency versions Bump to latest
- Added prettier for code formatting
- eslint rules Updates
- Updated tests for promises
- Allow reference_field to be a non-root property. Thanks to @lucasmori1
- Allow a counter to be shared setting
exclusive=false
- Allow nested fields as counters. Thanks @ManoelLobo
- Fix counter reset. It now works even with a custom start value. Thanks to @leeqiang
- Completely change code style
- Using jest for tests,
- Adding eslint
- Moving to more modern JS when possible
- Add support for sequential hooks.
The default behavior is to have them as parallel but an option can be set to increment the
counter sequentially while saving a document. Thanks to
@Artem Kobets
. - Add custom start value and increment amount. Thanks to
@Pr0Sh00t3r
.
- Use connection instead of mongoose library
- Fix: updated dependencies
- Fix scoped counter reset
- Fix: Do not hang on save in production anymore
- Add
yarn.lock
- Add package-lock.json
- Adds donate button
- Add a static method to reset a counter
- Refactored code
- Improved jsdoc
- Add tests for
insertMany
andcreate
- Updated readme
- added coverall badge
- added installation instructions
- some section have benn rewrote
- Updated dependencies
- Fixed tests for Travis-CI environment
- Fixed bug which prevent more than one counter to work on a collection
- When setNext is called the document is saved with the incremented field
- This breaks the precedent behavior but is more natural and behave like the save pre-hook
- Updated mongoose dependency to version 4.0.0
- Added coverage for tests
- Added linting
- Working version