dependabot npm(deps): bump mongoose from 6.6.0 to 6.6.3
Bumps mongoose from 6.6.0 to 6.6.3.
Release notes
Sourced from mongoose's releases.
6.6.3 / 2022-09-30
- fix(query): treat findOne(_id) as equivalent to findOne({ _id }) #12485 #12325
- fix(timestamps): findOneAndUpdate creates subdocs with timestamps in reverse order #12484 #12475 lpizzinidev
- fix(types): make schema.plugin() more flexible for schemas that don't define any generics #12486 #12454
- fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483 #12434 hasezoey
- fix(types): remove unused defaults in "PluginFunction" #12459 hasezoey
- fix(types): update DiscriminatorSchema to have better names and combine statics #12460 hasezoey
6.6.2 / 2022-09-26
- fix(model): avoid deleting shared schema methods in fix for #12254 #12423
- fix(document): set $inc default value in case field has not been specified on the document #12435 lpizzinidev
- fix(query): handle
select: false
on map paths in query results #12467 lpizzinidev- fix(types): add HydratedDocumentFromSchema to make it easier to pull inferred hydrated doc type #12464 #12319
- fix(types): add sanitizeFilter to types #12465 zrosenbauer
- fix(types): infer number enum types from schema if using enum: [0, 1] as const #12463 #12242
- docs(validation): add section on global schematype validation, clean up other issues #12430
- docs: add clarification about overwrite flag in model.js #12447 Tzvika-m
- docs: change to consistent "Example:" for jsdoc comments #12432 hasezoey
6.6.1 / 2022-09-14
- fix: correctly apply defaults after subdoc init #12328
- fix(array): avoid using default _id when using pull() #12294
- fix: allow null values inside $expr objects #12429 MartinDrost
- fix(query): use correct Query constructor when cloning query #12418
- docs(website): remove setting "latest38x" which is not used anywhere #12396 hasezoey
Changelog
Sourced from mongoose's changelog.
6.6.3 / 2022-09-30
- fix(query): treat findOne(_id) as equivalent to findOne({ _id }) #12485 #12325
- fix(timestamps): findOneAndUpdate creates subdocs with timestamps in reverse order #12484 #12475 lpizzinidev
- fix(types): make schema.plugin() more flexible for schemas that don't define any generics #12486 #12454
- fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483 #12434 hasezoey
- fix(types): remove unused defaults in "PluginFunction" #12459 hasezoey
- fix(types): update DiscriminatorSchema to have better names and combine statics #12460 hasezoey
6.6.2 / 2022-09-26
- fix(model): avoid deleting shared schema methods in fix for #12254 #12423
- fix(document): set $inc default value in case field has not been specified on the document #12435 lpizzinidev
- fix(query): handle
select: false
on map paths in query results #12467 lpizzinidev- fix(types): add HydratedDocumentFromSchema to make it easier to pull inferred hydrated doc type #12464 #12319
- fix(types): add sanitizeFilter to types #12465 zrosenbauer
- fix(types): infer number enum types from schema if using enum: [0, 1] as const #12463 #12242
- docs(validation): add section on global schematype validation, clean up other issues #12430
- docs: add clarification about overwrite flag in model.js #12447 Tzvika-m
- docs: change to consistent "Example:" for jsdoc comments #12432 hasezoey
6.6.1 / 2022-09-14
- fix: correctly apply defaults after subdoc init #12328
- fix(array): avoid using default _id when using pull() #12294
- fix: allow null values inside $expr objects #12429 MartinDrost
- fix(query): use correct Query constructor when cloning query #12418
- docs(website): remove setting "latest38x" which is not used anywhere #12396 hasezoey
Commits
-
3144273
chore: release 6.6.3 -
06d00fa
Merge pull request #12486 from Automattic/vkarpov15/gh-12454 -
2b0d429
fix(types): make PluginFunction slightly more strict re: comments on #12486 -
8a51439
Merge branch 'master' into vkarpov15/gh-12454 -
c69eca5
test(types): add types-test for find & findOne with ObjectId argument (#12489) -
dfb1b0f
chore(devDeps): upgrade "mongodb-memory-server" to 8.9.3 to fix some CI error... -
3107642
Merge pull request #12452 from Automattic/gh-9541 -
4da36f6
address code review comments -
76894b4
Merge pull request #12485 from Automattic/vkarpov15/gh-12325 -
a40844e
test: add coverage forfindOne(ObjectId)
- Additional commits viewable in compare view