Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.4.15 / 2019-02-22
> ===================
> * fix(update): don't call schematype validators on array if using $pull with runValidators [#6971](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6971)
> * fix(schema): clone all schema types when cloning an array [#7537](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7537)
> * docs(connections): improve connectTimeoutMS docs and socketTimeoutMS docs to link to Node.js net.setTimeout() [#5169](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5169)
> * docs: fix setters example in migration guide [#7546](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7546) [freewil](https://github.com/freewil)
>
> 5.4.14 / 2019-02-19
> ===================
> * fix(populate): make `getters` option handle nested paths [#7521](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7521)
> * fix(documentarray): report validation errors that occur in an array subdoc created using `create()` and then `set()` [#7504](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7504)
> * docs(schema): add examples for schema functions that didn't have any [#7525](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7525)
> * docs: add MongooseError to API docs and add list of error names
> * docs(CONTRIBUTING): fix link [#7530](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7530) [sarpik](https://github.com/sarpik)
>
> 5.4.13 / 2019-02-15
> ===================
> * fix(query): throw handy error when using updateOne() with overwrite: true and no dollar keys [#7475](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7475)
> * fix(schema): support inheriting existing schema types using Node.js `util.inherits` like mongoose-float [#7486](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7486)
> * docs(connections): add list of connection events [#7477](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7477)
>
> 5.4.12 / 2019-02-13
> ===================
> * fix(connection): dont emit reconnected due to socketTimeoutMS [#7452](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7452)
> * fix(schema): revert check for `false` schema paths [#7516](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7516) [#7512](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7512)
> * fix(model): don't delete unaliased keys in translateAliases [#7510](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7510) [chrischen](https://github.com/chrischen)
> * fix(document): run single nested schematype validator if nested path has a default and subpath is modified [#7493](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7493)
> * fix(query): copy mongoose options when using `Query#merge()` [#1790](https://github-redirect.dependabot.com/Automattic/mongoose/issues/1790)
> * fix(timestamps): don't call createdAt getters when setting updatedAt on new doc [#7496](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7496)
> * docs: improve description of ValidationError [#7515](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7515) [JulioJu](https://github.com/JulioJu)
> * docs: add an asterisk before comment, otherwise the comment line is not generated [#7513](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7513) [JulioJu](https://github.com/JulioJu)
>
> 5.4.11 / 2019-02-09
> ===================
> * fix(schema): handle `_id: false` in schema paths as a shortcut for setting the `_id` option to `false` [#7480](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7480)
> * fix(update): handle $addToSet and $push with ObjectIds and castNonArrays=false [#7479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7479)
> * docs(model): document `session` option to `save()` [#7484](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7484)
> * chore: fix gitignore syntax [#7498](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7498) [JulioJu](https://github.com/JulioJu)
> * docs: document that Document#validateSync returns ValidationError [#7499](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7499)
> * refactor: use consolidated `isPOJO()` function instead of constructor checks [#7500](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7500)
>
> 5.4.10 / 2019-02-05
> ===================
> * docs: add search bar and /search page [#6706](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6706)
> * fix: support dotted aliases [#7478](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7478) [chrischen](https://github.com/chrischen)
> * fix(document): copy atomics when setting document array to an existing document array [#7472](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7472)
> * chore: upgrade to mongodb driver 3.1.13 [#7488](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7488)
> * docs: remove confusing references to executing a query "immediately" [#7461](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7461)
> * docs(guides+schematypes): link to custom schematypes docs [#7407](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7407)
>
> ... (truncated)
Commits
- [`66e9375`](https://github.com/Automattic/mongoose/commit/66e9375f499bf0d2c5482292d170745a4b1a35b1) chore: release 5.4.15
- [`af4c62c`](https://github.com/Automattic/mongoose/commit/af4c62cd3c904947639663d2b1f3d59e5b1abcc8) chore: now working on 5.4.15
- [`df69f4a`](https://github.com/Automattic/mongoose/commit/df69f4a98562127195ab696f228377cbfd3625f0) Merge pull request [#7552](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7552) from Automattic/gh7537
- [`8384231`](https://github.com/Automattic/mongoose/commit/838423125180d80f10a75b07b601c9dd284405e7) fix(schema): ensure clone() correctly gets `childSchemas`
- [`1e473c6`](https://github.com/Automattic/mongoose/commit/1e473c6e81e8c0a12ac1a8ae546e40b6ba8843d6) fix(schema): clone all schema types when cloning an array
- [`9c0f773`](https://github.com/Automattic/mongoose/commit/9c0f773db951ff45cc90d9ae11c6446b0b0f7f9c) docs(connections): improve connectTimeoutMS docs and socketTimeoutMS docs to ...
- [`091d601`](https://github.com/Automattic/mongoose/commit/091d601cfb1c24535b1b8869127e3c1be46e9fc2) Merge branch 'master' of github.com:Automattic/mongoose
- [`20d3caf`](https://github.com/Automattic/mongoose/commit/20d3caff98730a08f523b4326e7f6e0e1d9d9e4a) fix(update): don't call schematype validators on array if using $pull with ru...
- [`8c3d4e6`](https://github.com/Automattic/mongoose/commit/8c3d4e6710aa05077013d4e07f372c617186235d) test(model): repro [#6971](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6971)
- [`b6327e9`](https://github.com/Automattic/mongoose/commit/b6327e90094e22d2bcacda8fa6bf6abc0a6529cb) Merge pull request [#7546](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7546) from hellodigit/migration-5-setters
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.15)
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
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- 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)
Finally, you can contact us by mentioning @dependabot.
Bumps mongoose from 5.4.3 to 5.4.15.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.4.15 / 2019-02-22 > =================== > * fix(update): don't call schematype validators on array if using $pull with runValidators [#6971](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6971) > * fix(schema): clone all schema types when cloning an array [#7537](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7537) > * docs(connections): improve connectTimeoutMS docs and socketTimeoutMS docs to link to Node.js net.setTimeout() [#5169](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5169) > * docs: fix setters example in migration guide [#7546](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7546) [freewil](https://github.com/freewil) > > 5.4.14 / 2019-02-19 > =================== > * fix(populate): make `getters` option handle nested paths [#7521](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7521) > * fix(documentarray): report validation errors that occur in an array subdoc created using `create()` and then `set()` [#7504](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7504) > * docs(schema): add examples for schema functions that didn't have any [#7525](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7525) > * docs: add MongooseError to API docs and add list of error names > * docs(CONTRIBUTING): fix link [#7530](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7530) [sarpik](https://github.com/sarpik) > > 5.4.13 / 2019-02-15 > =================== > * fix(query): throw handy error when using updateOne() with overwrite: true and no dollar keys [#7475](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7475) > * fix(schema): support inheriting existing schema types using Node.js `util.inherits` like mongoose-float [#7486](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7486) > * docs(connections): add list of connection events [#7477](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7477) > > 5.4.12 / 2019-02-13 > =================== > * fix(connection): dont emit reconnected due to socketTimeoutMS [#7452](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7452) > * fix(schema): revert check for `false` schema paths [#7516](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7516) [#7512](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7512) > * fix(model): don't delete unaliased keys in translateAliases [#7510](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7510) [chrischen](https://github.com/chrischen) > * fix(document): run single nested schematype validator if nested path has a default and subpath is modified [#7493](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7493) > * fix(query): copy mongoose options when using `Query#merge()` [#1790](https://github-redirect.dependabot.com/Automattic/mongoose/issues/1790) > * fix(timestamps): don't call createdAt getters when setting updatedAt on new doc [#7496](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7496) > * docs: improve description of ValidationError [#7515](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7515) [JulioJu](https://github.com/JulioJu) > * docs: add an asterisk before comment, otherwise the comment line is not generated [#7513](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7513) [JulioJu](https://github.com/JulioJu) > > 5.4.11 / 2019-02-09 > =================== > * fix(schema): handle `_id: false` in schema paths as a shortcut for setting the `_id` option to `false` [#7480](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7480) > * fix(update): handle $addToSet and $push with ObjectIds and castNonArrays=false [#7479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7479) > * docs(model): document `session` option to `save()` [#7484](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7484) > * chore: fix gitignore syntax [#7498](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7498) [JulioJu](https://github.com/JulioJu) > * docs: document that Document#validateSync returns ValidationError [#7499](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7499) > * refactor: use consolidated `isPOJO()` function instead of constructor checks [#7500](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7500) > > 5.4.10 / 2019-02-05 > =================== > * docs: add search bar and /search page [#6706](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6706) > * fix: support dotted aliases [#7478](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7478) [chrischen](https://github.com/chrischen) > * fix(document): copy atomics when setting document array to an existing document array [#7472](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7472) > * chore: upgrade to mongodb driver 3.1.13 [#7488](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7488) > * docs: remove confusing references to executing a query "immediately" [#7461](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7461) > * docs(guides+schematypes): link to custom schematypes docs [#7407](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7407) > > ... (truncated)Commits
- [`66e9375`](https://github.com/Automattic/mongoose/commit/66e9375f499bf0d2c5482292d170745a4b1a35b1) chore: release 5.4.15 - [`af4c62c`](https://github.com/Automattic/mongoose/commit/af4c62cd3c904947639663d2b1f3d59e5b1abcc8) chore: now working on 5.4.15 - [`df69f4a`](https://github.com/Automattic/mongoose/commit/df69f4a98562127195ab696f228377cbfd3625f0) Merge pull request [#7552](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7552) from Automattic/gh7537 - [`8384231`](https://github.com/Automattic/mongoose/commit/838423125180d80f10a75b07b601c9dd284405e7) fix(schema): ensure clone() correctly gets `childSchemas` - [`1e473c6`](https://github.com/Automattic/mongoose/commit/1e473c6e81e8c0a12ac1a8ae546e40b6ba8843d6) fix(schema): clone all schema types when cloning an array - [`9c0f773`](https://github.com/Automattic/mongoose/commit/9c0f773db951ff45cc90d9ae11c6446b0b0f7f9c) docs(connections): improve connectTimeoutMS docs and socketTimeoutMS docs to ... - [`091d601`](https://github.com/Automattic/mongoose/commit/091d601cfb1c24535b1b8869127e3c1be46e9fc2) Merge branch 'master' of github.com:Automattic/mongoose - [`20d3caf`](https://github.com/Automattic/mongoose/commit/20d3caff98730a08f523b4326e7f6e0e1d9d9e4a) fix(update): don't call schematype validators on array if using $pull with ru... - [`8c3d4e6`](https://github.com/Automattic/mongoose/commit/8c3d4e6710aa05077013d4e07f372c617186235d) test(model): repro [#6971](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6971) - [`b6327e9`](https://github.com/Automattic/mongoose/commit/b6327e90094e22d2bcacda8fa6bf6abc0a6529cb) Merge pull request [#7546](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7546) from hellodigit/migration-5-setters - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.15)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 - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot.