Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.0 #13937

Merged
merged 123 commits into from
Oct 24, 2023
Merged

8.0 #13937

Changes from 1 commit
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
61e9041
made the changes but some failing tests
IslandRhythms Jul 17, 2023
d9fd789
Merge branch 'IslandRhythms/gh-13369' of github.com:Automattic/mongoo…
vkarpov15 Jul 17, 2023
5954b30
remove `count()`
IslandRhythms Jul 18, 2023
c507968
allow null values for enum
IslandRhythms Jul 18, 2023
886c941
fix:lint
IslandRhythms Jul 18, 2023
66c4a8e
throw error after all the saves are done
IslandRhythms Jul 18, 2023
1e3c96f
fix:lint
IslandRhythms Jul 18, 2023
363f2aa
remove count from one more spot
vkarpov15 Jul 18, 2023
760c187
Update schema.validation.test.js
vkarpov15 Jul 18, 2023
1a69e7c
Merge pull request #13618 from Automattic/IslandRhythms/gh-13598
vkarpov15 Jul 18, 2023
fffa85d
Merge pull request #13620 from Automattic/IslandRhythms/gh-3044
vkarpov15 Jul 18, 2023
6254c9c
made adjustments
IslandRhythms Jul 19, 2023
2798cfd
Merge pull request #13621 from Automattic/IslandRhythms/4628
vkarpov15 Jul 19, 2023
dd56c53
feat: change all symbols to use a consistent name
hasezoey Jul 21, 2023
cdad34b
Merge pull request #13641 from hasezoey/8consistentSymbol
vkarpov15 Jul 25, 2023
92876b5
Merge branch 'master' into 8.0
vkarpov15 Jul 26, 2023
df6ad8e
Merge branch '8.0' into IslandRhythms/gh-13369
vkarpov15 Jul 26, 2023
9fbed32
BREAKING CHANGE: make model.prototype.deleteOne() return query, not p…
vkarpov15 Jul 26, 2023
c9a8f16
Merge pull request #13660 from Automattic/IslandRhythms/gh-13369
vkarpov15 Aug 1, 2023
69beff1
upgrade eslint packages
AbdelrahmanHafez Aug 2, 2023
1442574
add parserOptions to eslint ts files
AbdelrahmanHafez Aug 2, 2023
4bbf929
try linting using node 18
AbdelrahmanHafez Aug 2, 2023
16ff5cd
use node 14 for tsd
AbdelrahmanHafez Aug 2, 2023
d52b0c0
Merge branch 'master' into 8.0
vkarpov15 Aug 3, 2023
746e4a7
Merge pull request #13694 from Automattic/upgrade-eslint
vkarpov15 Aug 3, 2023
03877e9
Merge branch 'master' into 8.0
vkarpov15 Aug 18, 2023
750c6e2
BREAKING CHANGE: use MongoDB node driver 6, drop support for `rawResu…
vkarpov15 Aug 18, 2023
ae68be8
Merge branch 'master' into 8.0
vkarpov15 Aug 24, 2023
c833ee2
BREAKING CHANGE: stop using mquery for `updateX()`, `deleteX()`, `sor…
vkarpov15 Aug 24, 2023
f4f69e3
Merge pull request #13777 from Automattic/vkarpov15/gh-13617
vkarpov15 Aug 25, 2023
633f3b9
Merge branch 'master' into 8.0
vkarpov15 Aug 31, 2023
baf703c
BREAKING CHANGE: use mongodb driver 6.0.0, bson ^6.0.0
vkarpov15 Aug 31, 2023
68790ee
Merge branch '8.0' of github.com:Automattic/mongoose into 8.0
vkarpov15 Aug 31, 2023
f9d17ff
BREAKING CHANGE: require Node 16
vkarpov15 Sep 1, 2023
719cf19
test: fix tests for bson ObjectId no longer allowing 12 char strings
vkarpov15 Sep 1, 2023
db8f62c
test: fix tests
vkarpov15 Sep 1, 2023
92151a9
docs: add migrating to 8 docs
vkarpov15 Sep 1, 2023
8dee6eb
Merge branch '8.0' into vkarpov15/mongodb-node-driver-6
vkarpov15 Sep 1, 2023
9eccbb6
docs: fix markdown lint
vkarpov15 Sep 1, 2023
e3101ae
Update docs/migrating_to_8.md
vkarpov15 Sep 1, 2023
e16da72
Merge branch 'master' into 8.0
vkarpov15 Sep 5, 2023
e7f74c8
BREAKING CHANGE: make `Model.validate()` use `Model.castObject()` to …
vkarpov15 Sep 5, 2023
b951883
BREAKING CHANGE: Safer types for `Model.distinct` and `Query.distinct`.
kaulsh Sep 7, 2023
6c01869
BREAKING CHANGE: rename SchemaType classes to consistently start with…
vkarpov15 Sep 7, 2023
1f79e2c
Merge pull request #13836 from kaulshashank/safer-distinct-return-type
vkarpov15 Sep 8, 2023
49a00ea
Merge pull request #13827 from Automattic/vkarpov15/gh-12668
vkarpov15 Sep 8, 2023
771a304
BREAKING CHANGE: apply minimize by default when updating document
vkarpov15 Sep 8, 2023
4d281a1
Merge branch 'master' into 8.0
vkarpov15 Sep 8, 2023
9664809
Merge branch '8.0' of github.com:Automattic/mongoose into 8.0
vkarpov15 Sep 8, 2023
b36fd11
fix(discriminator): make base schema paths come before discriminator …
vkarpov15 Sep 9, 2023
6ddbcb8
Update lib/helpers/minimize.js
vkarpov15 Sep 12, 2023
7661bec
BREAKING CHANGE: rename top-level files to camel case
vkarpov15 Sep 12, 2023
312dcda
Merge pull request #13857 from Automattic/vkarpov15/gh-13308
vkarpov15 Sep 14, 2023
5aff0a9
Merge branch 'master' into 8.0
vkarpov15 Sep 14, 2023
1c1ba69
refactor: address code review comments by moving tree copy into merge…
vkarpov15 Sep 14, 2023
3211b45
Merge branch '8.0' into vkarpov15/gh-13309
vkarpov15 Sep 14, 2023
d6982ed
refactor: use camelCase for schematype file names
vkarpov15 Sep 14, 2023
6d0b072
Merge pull request #13837 from Automattic/vkarpov15/gh-13309
vkarpov15 Sep 14, 2023
7b5b354
Merge branch '8.0' into vkarpov15/gh-13794
vkarpov15 Sep 15, 2023
71fce29
Merge pull request #13846 from Automattic/vkarpov15/gh-13794
vkarpov15 Sep 15, 2023
17d6987
Merge branch '8.0' into vkarpov15/mongodb-node-driver-6
vkarpov15 Sep 15, 2023
824bc42
Merge branch 'vkarpov15/mongodb-node-driver-6' of github.com:Automatt…
vkarpov15 Sep 15, 2023
6d10a1f
fix(model): correctly pass session when calling Document.prototype.de…
vkarpov15 Sep 15, 2023
31517c7
Merge pull request #13753 from Automattic/vkarpov15/mongodb-node-driv…
vkarpov15 Sep 15, 2023
200a94c
remove id setter
IslandRhythms Sep 15, 2023
ef6282d
chore(docs/source/api): fix filenames
hasezoey Sep 15, 2023
77d5b19
Merge pull request #13864 from Automattic/IslandRhythms/remove-id-setter
vkarpov15 Sep 15, 2023
e8e187f
undo PR 13854
IslandRhythms Sep 18, 2023
4b35a71
Merge pull request #13877 from Automattic/IslandRhythms/undo-13854
vkarpov15 Sep 19, 2023
01202a5
Merge pull request #13865 from hasezoey/fixDocFilename
vkarpov15 Sep 25, 2023
2348b7a
docs(migrating_to_8): add id setter change to migration guide
vkarpov15 Sep 26, 2023
8527c8d
Merge branch '8.0' into vkarpov15/gh-13782
vkarpov15 Sep 26, 2023
d5e9176
Merge pull request #13843 from Automattic/vkarpov15/gh-13782
vkarpov15 Sep 26, 2023
905b28b
BREAKING CHANGE: allow `null` for optional fields in TypeScript
vkarpov15 Sep 26, 2023
5cbe563
docs(migrating_to_8): add note about `null` for optional keys in Type…
vkarpov15 Sep 26, 2023
11ae61f
Merge branch 'master' into 8.0
vkarpov15 Sep 26, 2023
9aa8cdf
Update docs/migrating_to_8.md
vkarpov15 Sep 28, 2023
3ec26a0
BREAKING CHANGE: rename lib/index.js -> lib/mongoose.js
vkarpov15 Sep 28, 2023
2b9bb5d
BREAKING CHANGE: add back lib/index.js as a wrapper around lib/mongoo…
vkarpov15 Sep 28, 2023
d808a54
BREAKING CHANGE: use mongooseCollection for all query operations
vkarpov15 Sep 28, 2023
9c5c2da
chore: rename ArraySubdocument -> arraySubdocument
vkarpov15 Sep 29, 2023
d7ff262
chore: rename ArraySubdocument -> arraySubdocument
vkarpov15 Sep 29, 2023
51a590f
test: add test case re: #13145, #13903
vkarpov15 Sep 29, 2023
e18378d
chore: some more file renames to camelCase
vkarpov15 Sep 29, 2023
8e9ae87
BREAKING CHANGE: camelCase remaining file names
vkarpov15 Sep 30, 2023
eb3f23d
docs: correct filenames
vkarpov15 Sep 30, 2023
e1999be
fix: push up missing files re: #13308
vkarpov15 Sep 30, 2023
0d92202
docs(migrating_to_8): fix no ending-new-line (lint)
hasezoey Oct 1, 2023
fb5b6e8
Merge pull request #13909 from Automattic/vkarpov15/gh-13308-2
vkarpov15 Oct 1, 2023
73f9412
Merge pull request #13910 from hasezoey/fixmd
vkarpov15 Oct 3, 2023
0cc0ac3
Merge branch '8.0' into vkarpov15/gh-12748
vkarpov15 Oct 4, 2023
f7afc96
Merge pull request #13901 from Automattic/vkarpov15/gh-12748
vkarpov15 Oct 4, 2023
9ce4153
Merge branch 'master' into 8.0
vkarpov15 Oct 4, 2023
b8d40f1
fix merge conflicts
vkarpov15 Oct 4, 2023
6e8e06b
Merge branch '8.0' into vkarpov15/gh-4292-2
vkarpov15 Oct 4, 2023
1494a84
fix another merge conflict
vkarpov15 Oct 4, 2023
65aef58
Merge pull request #13905 from Automattic/vkarpov15/gh-4292-2
vkarpov15 Oct 4, 2023
24b6c3b
feat: bump mongodb -> 6.1.0
vkarpov15 Oct 5, 2023
352bf5f
fix(document): fix import file naming
hasezoey Oct 7, 2023
e159400
Merge pull request #13950 from hasezoey/fiximport
vkarpov15 Oct 9, 2023
81cba56
Merge branch 'master' into 8.0
vkarpov15 Oct 13, 2023
f6e5a50
docs: add note about deleteOne() changes re: #13369
vkarpov15 Oct 13, 2023
d14e94d
BREAKING CHANGE: remove support for overwrite option setting findOneA…
vkarpov15 Oct 17, 2023
f50d88d
refactor: avoid relying on overwrite option for timestamps and castin…
vkarpov15 Oct 17, 2023
7722af4
refactor: remove `overwrite` from castUpdate
vkarpov15 Oct 17, 2023
f6ed0eb
refactor: remove remaining usage of `overwrite` option
vkarpov15 Oct 17, 2023
4a2cb0b
types(models): make all properties to Model constructor optional
vkarpov15 Oct 17, 2023
eefe935
Merge branch 'master' into 8.0
vkarpov15 Oct 19, 2023
b630afb
docs(migrating_to_8): add missing issues to migration guide
vkarpov15 Oct 19, 2023
c5b16fe
test: add additional assert re: code review comment
vkarpov15 Oct 19, 2023
84ac690
Merge branch '8.0' into vkarpov15/gh-13578
vkarpov15 Oct 20, 2023
d6cd1db
test: fix a couple of failing tests
vkarpov15 Oct 20, 2023
c7f110e
docs(migrating_to_8): add note about `overwrite` to migration guide
vkarpov15 Oct 20, 2023
8fe5c36
docs: fix lint
vkarpov15 Oct 20, 2023
ce66e23
fix lint
vkarpov15 Oct 20, 2023
30888e3
test: fix typescript tests
vkarpov15 Oct 20, 2023
f923f6c
Merge pull request #13989 from Automattic/vkarpov15/gh-13578
vkarpov15 Oct 24, 2023
8d61a7d
Merge branch '8.0' into vkarpov15/gh-13897
vkarpov15 Oct 24, 2023
d3d2ec4
docs(migrating_to_8): add note about #13897 to migration guide
vkarpov15 Oct 24, 2023
9e9ad37
Merge branch 'master' into 8.0
vkarpov15 Oct 24, 2023
b567ec6
feat: upgrade to MongoDB driver 6.2.0
vkarpov15 Oct 24, 2023
572e018
chore: add 8.0.0-rc0 changelog
vkarpov15 Oct 24, 2023
502ec4b
Merge pull request #13990 from Automattic/vkarpov15/gh-13897
vkarpov15 Oct 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove count from one more spot
  • Loading branch information
vkarpov15 committed Jul 18, 2023
commit 363f2aa69570318381673c1616fa9e54560e7b91
1 change: 0 additions & 1 deletion lib/helpers/query/validOps.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

module.exports = Object.freeze([
// Read
'count',
'countDocuments',
'distinct',
'estimatedDocumentCount',
Expand Down