Skip to content

Commit e1d0293

Browse files
committed
release 4.0.2
1 parent 0683029 commit e1d0293

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

History.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
4.0.2 / 2015-04-23
2+
==================
3+
* fixed; error thrown when calling .validate() on subdoc not in an array #2902
4+
* fixed; rename define() to play nice with webpack #2900 [jspears](https://github.com/jspears )
5+
* fixed; pre validate called twice with discriminators #2892
6+
* fixed; .inspect() on mongoose.Types #2875
7+
* docs; correct callback params for Model.update #2872
8+
* fixed; setDefaultsOnInsert now works when runValidators not specified #2870
9+
* fixed; Document now wraps EventEmitter.addListener #2867
10+
* fixed; call non-hook functions in schema queue #2856
11+
* fixed; statics can be mocked out for tests #2848 [ninelb](https://github.com/ninelb)
12+
* upgraded; mquery 1.4.0 for bluebird bug fix #2846
13+
* fixed; required validators run first #2843
14+
* docs; improved docs for new option to findAndMody #2838
15+
* docs; populate example now uses correct field #2837 [swilliams](https://github.com/swilliams)
16+
* fixed; pre validate changes causing VersionError #2835
17+
* fixed; get path from correct place when setting CastError #2832
18+
* docs; improve docs for Model.update() function signature #2827 [irnc](https://github.com/irnc)
19+
* fixed; populating discriminators #2825 [chetverikov](https://github.com/chetverikov)
20+
* fixed; discriminators with nested schemas #2821
21+
* fixed; CastErrors with embedded docs #2819
22+
* fixed; post save hook context #2816
23+
* docs; 3.8.x -> 4.x migration guide #2807
24+
* fixed; proper _distinct copying for query #2765 [cdelauder](https://github.com/cdelauder)
25+
126
3.8.27 / 2015-04-22
227
===================
328
* fixed; dont duplicate db calls on Q.ninvoke() #2864

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mongoose",
33
"description": "Mongoose MongoDB ODM",
4-
"version": "4.0.2-pre",
4+
"version": "4.0.2",
55
"author": "Guillermo Rauch <[email protected]>",
66
"keywords": [
77
"mongodb",

0 commit comments

Comments
 (0)