Skip to content

Conversation

@snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade mongoose from 6.2.3 to 6.2.4.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 22 days ago, on 2022-02-28.
Release notes
Package name: mongoose
  • 6.2.4 - 2022-02-28

    6.2.4 / 2022-02-28

    • fix(query): correctly return full deleteOne(), deleteMany() result #11211
    • fix(query): handle update validators on deeply nested subdocuments #11455 #11394
    • fix(discriminator): handle modifying multiple nested paths underneath a discriminator #11428
    • perf: improve isAsyncFunction #11408 Uzlopak
    • fix(index.d.ts): add typedefs for Schema pick() #11448 Moisei-Shkil
    • fix(index.d.ts): allow type override for distinct() #11306
    • fix(index.d.ts): allow array of validators in schema definition #11355
    • fix(index.d.ts): improve connection typings #11418 Uzlopak
    • docs: add timestamps docs #11336
    • docs(timestamps): explain how timestamps works under the hood #11336
    • docs(migrating_to_6): add model.exists breaking change returning doument instead of boolean #11407 AbdelrahmanHafez
    • docs(index.d.ts): add docs for FilterQuery, UpdateQuery, and LeanDocument #11457 Moisei-Shkil
  • 6.2.3 - 2022-02-21

    6.2.3 / 2022-02-21

    • fix(model): avoid dropping base model indexes when using discriminators with Connection.prototype.syncIndexes() #11424 #11421 AbdelrahmanHafez
    • fix(document): handle array defaults when selecting element underneath array #11376
    • fix(populate): correctly handle depopulating populated subdocuments #11436
    • fix(utils): improve deepEqual() handling for comparing objects with non-objects #11417
    • fix(schema): allow declaring array of arrays using [{ type: [String] }] #11252
    • perf: improve validation sync and async by replacing forEach with classic for loops #11414 Uzlopak
    • perf: make hasDollarKeys faster #11401 Uzlopak
    • fix(index.d.ts): ValidationError errors only contains CastError or ValidationError #11369 Uzlopak
    • fix(index.d.ts): make InsertManyResult.insertedIds return an array of Types.ObjectId by default #11197
    • fix(index.d.ts): allow pre('save') middleware with pre options #11257
    • fix(index.d.ts): add supressReservedKeysWarning option to schema #11439 hiukky
    • docs(connections): improve replica set hostname docs with correct error message and info about err.reason.servers #11200
    • docs(populate): add virtual populate match option documentation #11411 remirobichet
    • docs(document): add note to API docs that flattenMaps defaults to true for toJSON() but not toObject() #11213
    • docs(document+model): add populate option to populate() API docs #11170
    • docs(migrating_to_6): add additional info about removing omitUndefined #11038
    • docs(migrating_to_6): add model.exists breaking change returning doument instead of boolean AbdelrahmanHafez
from mongoose GitHub release notes
Commit messages
Package name: mongoose
  • 22e317d chore: release 6.2.4
  • 4d6b630 Merge pull request #11450 from Automattic/gh-11336
  • 18f944d perf(document): add a couple of small perf improvements re: #10400
  • 4c85c70 perf(document): avoid creating unnecessary `_id` for array subdocuments
  • b62ea22 Merge branch 'master' of github.com:Automattic/mongoose
  • 1a1d3cc perf(document): remove some more unnecessary object creation in Document constructor
  • e3ce230 fix example lines re #11457
  • ad5df29 Merge pull request #11457 from Moisei-Shkil/master
  • 49308ee fix(discriminator): handle modifying multiple nested paths underneath a discriminator
  • 1846cbe add docs to: FilterQuery, UpdateQuery, and LeanDocument, types
  • 601650a fix(query): correctly return full `deleteOne()`, `deleteMany()` result
  • dd44992 docs(populate): add example of setting `match` to a function
  • ce216a1 docs: add timestamps docs
  • f9120b9 fix(index.d.ts): allow array of validators in schema definition
  • 31c067f fix(index.d.ts): allow type override for `distinct()`
  • 5c152b7 Merge branch 'master' of github.com:Automattic/mongoose
  • 05ca061 fix(query): handle update validators on deeply nested subdocuments
  • fc1da0b docs(timestamps): elaborate on how `timestamps` works under the hood
  • e6e7af6 rename `originSchema` to `userSchema`
  • 1fe96c8 refactor test re #11448
  • c9b4aeb Merge pull request #11448 from Moisei-Shkil/schema-pick-definition
  • 12ea486 fix linter issues
  • ade46d1 add Schema pick test
  • 29ccff2 add Schema pick definition

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants