Skip to content

dependabot npm(deps): bump mongoose from 8.4.5 to 8.5.0

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

Bumps mongoose from 8.4.5 to 8.5.0.

Release notes

Sourced from mongoose's releases.

8.5.0 / 2024-07-08

  • perf: memoize toJSON / toObject default options #14672
  • feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() #14699 #14268
  • feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema #14691
  • feat: allow setting array default value to null #14717 #6691
  • feat(mongoose): allow drivers to set global plugins #14682
  • feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set #14681 #14611
  • fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() #14732 #9885
  • fix(query): remove count() and findOneAndRemove() from query chaining #14692 #14689
  • fix: remove default connection if setting createInitialConnection to false after Mongoose instance created #14679 #8302
  • types(models+query): infer return type from schema for 1-level deep nested paths #14632
  • types(connection): make transaction() return type match the executor function #14661 #14656
  • docs: fix docs links in index.md mirasayon
Changelog

Sourced from mongoose's changelog.

8.5.0 / 2024-07-08

  • perf: memoize toJSON / toObject default options #14672
  • feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() #14699 #14268
  • feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema #14691
  • feat: allow setting array default value to null #14717 #6691
  • feat(mongoose): allow drivers to set global plugins #14682
  • feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set #14681 #14611
  • fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() #14732 #9885
  • fix(query): remove count() and findOneAndRemove() from query chaining #14692 #14689
  • fix: remove default connection if setting createInitialConnection to false after Mongoose instance created #14679 #8302
  • types(models+query): infer return type from schema for 1-level deep nested paths #14632
  • types(connection): make transaction() return type match the executor function #14661 #14656
  • docs: fix docs links in index.md mirasayon
Commits
  • c4c932a chore: release 8.5.0
  • bd91b4f Merge pull request #14733 from mirasayon/master
  • 0e9a05f Update index.md
  • 863279d Merge pull request #14729 from Automattic/8.5
  • fd3d271 Merge branch 'master' into 8.5
  • 761e551 Merge pull request #14732 from Automattic/vkarpov15/gh-9885
  • bdca988 Update external links in index.md
  • 50f1a73 refactor: use async/await for subdoc post save
  • 5f55a30 fix: improve error handling and refactor to use async/await
  • 3c0cb46 fix(document): ensure post('deleteOne') hooks are called when calling `save()...
  • Additional commits viewable in compare view

Merge request reports

Loading