Skip to content
Merged

5.0 #5942

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
42bcb34
chore: now working on 5.0.0
vkarpov15 Nov 6, 2017
da2cdd0
chore: dont run tests on node < 4
vkarpov15 Nov 6, 2017
a928bd3
Merge branch 'master' into 5.0
vkarpov15 Nov 7, 2017
dda165e
BREAKING CHANGE: remove open(), openSet(), stream()
vkarpov15 Nov 7, 2017
8d1e12b
fix(aggregate): use `.toArray()` because aggregate always returns cur…
vkarpov15 Nov 7, 2017
08258d3
BREAKING CHANGE: make `mongoose.connect()` always return a promise
vkarpov15 Nov 7, 2017
22776c3
Merge branch 'master' into 5.0
vkarpov15 Nov 13, 2017
f2e8659
Merge branch '5.0' into 5791
vkarpov15 Nov 13, 2017
8ce7060
fix: clean up some issues with useDb() and driver 3.0
vkarpov15 Nov 13, 2017
e633c3f
test(connection): clean up test
vkarpov15 Nov 13, 2017
63f3164
fix: clean up mapReduce tests re: #5816
vkarpov15 Nov 13, 2017
b653fd7
refactor: clean up really messy mapreduce tests re: #5816
vkarpov15 Nov 13, 2017
6056de4
style: lint fixes
vkarpov15 Nov 13, 2017
42c2c1b
refactor: remove "unauthorized" connection state and clean up domain …
vkarpov15 Nov 15, 2017
c65b789
docs: add migration notes
vkarpov15 Nov 15, 2017
e67ab67
fix(connection): handle small issues with error and reconnectFailed e…
vkarpov15 Nov 16, 2017
c766793
test: fix tests
vkarpov15 Nov 16, 2017
f60dbc1
style: fix lint re: #5791
vkarpov15 Nov 16, 2017
6a97e03
chore: use forked mongodb driver to hopefully work around travis + gi…
vkarpov15 Nov 16, 2017
95aca8e
chore: use tarball url instead of git+ssh
vkarpov15 Nov 16, 2017
d2ed0aa
refactor(index): remove MongooseThenable
vkarpov15 Nov 16, 2017
b07867a
docs: add note re #5796
vkarpov15 Nov 16, 2017
8983671
fix: consistently use callback form for aggregate cursor re: #5791
vkarpov15 Nov 16, 2017
d9258ac
style: fix lint
vkarpov15 Nov 16, 2017
19e3b79
BREAKING CHANGE: remove legacy async validator support, and support c…
vkarpov15 Nov 20, 2017
d385baa
Merge branch 'master' into 5.0
vkarpov15 Nov 22, 2017
de8819b
Merge branch '5.0' into 5791
vkarpov15 Nov 22, 2017
632f8a7
Merge branch '5.0' into 5824
vkarpov15 Nov 22, 2017
b27b831
style: fix lint
vkarpov15 Nov 22, 2017
b29a84a
chore: bump lockfile
vkarpov15 Nov 23, 2017
0520ffa
Merge pull request #5815 from Automattic/5791
vkarpov15 Nov 23, 2017
964ad97
Merge branch '5.0' into 5824
vkarpov15 Nov 23, 2017
953359b
test: fix tests re: #5824
vkarpov15 Nov 23, 2017
5536cb1
Merge pull request #5838 from Automattic/5824
vkarpov15 Nov 23, 2017
8e771f7
Merge branch 'master' into 5.0
vkarpov15 Nov 25, 2017
bb41fd3
BREAKING CHANGE: treat all non-whitelisted values as cast errors for …
vkarpov15 Nov 25, 2017
2304a69
chore: use indexOf() instead of includes()
vkarpov15 Nov 26, 2017
5a6ce20
BREAKING CHANGE: remove dontThrowCastError option for update(), alway…
vkarpov15 Nov 26, 2017
9a2e325
BREAKING CHANGE: run setters in order as opposed to reverse
vkarpov15 Nov 26, 2017
264ae6f
docs: add note re: #4835
vkarpov15 Nov 26, 2017
22b5b4f
chore: use strict in schematype.js
vkarpov15 Nov 26, 2017
469cab3
Merge branch 'master' into 5.0
vkarpov15 Nov 30, 2017
ef25d0c
chore: fix build
vkarpov15 Nov 30, 2017
cc4c959
BREAKING CHANGE: disallow passing a spread of pipeline operators to a…
vkarpov15 Nov 30, 2017
49ac126
chore: bump lockfile
vkarpov15 Nov 30, 2017
b0c94a3
style: fix lint
vkarpov15 Nov 30, 2017
7d329a8
Merge branch 'master' into 5.0
vkarpov15 Dec 3, 2017
197371f
fix(connection): use new async URI parser API from driver 3.0
vkarpov15 Dec 3, 2017
dacf3f0
style: fix lint
vkarpov15 Dec 3, 2017
e4ecd28
chore: bump lockfile
vkarpov15 Dec 3, 2017
79ea021
BREAKING CHANGE: remove passRawResult, only allow rawResult
vkarpov15 Dec 4, 2017
22733a2
refactor: add PoC for only returning promise if callback not specified
vkarpov15 Dec 4, 2017
796e3b0
chore: bump lockfile
vkarpov15 Dec 4, 2017
cbb9903
chore: add use strict to fix build
vkarpov15 Dec 4, 2017
b10d520
Merge branch 'master' into 5.0
vkarpov15 Dec 5, 2017
82aeba5
BREAKING CHANGE: use $push with $each instead of $pushAll, drop suppo…
vkarpov15 Dec 5, 2017
e767661
chore: fix build re: #5670
vkarpov15 Dec 5, 2017
e7698f0
chore: fix build against driver 3.0.0-rc0 re: #5791
vkarpov15 Dec 5, 2017
b72bd49
Merge branch 'master' into 5.0
vkarpov15 Dec 6, 2017
b2db31c
BREAKING CHANGE: remove pluralization, instead add `mongoose.pluraliz…
vkarpov15 Dec 6, 2017
7bfd05a
BREAKING CHANGE: remove retainKeyOrder modulo mquery, always clone ob…
vkarpov15 Dec 6, 2017
ba6de2a
docs: add notes re #2749
vkarpov15 Dec 6, 2017
c7562bc
style: fix lint re: #2749
vkarpov15 Dec 6, 2017
402d947
BREAKING CHANGE: upgrade mquery to 3.0.0 and remove last vestiges of …
vkarpov15 Dec 6, 2017
4471cdd
fix: eliminate string check, allow invalid date creation to trigger c…
sobafuchs Dec 8, 2017
c4ea3f7
test: add spec for schema date casting
sobafuchs Dec 8, 2017
2fa1b09
chore: eliminate unused var
sobafuchs Dec 8, 2017
245932b
feat: throw error if user sets unique index on _id
sobafuchs Dec 8, 2017
3b7a3f7
test(wip): spec for index on _id
sobafuchs Dec 8, 2017
2bedc7a
Merge branch 'master' into 5.0
vkarpov15 Dec 10, 2017
9d39a7f
chore: bump lockfile
vkarpov15 Dec 10, 2017
89a6531
BREAKING CHANGE: aggregate() no longer returns a promise if cb specified
vkarpov15 Dec 10, 2017
c29f754
style: fix lint
vkarpov15 Dec 10, 2017
dd14ddd
refactor(connection): don't return promise if CB specified re: #3670
vkarpov15 Dec 10, 2017
2afb62f
refactor: AggregationCursor re: #3670
vkarpov15 Dec 10, 2017
922cc2d
refactor: QueryCursor re: #3670
vkarpov15 Dec 10, 2017
9c77f84
Fixed issues https://github.com/Automattic/mongoose/issues/5139. Fixe…
wlingke Dec 11, 2017
e3bbde6
Adds https://github.com/Automattic/mongoose/issues/4973.
wlingke Dec 11, 2017
152a3e3
WIP: https://github.com/Automattic/mongoose/issues/4131. Current road…
wlingke Dec 11, 2017
a3411dd
chore: bump mongodb version -> rc0
vkarpov15 Dec 11, 2017
a55533c
BREAKING CHANGE: remove pre-compiled browser bundle
vkarpov15 Dec 11, 2017
c75e43c
refactor(browserDocument): use applyHooks re: #3670
vkarpov15 Dec 11, 2017
b714339
refactor: use promiseOrCallback() in document and model
vkarpov15 Dec 11, 2017
2116394
refactor: use promiseOrCallback() for geoNear and mapReduce re: #3670
vkarpov15 Dec 11, 2017
89c579a
refactor: use promiseOrCallback() for all remaining files
vkarpov15 Dec 11, 2017
26d8a92
style: fix lint
vkarpov15 Dec 11, 2017
8652e3a
chore: use strict mode in test
vkarpov15 Dec 11, 2017
fd63caf
chore: remove broken test
vkarpov15 Dec 11, 2017
ea8938a
Merge branch 'master' into 5.0
vkarpov15 Dec 12, 2017
6946d2b
chore: remove unused dep
vkarpov15 Dec 12, 2017
938dd09
BREAKING CHANGE: use native promises rather than mpromise by default
vkarpov15 Dec 12, 2017
50f678e
chore: add strict
vkarpov15 Dec 12, 2017
e7acadd
test: cleanup unhandled rejections re: #2917
vkarpov15 Dec 12, 2017
dd96294
test: fix tests
vkarpov15 Dec 12, 2017
92d5a8c
chore: some minor tweaks
vkarpov15 Dec 12, 2017
a814d53
Merge pull request #5892 from wlingke/5.0-array-length
vkarpov15 Dec 12, 2017
82b4320
Merge pull request #5880 from Automattic/5395
vkarpov15 Dec 12, 2017
38c1a32
test: fix tests
vkarpov15 Dec 12, 2017
623538a
Merge pull request #5893 from wlingke/5.0-saveErrorIfNotFound-default…
vkarpov15 Dec 12, 2017
c7be9a3
BREAKING CHANGE: remove saveErrorIfNot found
vkarpov15 Dec 12, 2017
a1b5354
BREAKING CHANGE: remove getSettersOnQuery, always run setters
vkarpov15 Dec 13, 2017
409a88d
chore: add notes re: support for node 4 and mongodb 3
vkarpov15 Dec 13, 2017
d175226
BREAKING CHANGE: allow default `_id` in queries, break support for Mo…
vkarpov15 Dec 13, 2017
8d46a17
feat: throw on unique index on _id
sobafuchs Dec 13, 2017
a506720
refactor: check for unique in schema.prototype.path setter
sobafuchs Dec 13, 2017
fec9a16
BREAKING CHANGE: remove old hooks lib, use kareem for document hooks …
vkarpov15 Dec 16, 2017
36879c6
chore: revert changes to Model.hydrate() re: #3232
vkarpov15 Dec 16, 2017
55a3f99
Merge pull request #5902 from Automattic/5340
vkarpov15 Dec 17, 2017
967a8f0
test: fix remaining tests re: #3232
vkarpov15 Dec 17, 2017
4bfa3cf
chore: use latest kareem, remove hooks re: #3232
vkarpov15 Dec 18, 2017
c9f0ea8
Merge pull request #5909 from Automattic/3232
vkarpov15 Dec 18, 2017
46239bf
Merge branch 'master' into 5.0
vkarpov15 Dec 19, 2017
7ccc3e8
Merge branch '5.0' of github.com:Automattic/mongoose into 5.0
vkarpov15 Dec 19, 2017
7c41ccb
style: fix lint
vkarpov15 Dec 19, 2017
3d53d54
chore: remove console.log
vkarpov15 Dec 19, 2017
a672a67
test: fix tests
vkarpov15 Dec 19, 2017
407d816
Merge branch '5.0' into varun/5820
vkarpov15 Dec 20, 2017
fd6c844
Merge branch 'varun/5820' of github.com:Automattic/mongoose into varu…
vkarpov15 Dec 19, 2017
7affdc8
test: fix tests
vkarpov15 Dec 20, 2017
b197070
fix(model): always emit index errors unless catch on $init
vkarpov15 Dec 20, 2017
ea64182
Merge pull request #5882 from Automattic/varun/5820
vkarpov15 Dec 20, 2017
d1e3a98
chore: fix build
vkarpov15 Dec 20, 2017
383f240
chore: fix build re: #5910
vkarpov15 Dec 20, 2017
bb82fd2
BREAKING CHANGE: treat throwing sync `error` in hooks as calling `nex…
vkarpov15 Dec 21, 2017
8cc5600
chore: bump lockfile
vkarpov15 Dec 21, 2017
364dc9c
refactor: remove utils.assign(), use built-in Object.assign() instead
vkarpov15 Dec 21, 2017
be6fcda
BREAKING CHANGE: return server result rather than entire WriteOpResul…
vkarpov15 Dec 21, 2017
a826997
Merge pull request #5930 from wlingke/5.0-merge-$toObject
vkarpov15 Dec 21, 2017
6517301
BREAKING CHANGE: merge rather than overwrite toObject() and toJSON() …
vkarpov15 Dec 22, 2017
9a1c760
chore: fix build
vkarpov15 Dec 22, 2017
c7db997
Merge pull request #5932 from Automattic/4131
vkarpov15 Dec 22, 2017
ef37af4
feat: support returning promises from middleware functions
vkarpov15 Dec 22, 2017
580983a
BREAKING CHANGE: deduplicate middleware when merging discriminator hooks
vkarpov15 Dec 22, 2017
6a9b504
style: fix lint
vkarpov15 Dec 23, 2017
b69517c
chore: undo accidental changes
vkarpov15 Dec 23, 2017
b8f8a2f
chore: fix build on node 4 + 5
vkarpov15 Dec 23, 2017
c2a35d3
chore: fix node 4+5 build (again)
vkarpov15 Dec 23, 2017
a1711a5
chore: add missing strict mode
vkarpov15 Dec 23, 2017
2531e25
chore: build fix again
vkarpov15 Dec 23, 2017
f4065c3
BREAKING CHANGE: update only casts in `exec()`, not in individual calls
vkarpov15 Dec 24, 2017
46dd3e9
Merge branch 'master' into 5.0
vkarpov15 Dec 25, 2017
4f65012
chore: fix tests
vkarpov15 Dec 25, 2017
b1a504c
BREAKING CHANGE: don't cast remove(), deleteX() until exec()
vkarpov15 Dec 25, 2017
970a53c
docs: add test and docs re: #4740
vkarpov15 Dec 25, 2017
94f35dc
BREAKING CHANGE: distinct re: #3529
vkarpov15 Dec 25, 2017
7ec5862
BREAKING CHANGE: update to driver 3.0.1 and remove geoNear()
vkarpov15 Dec 25, 2017
eaff417
Merge branch '5.0' into 5877
vkarpov15 Dec 25, 2017
f910f0f
fix: use mongoose-legacy-pluralize by default
vkarpov15 Dec 26, 2017
f900a41
chore: address CR comment
vkarpov15 Dec 26, 2017
a2a2796
chore: bump mongoose-legacy-pluralize to avoid node 4 build failures
vkarpov15 Dec 26, 2017
fe564f0
Merge pull request #5878 from Automattic/5877
vkarpov15 Dec 26, 2017
0aa7cb5
BREAKING CHANGE: move applyQueryMiddleware() to compile step
vkarpov15 Dec 27, 2017
30abded
Merge branch '5.0' of github.com:Automattic/mongoose into 5.0
vkarpov15 Dec 27, 2017
f8b28cb
docs: add headers for migrating_to_5.md
vkarpov15 Dec 27, 2017
05e19bc
Merge branch 'master' into 5.0
vkarpov15 Dec 27, 2017
99477b6
BREAKING CHANGE: remove legacy agg cursor
vkarpov15 Dec 27, 2017
ac896c6
style: fix lint
vkarpov15 Dec 27, 2017
f3ebecd
docs(guide): remove bit about retainKeyOrder
vkarpov15 Dec 27, 2017
7686df9
Merge branch 'master' into 5.0
vkarpov15 Dec 28, 2017
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extends: 'eslint:recommended'

env:
es6: true
node: true
mocha: true

Expand Down
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ node_js:
- "6"
- "5"
- "4"
- "0.12"
- "0.10"
- "iojs"
before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.11.tgz
- tar -zxvf mongodb-linux-x86_64-2.6.11.tgz
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.15.tgz
- tar -zxvf mongodb-linux-x86_64-3.0.15.tgz
- mkdir -p ./data/db/27017
- mkdir -p ./data/db/27000
- ./mongodb-linux-x86_64-2.6.11/bin/mongod --fork --nopreallocj --dbpath ./data/db/27017 --syslog --port 27017
- ./mongodb-linux-x86_64-3.0.15/bin/mongod --storageEngine mmapv1 --fork --nopreallocj --dbpath ./data/db/27017 --syslog --port 27017
script:
- npm test
- npm run lint
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,3 @@ copylegacy:
rm -rf ./tmp

.PHONY: test test-short test-long ghpages site docs docclean gendocs docs_from_master docs_unstable master copytmp copyunstable gitreset docclean_unstable

browser:
npm install `node format_deps.js`
./node_modules/browserify/bin/cmd.js -o ./bin/mongoose.js lib/browser.js
./node_modules/uglify-js/bin/uglifyjs ./bin/mongoose.js -o ./bin/mongoose.min.js --screw-ie8 -c -m
62 changes: 0 additions & 62 deletions bin/browser_debug.html

This file was deleted.

Loading