Skip to content

dependabot npm(deps): bump mongoose from 6.6.0 to 6.6.2

Depen d'Abot requested to merge dependabot-npm_and_yarn-mongoose-6.6.2 into master

Bumps mongoose from 6.6.0 to 6.6.2.

Release notes

Sourced from mongoose's releases.

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.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
  • 17785a5 chore: release 6.6.2
  • 88ba7a1 Merge pull request #12464 from Automattic/vkarpov15/gh-12319
  • 55112dc Merge pull request #12471 from hasezoey/addNamesToFunctions
  • f58a320 style: add names to previously anonymous hook functions
  • 8b9b164 style(document): update adding query hooks to use functions instead of arrow
  • 5d24d0f style(clearValidating): add name to previously anonymous plugin function
  • a792dc3 Merge pull request #12470 from hasezoey/addNamesToPlugins
  • d08cd47 style: add names to previously anonymous plugin functions
  • f50ec33 Merge pull request #12466 from Automattic/vkarpov15/gh-12430
  • 4fcf0a5 Update test/docs/validation.test.js
  • Additional commits viewable in compare view

Merge request reports