dependabot npm(deps): bump mongoose from 6.10.0 to 7.0.2
Bumps mongoose from 6.10.0 to 7.0.2.
Release notes
Sourced from mongoose's releases.
7.0.2 / 2023-03-15
- fix: validate array elements when passing array path to validateSync() in pathsToValidate #13167 #13159
- fix(schema): propagate typeKey down to implicitly created subdocuments #13164 #13154
- fix(types): add index param to eachAsync fn #13153 krosenk729
- fix(types/documentarray): type DocumentArray constructor parameter as object #13089 #13087 lpizzinidev
- fix(types): type query
select()
as string, string[], or record; notany
#13146 #13142 rbereziuk- fix(types/query): change QueryOptions lean type to Record #13150 lpizzinidev
- docs: add and run eslint-plugin-markdown #13156 hasezoey
- docs(generateSearch): fix search generation for API #13161 hasezoey
- docs(generateSearch): move config missing error to require #13160 hasezoey
- chore: remove unused docs libraries #13172 hasezoey
7.0.1 / 2023-03-06
- fix(aggregate): added await to prevent exception in aggregate exec #13126 lpizzinidev
- fix(types): handle Record as value for HydratedDocument TOverrides parameter #13123 #13094
- fix(types): remove "update" function #13120 hasezoey
- docs(compatibility): added mongoDB server compatibility for mongoose 7 #13102 lpizzinidev
- docs: Updated callback method for Model.findOne() #13096 Arghyahub
- chore: update github actions to not use ubuntu-18.04 anymore #13137 hasezoey
7.0.0 / 2023-02-27
- BREAKING CHANGE: copy schema options when merging schemas using new Schema() or Schema.prototype.add() #13092
- feat(types): export mongodb types more robustly #12948 simon-abbott
- docs: fix populate docs #13090 hasezoey
- docs(migrating_to_6): added info about removal of reconnectTries and reconnectInterval options #13083 lpizzinidev
7.0.0-rc0 / 2023-02-23
- BREAKING CHANGE: remove support for callbacks #11431
- BREAKING CHANGE: upgrade to MongoDB node driver 5.x, bson 5.x #12955
- BREAKING CHANGE: make
strictQuery: false
by default #11861 #11807 #11514- BREAKING CHANGE: remove support for setting schema path definitions to primitives, except
_id: false
#12832 #7558 lpizzinidev- BREAKING CHANGE: discriminator schemas now inherit base schema options by default #12928 #12135
- BREAKING CHANGE: orFail() now throws on updateOne() and updateMany() if matchedCount === 0, not modifiedCount === 0 #11620
- BREAKING CHANGE: remove support for custom promise libraries #12878 #12872 lpizzinidev
- BREAKING CHANGE: select('name -path') behaves as select('name') if path has schema-level select: true #11694
- BREAKING CHANGE(types): remove support for document interfaces that extends Document #11615
- BREAKING CHANGE: pluralize 'human' as 'humans', not 'humen' #13037
- BREAKING CHANGE: renamed schema option supressReservedKeysWarning -> suppressReservedKeysWarning #11495
- BREAKING CHANGE: remove unused DisconnectedError #13028 lpizzinidev
- BREAKING CHANGE: remove unsupported query options maxScan and snapshot #13023 #13022 hasezoey
6.10.1 / 2023-03-03
- fix: avoid removing empty query filters in
$and
and$or
#13086 #12898- fix(schematype): fixed validation for required UUID field #13018 lpizzinidev
- fix(types): add missing Paths generic param to
Model.populate()
#13070
... (truncated)
Changelog
Sourced from mongoose's changelog.
7.0.2 / 2023-03-15
- fix: validate array elements when passing array path to validateSync() in pathsToValidate #13167 #13159
- fix(schema): propagate typeKey down to implicitly created subdocuments #13164 #13154
- fix(types): add index param to eachAsync fn #13153 krosenk729
- fix(types/documentarray): type DocumentArray constructor parameter as object #13089 #13087 lpizzinidev
- fix(types): type query
select()
as string, string[], or record; notany
#13146 #13142 rbereziuk- fix(types/query): change QueryOptions lean type to Record #13150 lpizzinidev
- docs: add and run eslint-plugin-markdown #13156 hasezoey
- docs(generateSearch): fix search generation for API #13161 hasezoey
- docs(generateSearch): move config missing error to require #13160 hasezoey
- chore: remove unused docs libraries #13172 hasezoey
6.10.3 / 2023-03-13
- fix(connection): add stub implementation of doClose to base connection class #13157
- fix(types): add cursor.eachAsync index parameter #13162 #13153 hasezoey
- docs: fix 6.x docs sidebar links #13147 #13144 hasezoey
- docs(validation): clarify that validation runs as first pre(save) middleware #13062
6.10.2 / 2023-03-07
- fix(document): avoid setting array default if document array projected out by sibling projection #13135 #13043 #13003
- fix(documentarray): set correct document array path if making map of document arrays #13133
- fix: undo accidental change to
engines
inpackage.json
#13124 lorand-horvath- docs: quick improvement to Model.init() docs #13054
7.0.1 / 2023-03-06
- fix(aggregate): added await to prevent exception in aggregate exec #13126 lpizzinidev
- fix(types): handle Record as value for HydratedDocument TOverrides parameter #13123 #13094
- fix(types): remove "update" function #13120 hasezoey
- docs(compatibility): added mongoDB server compatibility for mongoose 7 #13102 lpizzinidev
- docs: Updated callback method for Model.findOne() #13096 Arghyahub
- chore: update github actions to not use ubuntu-18.04 anymore #13137 hasezoey
6.10.1 / 2023-03-03
- fix: avoid removing empty query filters in
$and
and$or
#13086 #12898- fix(schematype): fixed validation for required UUID field #13018 lpizzinidev
- fix(types): add missing Paths generic param to
Model.populate()
#13070- docs(migrating_to_6): added info about removal of reconnectTries and reconnectInterval options #13083 lpizzinidev
- docs: fix code in headers for migrating_to_5 #13077 hasezoey
- docs: backport misc documentation changes into 6.x #13091 hasezoey
7.0.0 / 2023-02-27
- BREAKING CHANGE: copy schema options when merging schemas using new Schema() or Schema.prototype.add() #13092
- feat(types): export mongodb types more robustly #12948 simon-abbott
- docs: fix populate docs #13090 hasezoey
... (truncated)
Commits
-
dee22ce
chore: release 7.0.2 -
f40b659
Merge pull request #13172 from hasezoey/removeUnusedLib -
e531b00
chore: remove docs library "cookies" -
9ebd795
chore: remove docs library "zepto" -
339bf68
Merge pull request #13156 from hasezoey/eslintMarkdownCode -
c05ba1a
Merge pull request #13167 from Automattic/vkarpov15/gh-13159 -
2fedff1
Merge pull request #13164 from Automattic/vkarpov15/gh-13154 -
5e3a4e7
chore: undo accidental change of Node version in package.json from 6.x merge -
0903cd4
style: apply eslint fixes to last master merge -
0357443
Merge branch 'master' into eslintMarkdownCode - Additional commits viewable in compare view