PageRenderTime 108ms CodeModel.GetById 15ms app.highlight 75ms RepoModel.GetById 1ms app.codeStats 1ms

/node_modules/mongoose/History.md

https://bitbucket.org/coleman333/smartsite
Markdown | 4190 lines | 3568 code | 622 blank | 0 comment | 0 complexity | 095d0d73b30bce2f2fdc9559a60ce18c MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  15.0.14 / 2018-04-09
  2===================
  3 * fix(schema): clone aliases and alternative option syntax correctly
  4 * fix(query): call utils.toObject in query.count like in query.find #6325 [lineus](https://github.com/lineus)
  5 * docs(populate): add middleware examples #6320 [BorntraegerMarc](https://github.com/BorntraegerMarc)
  6 * docs(compatibility): fix dead link #6319 [lacivert](https://github.com/lacivert)
  7 * docs(api): fix markdown parsing for parameters #6318 #6314 [lineus](https://github.com/lineus)
  8 * fix(populate): handle space-delimited paths in array populate #6296 #6284 [lineus](https://github.com/lineus)
  9 * fix(populate): support basic virtual populate underneath embedded discriminators #6273
 10
 115.0.13 / 2018-04-05
 12===================
 13 * docs(faq): add middleware to faq arrow function warning #6309 [lineus](https://github.com/lineus)
 14 * docs(schema): add example to loadClass() docs #6308
 15 * docs: clean up misc typos #6304 [sfrieson](https://github.com/sfrieson)
 16 * fix(document): apply virtuals when calling `toJSON()` on a nested path #6294
 17 * refactor(connection): use `client.db()` syntax rather than double-parsing the URI #6292 #6286
 18 * docs: document new behavior of required validator for arrays #6288 [daltones](https://github.com/daltones)
 19 * fix(schema): treat set() options as user-provided options #6274
 20 * fix(schema): clone discriminators correctly #6274
 21 * fix(update): make setDefaultsOnInsert not create subdoc if only default is id #6269
 22 * docs(discriminator): clarify 3rd argument to Model.discriminator() #2596
 23
 245.0.12 / 2018-03-27
 25===================
 26 * docs(query): updating model name in query API docs #6280 [lineus](https://github.com/lineus)
 27 * docs: fix typo in tests #6275 [styler](https://github.com/styler)
 28 * fix: add missing `.hint()` to aggregate #6272 #6251 [lineus](https://github.com/lineus)
 29 * docs(api): add headers to each API docs section for easer nav #6261
 30 * fix(query): ensure hooked query functions always run on next tick for chaining #6250
 31 * fix(populate): ensure populated array not set to null if it isn't set #6245
 32 * fix(connection): set readyState to disconnected if initial connection fails #6244 #6131
 33 * docs(model): make `create()` params show up correctly in docs #6242
 34 * fix(model): make error handlers work with MongoDB server errors and `insertMany()` #6228
 35 * fix(browser): ensure browser document builds defaults for embedded arrays correctly #6175
 36 * fix(timestamps): set timestamps when using `updateOne()` and `updateMany()` #6282 [gualopezb](https://github.com/gualopezb)
 37
 385.0.11 / 2018-03-19
 39===================
 40 * fix(update): handle $pull with $in in update validators #6240
 41 * fix(query): don't convert undefined to null when casting so driver `ignoreUndefined` option works #6236
 42 * docs(middleware): add example of using async/await with middleware #6235
 43 * fix(populate): apply justOne option before `completeMany()` so it works with lean() #6234
 44 * fix(query): ensure errors in user callbacks aren't caught in init #6195 #6178
 45 * docs(connections): document dbName option for Atlas connections #6179
 46 * fix(discriminator): make child schema nested paths overwrite parent schema paths #6076
 47
 484.13.12 / 2018-03-13
 49====================
 50 * fix(document): make virtual get() return undefined instead of null if no getters #6223
 51 * docs: fix url in useMongoClient error message #6219 #6217 [lineus](https://github.com/lineus)
 52 * fix(discriminator): don't copy `discriminators` property from base schema #6122 #6064
 53
 545.0.10 / 2018-03-12
 55===================
 56 * docs(schematype): add notes re: running setters on queries #6209
 57 * docs: fix typo #6208 [kamagatos](https://github.com/kamagatos)
 58 * fix(query): only call setters once on query filter props for findOneAndUpdate and findOneAndRemove #6203
 59 * docs: elaborate on connection string changes in migration guide #6193
 60 * fix(document): skip applyDefaults if subdoc is null #6187
 61 * docs: fix schematypes docs and link to them #6176
 62 * docs(faq): add FAQs re: array defaults and casting aggregation pipelines #6184 #6176 #6170 [lineus](https://github.com/lineus)
 63 * fix(document): ensure primitive defaults are set and built-in default functions run before setters #6155
 64 * fix(query): handle single embedded embedded discriminators in castForQuery #6027
 65
 665.0.9 / 2018-03-05
 67==================
 68 * perf: bump mongodb -> 3.0.4 to fix SSL perf issue #6065
 69
 705.0.8 / 2018-03-03
 71==================
 72 * docs: remove obsolete references to `emitIndexErrors` #6186 [isaackwan](https://github.com/isaackwan)
 73 * fix(query): don't cast findOne() until exec() so setters don't run twice #6157
 74 * fix: remove document_provider.web.js file #6186
 75 * fix(discriminator): support custom discriminator model names #6100 [wentout](https://github.com/wentout)
 76 * fix: support caching calls to `useDb()` #6036 [rocketspacer](https://github.com/rocketspacer)
 77 * fix(query): add omitUndefined option so setDefaultsOnInsert can kick in on undefined #6034
 78 * fix: upgrade mongodb -> 3.0.3 for reconnectTries: 0 blocking process exit fix #6028
 79
 805.0.7 / 2018-02-23
 81==================
 82 * fix: support eachAsync options with aggregation cursor #6169 #6168 [vichle](https://github.com/vichle)
 83 * docs: fix link to MongoDB compound indexes docs #6162 [br0p0p](https://github.com/br0p0p)
 84 * docs(aggregate): use eachAsync instead of incorrect `each()` #6160 [simllll](https://github.com/simllll)
 85 * chore: fix benchmarks #6158 [pradel](https://github.com/pradel)
 86 * docs: remove dead link to old blog post #6154 [markstos](https://github.com/markstos)
 87 * fix: don't convert dates to numbers when updating mixed path #6146 #6145 [s4rbagamble](https://github.com/s4rbagamble)
 88 * feat(aggregate): add replaceRoot, count, sortByCount helpers #6142 [jakesjews](https://github.com/jakesjews)
 89 * fix(document): add includedChildren flag to modifiedPaths() #6134
 90 * perf: don't create wrapper function if no hooks specified #6126
 91 * fix(schema): allow indexes on single nested subdocs for geoJSON #6113
 92 * fix(document): allow depopulating all fields #6073
 93 * feat(mongoose): add support for `useFindAndModify` option on singleton #5616
 94
 955.0.6 / 2018-02-15
 96==================
 97 * refactor(query.castUpdate): avoid creating error until necessary #6137
 98 * docs(api): fix missing api docs #6136 [lineus](https://github.com/lineus)
 99 * fix(schema): copy virtuals when using `clone()` #6133
100 * fix(update): avoid digging into buffers with upsert and replaceOne #6124
101 * fix(schema): support `enum` on arrays of strings #6102
102 * fix(update): cast `$addToSet: [1, 2]` -> `$addToSet: { $each: [1, 2] }` #6086
103
1045.0.5 / 2018-02-13
105==================
106 * docs: make > show up correctly in API docs #6114
107 * fix(query): support `where()` overwriting primitive with object #6097
108 * fix(schematype): don't run internal `resetId` setter on queries with _id #6093
109 * fix(discriminator): don't copy `discriminators` property from base schema #6064
110 * fix(utils): respect `valueOf()` when merging object for update #6059
111 * docs(validation): fix typo 'maxLength' #4720
112 * fix(document): apply defaults after setting initial value so default functions don't see empty doc #3781
113
1145.0.4 / 2018-02-08
115==================
116 * docs: add lambda guide #6107
117 * fix(connection): add `dbName` option to work around `mongodb+srv` not supporting db name in URI #6106
118 * fix(schematype): fix regexp typo in ObjectId #6098 [JoshuaWise](https://github.com/JoshuaWise)
119 * perf(document): re-use the modifiedPaths list #6092 [tarun1793](https://github.com/tarun1793)
120 * fix: use console.info() instead of console.error() for debug output #6088 [yuristsepaniuk](https://github.com/yuristsepaniuk)
121 * docs(validation): clean up runValidators and isAsync options docs for 5.x #6083
122 * docs(model): use array instead of spread consistently for aggregate() #6070
123 * fix(schema): make aliases handle mongoose-lean-virtuals #6069
124 * docs(layout): add link to subdocs guide #6056
125 * fix(query): make strictQuery: true strip out fields that aren't in the schema #6032
126 * docs(guide): add notes for `strictQuery` option #6032
127
1284.13.11 / 2018-02-07
129====================
130 * docs: fix links in 4.x docs #6081
131 * chore: add release script that uses --tag for npm publish for 4.x releases #6063
132
1335.0.3 / 2018-01-31
134==================
135 * fix: consistently use process.nextTick() to avoid sinon.useFakeTimers() causing ops to hang #6074
136 * docs(aggregate): fix typo #6072 [adursun](https://github.com/adursun)
137 * chore: add return type to `mongoose.model()` docs [bryant1410](https://github.com/bryant1410)
138 * fix(document): depopulate push()-ed docs when saving #6048
139 * fix: upgrade mongodb -> 3.0.2 #6019
140
1415.0.2 / 2018-01-28
142==================
143 * fix(schema): do not overwrite default values in schema when nested timestamps are provided #6024 [cdeveas](https://github.com/cdeveas)
144 * docs: fix syntax highlighting in models.jade, schematypes.jade, subdocs.jade #6058 [lineus](https://github.com/lineus)
145 * fix: use lazy loading so we can build mongoose with webpack #5993 #5842
146 * docs(connections): clarify multi-mongos with useMongoClient for 4.x docs #5984
147 * fix(populate): handle populating embedded discriminator paths #5970
148
1494.13.10 / 2018-01-28
150====================
151 * docs(model+query): add lean() option to Model helpers #5996 [aguyinmontreal](https://github.com/aguyinmontreal)
152 * fix: use lazy loading so we can build mongoose with webpack #5993 #5842
153 * docs(connections): clarify multi-mongos with useMongoClient for 4.x docs #5984
154 * fix(populate): handle populating embedded discriminator paths #5970
155 * docs(query+aggregate): add more detail re: maxTimeMS #4066
156
1575.0.1 / 2018-01-19
158==================
159 * fix(document): make validate() not resolve to document #6014
160 * fix(model): make save() not return DocumentNotFoundError if using fire-and-forget writes #6012
161 * fix(aggregate): make options() work as advertised #6011 [spederiva](https://github.com/spederiva)
162 * docs(queries): fix code samples #6008
163
1645.0.0 / 2018-01-17
165==================
166 * test: refactor tests to use start fewer connections #5985 [fenanquin](https://github.com/fenanquin)
167 * feat: add global bufferCommands option #5879
168 * docs: new docs site and build system #5976
169 * test: increase timeout on slow test cases #5968 [fenanquin](https://github.com/fenanquin)
170 * fix: avoid casting out array filter elements #5965
171 * feat: add Model.watch() wrapper #5964
172 * chore: replace istanbul with nyc #5962 [ChristianMurphy](https://github.com/ChristianMurphy)
173
1744.13.9 / 2018-01-07
175===================
176 * chore: update marked (dev dependency) re: security vulnerability #5951 [ChristianMurphy](https://github.com/ChristianMurphy)
177 * fix: upgrade mongodb -> 2.2.34 for ipv6 and autoReconnect fixes #5794 #5760
178 * docs: use useMongooseAggCursor for aggregate docs #2955
179
1805.0.0-rc2 / 2018-01-04
181======================
182 * fix: add cleaner warning about no longer needing `useMongoClient` in 5.x #5961
183 * chore: update acquit -> 0.5.1 for minor security patch #5961 [ChristianMurphy](https://github.com/ChristianMurphy)
184 * docs: add docs for mongoose 4.x at http://mongoosejs.com/docs/4.x #5959
185 * docs: add link to migration guide #5957
186 * chore: update eslint to version 4.14.0 #5955 [ChristianMurphy](https://github.com/ChristianMurphy)
187 * chore: update mocha to version 4.1.0 [ChristianMurphy](https://github.com/ChristianMurphy)
188
1895.0.0-rc1 / 2018-01-02
190======================
191 * fix(index): use pluralize correctly for `mongoose.model()` #5958
192 * fix: make mquery use native promises by default #5945
193 * fix(connection): ensure 'joined' and 'left' events get bubbled up #5944
194
1955.0.0-rc0 / 2017-12-28
196======================
197 * BREAKING CHANGE: always use mongoose aggregation cursor when using `.aggregate().cursor()` #5941
198 * BREAKING CHANGE: attach query middleware when compiling model #5939
199 * BREAKING CHANGE: `emitIndexErrors` is on by default, failing index build will throw uncaught error if not handled #5910
200 * BREAKING CHANGE: remove precompiled browser bundle #5895
201 * feat: add `mongoose.pluralize()` function #5877
202 * BREAKING CHANGE: remove `passRawResult` option for `findOneAndUpdate`, use `rawResult` #5869
203 * BREAKING CHANGE: implicit async validators (based on number of function args) are removed, return a promise instead #5824
204 * BREAKING CHANGE: fail fast if user sets a unique index on `_id` #5820 [varunjayaraman](https://github.com/varunjayaraman)
205 * BREAKING CHANGE: mapReduce resolves to an object with 2 keys rather than 2 separate args #5816
206 * BREAKING CHANGE: `mongoose.connect()` returns a promise, removed MongooseThenable #5796
207 * BREAKING CHANGE: query stream removed, use `cursor()` instead #5795
208 * BREAKING CHANGE: use MongoDB driver 3.0.0, drop support for MongoDB server < 3.0.0 #5791 #4740
209 * BREAKING CHANGE: remove support for `$pushAll`, remove `usePushEach` option #5670
210 * BREAKING CHANGE: make date casting use native Date #5395 [varunjayaraman](https://github.com/varunjayaraman)
211 * BREAKING CHANGE: remove `runSettersOnQuery`, always run setters on query #5340
212 * BREAKING CHANGE: array of length 0 now satisfies `required: true` for arays #5139 [wlingke](https://github.com/wlingke)
213 * BREAKING CHANGE: remove `saveErrorIfNotFound`, always error out if `save()` did not update a document #4973
214 * BREAKING CHANGE: don't execute getters in reverse order #4835
215 * BREAKING CHANGE: make boolean casting more strict #4245
216 * BREAKING CHANGE: `toObject()` and `toJSON()` option parameter merges with defaults rather than overwriting #4131
217 * feat: allow setting `default` on `_id` #4069
218 * BREAKING CHANGE: `deleteX()` and `remove()` promise resolves to the write object result #4013
219 * feat: support returning a promise from middleware functions #3779
220 * BREAKING CHANGE: don't return a promise if callback specified #3670
221 * BREAKING CHANGE: only cast `update()`, `updateX()`, `replaceOne()`, `remove()`, `deleteX()` in exec #3529
222 * BREAKING CHANGE: sync errors in middleware functions are now handled #3483
223 * BREAKING CHANGE: post hooks get flow control #3232
224 * BREAKING CHANGE: deduplicate hooks when merging discriminator schema #2945
225 * BREAKING CHANGE: use native promises by default, remove support for mpromise #2917
226 * BREAKING CHANGE: remove `retainKeyOrder`, always use forward order when iterating through objects #2749
227 * BREAKING CHANGE: `aggregate()` no longer accepts a spread #2716
228
2294.13.8 / 2017-12-27
230===================
231 * docs(guide): use more up-to-date syntax for autoIndex example #5933
232 * docs: fix grammar #5927 [abagh0703](https://github.com/abagh0703)
233 * fix: propagate lean options to child schemas #5914
234 * fix(populate): use correct model with discriminators + nested populate #5858
235
2364.13.7 / 2017-12-11
237===================
238 * docs(schematypes): fix typo #5889 [gokaygurcan](https://github.com/gokaygurcan)
239 * fix(cursor): handle `reject(null)` with eachAsync callback #5875 #5874 [ZacharyRSmith](https://github.com/ZacharyRSmith)
240 * fix: disallow setting `mongoose.connection` to invalid values #5871 [jinasonlin](https://github.com/jinasonlin)
241 * docs(middleware): suggest using `return next()` to stop middleware execution #5866
242 * docs(connection): improve connection string query param docs #5864
243 * fix(document): run validate hooks on array subdocs even if not directly modified #5861
244 * fix(discriminator): don't treat $meta as defining projection when querying #5859
245 * fix(types): handle Decimal128 when using bson-ext on server side #5850
246 * fix(document): ensure projection with only $slice isn't treated as inclusive for discriminators #4991
247 * fix(model): throw error when passing non-object to create() #2037
248
2494.13.6 / 2017-12-02
250===================
251 * fix(schema): support strictBool option in schema #5856 [ekulabuhov](https://github.com/ekulabuhov)
252 * fix(update): make upsert option consistently handle truthy values, not just booleans, for updateOne() #5839
253 * refactor: remove unnecessary constructor check #2057
254 * docs(query): correct function signature for .mod() helper #1806
255 * fix(query): report ObjectParameterError when passing non-object as filter to find() and findOne() #1698
256
2574.13.5 / 2017-11-24
258===================
259 * fix(model): handle update cast errors correctly with bulkWrite #5845 [Michael77](https://github.com/Michael77)
260 * docs: add link to bufferCommands option #5844 [ralphite](https://github.com/ralphite)
261 * fix(model): allow virtual ref function to return arrays #5834 [brunohcastro](https://github.com/brunohcastro)
262 * fix(query): don't throw uncaught error if query filter too big #5812
263 * fix(document): if setting unselected nested path, don't overwrite nested path #5800
264 * fix(document): support calling `populate()` on nested document props #5703
265 * fix: add `strictBool` option for schema type boolean #5344 #5211 #4245
266 * docs(faq): add faq re: typeKey #1886
267 * docs(query): add more detailed docs re: options #1702
268
2694.13.4 / 2017-11-17
270===================
271 * fix(aggregate): add chainable .option() helper for setting arbitrary options #5829
272 * fix(aggregate): add `.pipeline()` helper to get the current pipeline #5825
273 * docs: grammar fixes for `unique` FAQ #5823 [mfluehr](https://github.com/mfluehr)
274 * chore: add node 9 to travis #5822 [superheri](https://github.com/superheri)
275 * fix(model): fix infinite recursion with recursive embedded discriminators #5821 [Faibk](https://github.com/Faibk)
276
2774.13.3 / 2017-11-15
278===================
279 * chore: add node 8 to travis #5818 [superheri](https://github.com/superheri)
280 * fix(document): don't apply transforms to nested docs when updating already saved doc #5807
281
2824.13.2 / 2017-11-11
283===================
284 * feat(buffer): add support for subtype prop #5530
285
2864.13.1 / 2017-11-08
287===================
288 * fix: accept multiple paths or array of paths to depopulate #5798 #5797 [adamreisnz](https://github.com/adamreisnz)
289 * fix(document): pass default array as actual array rather than taking first element #5780
290 * fix(model): increment version when $set-ing it in a save() that requires a version bump #5779
291 * fix(query): don't explicitly project in discriminator key if user projected in parent path #5775 #5754
292 * fix(model): cast query option to geoNear() #5765
293 * fix(query): don't treat projection with just $slice as inclusive #5737
294 * fix(discriminator): defer applying embedded discriminator hooks until top-level model is compiled #5706
295 * docs(discriminator): add warning to always attach hooks before calling discriminator() #5706
296
2974.13.0 / 2017-11-02
298===================
299 * feat(aggregate): add $addFields helper #5740 [AyushG3112](https://github.com/AyushG3112)
300 * feat(connection): add connection-level bufferCommands #5720
301 * feat(connection): add createCollection() helper #5712
302 * feat(populate): support setting localField and foreignField to functions #5704 #5602
303 * feat(query): add multipleCastError option for aggregating cast errors when casting update #5609
304 * feat(populate): allow passing a function to virtual ref #5602
305 * feat(schema): add excludeIndexes option to optionally prevent collecting indexes from nested schemas #5575
306 * feat(model): report validation errors from `insertMany()` if using `ordered: false` and `rawResult: true` #5337
307 * feat(aggregate): add pre/post aggregate middleware #5251
308 * feat(schema): allow using `set` as a schema path #1939
309
3104.12.6 / 2017-11-01
311===================
312 * fix(schema): make clone() copy query helpers correctly #5752
313 * fix: undeprecate `ensureIndex()` and use it by default #3280
314
3154.12.5 / 2017-10-29
316===================
317 * fix(query): correctly handle `$in` and required for $pull and update validators #5744
318 * feat(aggegate): add $addFields pipeline operator #5740 [AyushG3112](https://github.com/AyushG3112)
319 * fix(document): catch sync errors in document pre hooks and report as error #5738
320 * fix(populate): handle slice projections correctly when automatically selecting populated fields #5737
321 * fix(discriminator): fix hooks for embedded discriminators #5706 [wlingke](https://github.com/wlingke)
322 * fix(model): throw sane error when customer calls `mongoose.Model()` over `mongoose.model()` #2005
323
3244.12.4 / 2017-10-21
325===================
326 * test(plugins): add coverage for idGetter with id as a schema property #5713 [wlingke](https://github.com/wlingke)
327 * fix(model): avoid copying recursive $$context object when creating discriminator after querying #5721
328 * fix(connection): ensure connection promise helpers are removed before emitting 'connected' #5714
329 * docs(schema): add notes about runSettersOnQuery to schema setters #5705
330 * fix(collection): ensure queued operations run on the next tick #5562
331
3324.12.3 / 2017-10-16
333===================
334 * fix(connection): emit 'reconnect' event as well as 'reconnected' for consistency with driver #5719
335 * fix: correctly bubble up left/joined events for replica set #5718
336 * fix(connection): allow passing in `autoIndex` as top-level option rather than requiring `config.autoIndex` #5711
337 * docs(connection): improve docs regarding reconnectTries, autoReconnect, and bufferMaxEntries #5711
338 * fix(query): handle null with addToSet/push/pull/pullAll update validators #5710
339 * fix(model): handle setDefaultsOnInsert option for bulkWrite updateOne and updateMany #5708
340 * fix(query): avoid infinite recursion edge case when cloning a buffer #5702
341
3424.12.2 / 2017-10-14
343===================
344 * docs(faq): add FAQ about using arrow functions for getters/setters, virtuals, and methods #5700
345 * docs(schema): document the childSchemas property and add to public API #5695
346 * fix(query): don't project in populated field if parent field is already projected in #5669
347 * fix: bump mongodb -> 2.2.33 for issue with autoReconnect #4513
348
3494.12.1 / 2017-10-08
350===================
351 * fix(document): create new doc when setting single nested, no more set() on copy of priorVal #5693
352 * fix(model): recursively call applyMethods on child schemas for global plugins #5690
353 * docs: fix bad promise lib example on home page #5686
354 * fix(query): handle false when checking for inclusive/exclusive projection #5685
355 * fix(discriminator): allow reusing child schema #5684
356 * fix: make addToSet() on empty array with subdoc trigger manual population #5504
357
3584.12.0 / 2017-10-02
359===================
360 * docs(validation): add docs coverage for ValidatorError.reason #5681
361 * feat(discriminator): always add discriminatorKey to base schema to allow updating #5613
362 * fix(document): make nested docs no longer inherit parent doc's schema props #5586 #5546 #5470
363 * feat(query): run update validators on $pull and $pullAll #5555
364 * feat(query): add .error() helper to query to error out in pre hooks #5520
365 * feat(connection): add dropCollection() helper #5393
366 * feat(schema): add schema-level collation option #5295
367 * feat(types): add `discriminator()` function for single nested subdocs #5244
368 * feat(document): add $isDeleted() getter/setter for better support for soft deletes #4428
369 * feat(connection): bubble up reconnectFailed event when driver gives up reconnecting #4027
370 * fix(query): report error if passing array or other non-object as filter to update query #3677
371 * fix(collection): use createIndex() instead of deprecated ensureIndex() #3280
372
3734.11.14 / 2017-09-30
374====================
375 * chore: add nsp check to the CI build #5679 [hairyhenderson](https://github.com/hairyhenderson)
376 * fix: bump mquery because of security issue with debug package #5677 #5675 [jonathanprl](https://github.com/jonathanprl)
377 * fix(populate): automatically select() populated()-ed fields #5669
378 * fix(connection): make force close work as expected #5664
379 * fix(document): treat $elemMatch as inclusive projection #5661
380 * docs(model/query): clarify which functions fire which