Skip to content

Releases: brickyang/egg-mongo-native

2018-12-15, Version 3.3.0

15 Dec 05:10
Compare
Choose a tag to compare

Notable changes

  • DEPRECATED: count
  • new methods: findOne, countDocuments, estimatedDocumentCount
  • mongo-native-driver: update to v3.1

2018-05-10, Version 3.2.0

10 May 05:13
Compare
Choose a tag to compare

Notable changes

  • lib/mongo.js: fix options error when make mongo url

2018-04-07, Version 3.1.0

07 Apr 04:41
Compare
Choose a tag to compare

Notable changes

  • index.d.ts: add interface EggAggConfig & fix some typo

2018-01-23, Version 3.0.0-rc

23 Jan 13:26
Compare
Choose a tag to compare

Dependencies Update

  • mongodb: 3.0.1
  • @types/mongodb: 3.0.3

BREAKING CHANGES

  • insertOne: return insertedId of type ObjectID instead of string
  • insertMany: return insertedIds of type Array<ObjectID> instead of Array<string>
  • find: use parameter args.prediction instead of args.predict
  • find: can return cursor now (with parameter returnCursor, default to false)
  • aggregate: parameter pipeline is now a property of args to keep the same pattern with other functions

2018-01-23, Version 2.3.0

23 Jan 14:52
Compare
Choose a tag to compare

Notable changes

  • aggregate: support args.pipeline parameter (recommend), parameter pipeline is deprecated and will not be supported in version 3.x

2018-01-21, Version 2.2.0

21 Jan 04:12
f07f09d
Compare
Choose a tag to compare

Notable changes

  • add .aggregate(name, pipeline)
  • add index.d.ts

2017-12-11, Version 2.1.0

11 Dec 06:04
Compare
Choose a tag to compare

Notable changes

  • support replica set uri

2017-12-10, Version 2.0.0

10 Dec 15:51
Compare
Choose a tag to compare

Notable changes

  • support Egg 2