- updated dependencies to use latest mongodb client lib
- Dependency
mongodb
version 3+ compatible only - Dependency
bson
version 1+ compatible only
- Update JSDoc comments
- Fix Rollup config
Stable 1.0.0 release
- #16, #17 - Feature - Translate all ObjectID fields by @crobinson42
- Cleaned up the code
- Improved support for
fields
option infind
andfindAll
-
How you must now import in ES2015:
import MongoDBAdapter from 'js-data-mongodb' const adapter = new MongoDBAdapter()
or
import {MongoDBAdapter, version} from 'js-data-mongodb' console.log(version) const adapter = new MongoDBAdapter()
-
How you must now import in ES5:
var JSDataMongoDB = require('js-data-mongodb') var MongoDBAdapter = JSDataMongoDB.MongoDBAdapter var adapter = new MongoDBAdapter()
-
Moved some
dist
files to therelease
branch to reduce noise
- Upgraded to
js-data-adapter
v0.6.1 - Now using js-data JSDoc template
- Added count method
- Moved more common adapter functionality into js-data-adapter
Fixed JSDoc
- Upgraded to latest js-data-adapter-tests, making appropriate changes
- Extracted common adapter functionality into js-data-adapter
- Extracted common js-data repo utility scripts into js-data-repo-tools
- Fixed use of options
- Now depends on js-data 3.x
- Added createMany and updateMany methods
- Added lifecycle methods
- Added insertOpts, insertManyOpts, updateOpts, removeOpts, findOpts, and findOneOpts options
- Decomposed eager loading functionality into overridable methods for greater flexibility
- New methods: loadHasMany, loadBelongsTo, loadHasOne, makeBelongsToForeignKey, makeHasManyForeignKey, toObjectID
- Example use case: Override makeBelongsToForeignKey because your foreignKeys are saved as ObjectIDs, but the default is to assume they are plain a string/number
- #12 - eager loading relations doesn't check for ObjectID
- Added some JSDoc comments
- Cleaned up some code style
- Upgraded dependencies
- Now using js-data-adapter-tests
- Fix for loading relations in find() and findAll()
Upgraded dependencies
- #4 - Add support for loading relations in find()
- #5 - Add support for loading relations in findAll()
Stable Version 0.4.0
Upgraded dependencies
- #9 is really fixed now
- Upgraded dependencies
- #Added better support for ObjectIds
- Fix dependency
- #2 - Should not be saving relations (duplicating data)
- #3 - Need to use removeCircular
- #1 - Convert to ES6.
- Initial Release
- Initial Commit