feat(query): add sanitizeProjection option to opt in to automatically sanitizing untrusted query projections #10243
feat(model): add bulkSave() function that saves multiple docs in 1 bulkWrite()#9727#9673AbdelrahmanHafez
feat(document): allow passing a list of virtuals or pathsToSkip to apply in toObject() and toJSON()#10120
fix(model): make Model.validate use object under validation as context by default #10360AbdelrahmanHafez
feat(document): add support for pathsToSkip in validate and validateSync #10375AbdelrahmanHafez
feat(model): add diffIndexes() function that calculates what indexes syncIndexes() will create/drop without actually executing any changes #10362IslandRhythms
feat(document): avoid using sessions that have ended, so you can use documents that were loaded in the session after calling endSession()#10306
5.12.15 / 2021-06-25
fix(index.d.ts): add extra TInstanceMethods generic param to Schema for cases when we can't infer from Model #10358
fix(index.d.ts): added typings for near() in model aggregation #10373tbhaxor
fix(index.d.ts): correct function signature for Query#cast()#10388lkho
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps mongoose from 5.12.2 to 5.13.0.
Changelog
Sourced from mongoose's changelog.
... (truncated)
Commits
0496de9
chore: release 5.13.0e03eb91
Merge pull request #10399 from Automattic/5.13d486ca1
Merge branch '5.13' of github.com:Automattic/mongoose into 5.137616f27
Merge branch 'master' into 5.13012808c
chore: release 5.12.155138fd2
Merge pull request #10360 from AbdelrahmanHafez/gh-10346-fix08f9b61
style: fix lint03aa1d0
Merge pull request #10388 from lkho/pr/typescriptfa42803
Merge pull request #10386 from Automattic/gh-1037637fe808
Merge pull request #10375 from AbdelrahmanHafez/feat/pathsToSkipDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)