Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.4.1 / 2018-12-26
> ==================
> * fix(document): ensure doc array defaults get casted [#7337](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7337)
> * fix(document): make `save()` not crash if nested doc has a property 'get' [#7316](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7316)
> * fix(schema): allow using Schema.Types.Map as well as Map to declare a map type [#7305](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7305)
> * fix(map): make set after init mark correct path as modified [#7321](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7321)
> * fix(mongoose): don't recompile model if same collection and schema passed in to `mongoose.model()` [#5767](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5767)
> * fix(schema): improve error message when type is invalid [#7303](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7303)
> * fix(schema): add `populated` to reserved property names [#7317](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7317)
> * fix(model): don't run built-in middleware on custom methods and ensure timestamp hooks don't run if children don't have timestamps set [#7342](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7342)
> * docs(schematypes): clarify that you can add arbitrary options to a SchemaType [#7340](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7340)
> * docs(mongoose): clarify that passing same name+schema to `mongoose.model()` returns the model [#5767](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5767)
> * docs(index): add useNewUrlParser to example [#7368](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7368) [JIBIN-P](https://github.com/JIBIN-P)
> * docs(connection): add useNewUrlParser to examples [#7362](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7362) [JIBIN-P](https://github.com/JIBIN-P)
> * docs(discriminators): add back missing example from 'recursive embedded discriminators section' [#7349](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7349)
> * docs(schema): improve docs for string and boolean cast() [#7351](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7351)
Commits
- [`16ae93a`](https://github.com/Automattic/mongoose/commit/16ae93a43ebb7723d1e6d3a3dcf2f7fcff7f46b6) chore: release 5.4.1
- [`33cce45`](https://github.com/Automattic/mongoose/commit/33cce45e7bb890603b1f91a72016dcc7a79cba65) Merge pull request [#7368](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7368) from JIBIN-P/patch-3
- [`10f6a3d`](https://github.com/Automattic/mongoose/commit/10f6a3d0a0127f6861491ffff528a8b9a7a7aa52) fix(schema): allow using Schema.Types.Map as well as Map to declare a map type
- [`05ec6f8`](https://github.com/Automattic/mongoose/commit/05ec6f85200369ad449c0784b205118e26be14b7) docs(mongoose): clarify that passing same name+schema to `mongoose.model()` r...
- [`9dfe565`](https://github.com/Automattic/mongoose/commit/9dfe5655e1af8322a9b328b288cfb765d374b5f7) fix(mongoose): don't recompile model if same collection and schema passed in ...
- [`55c0d05`](https://github.com/Automattic/mongoose/commit/55c0d05ab7f20956d62386b5d8efbf4a87122dcb) test(mongoose): repro [#5767](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5767)
- [`c9e1bef`](https://github.com/Automattic/mongoose/commit/c9e1bef0b7157ef11592250e806636753b3fc571) style: fix lint
- [`c28dfba`](https://github.com/Automattic/mongoose/commit/c28dfba9eb045292e1b2729a1621bb65a045679d) Update index.jade
- [`b6d6679`](https://github.com/Automattic/mongoose/commit/b6d6679ccad106e86201b8480c6aef25a9683309) fix(map): make set after init mark correct path as modified
- [`d95e847`](https://github.com/Automattic/mongoose/commit/d95e84754e15e764c69eb100b691be3f2ec5ed36) test(map): repro [#7321](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7321)
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.0...5.4.1)
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 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.0 to 5.4.1.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.4.1 / 2018-12-26 > ================== > * fix(document): ensure doc array defaults get casted [#7337](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7337) > * fix(document): make `save()` not crash if nested doc has a property 'get' [#7316](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7316) > * fix(schema): allow using Schema.Types.Map as well as Map to declare a map type [#7305](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7305) > * fix(map): make set after init mark correct path as modified [#7321](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7321) > * fix(mongoose): don't recompile model if same collection and schema passed in to `mongoose.model()` [#5767](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5767) > * fix(schema): improve error message when type is invalid [#7303](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7303) > * fix(schema): add `populated` to reserved property names [#7317](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7317) > * fix(model): don't run built-in middleware on custom methods and ensure timestamp hooks don't run if children don't have timestamps set [#7342](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7342) > * docs(schematypes): clarify that you can add arbitrary options to a SchemaType [#7340](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7340) > * docs(mongoose): clarify that passing same name+schema to `mongoose.model()` returns the model [#5767](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5767) > * docs(index): add useNewUrlParser to example [#7368](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7368) [JIBIN-P](https://github.com/JIBIN-P) > * docs(connection): add useNewUrlParser to examples [#7362](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7362) [JIBIN-P](https://github.com/JIBIN-P) > * docs(discriminators): add back missing example from 'recursive embedded discriminators section' [#7349](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7349) > * docs(schema): improve docs for string and boolean cast() [#7351](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7351)Commits
- [`16ae93a`](https://github.com/Automattic/mongoose/commit/16ae93a43ebb7723d1e6d3a3dcf2f7fcff7f46b6) chore: release 5.4.1 - [`33cce45`](https://github.com/Automattic/mongoose/commit/33cce45e7bb890603b1f91a72016dcc7a79cba65) Merge pull request [#7368](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7368) from JIBIN-P/patch-3 - [`10f6a3d`](https://github.com/Automattic/mongoose/commit/10f6a3d0a0127f6861491ffff528a8b9a7a7aa52) fix(schema): allow using Schema.Types.Map as well as Map to declare a map type - [`05ec6f8`](https://github.com/Automattic/mongoose/commit/05ec6f85200369ad449c0784b205118e26be14b7) docs(mongoose): clarify that passing same name+schema to `mongoose.model()` r... - [`9dfe565`](https://github.com/Automattic/mongoose/commit/9dfe5655e1af8322a9b328b288cfb765d374b5f7) fix(mongoose): don't recompile model if same collection and schema passed in ... - [`55c0d05`](https://github.com/Automattic/mongoose/commit/55c0d05ab7f20956d62386b5d8efbf4a87122dcb) test(mongoose): repro [#5767](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5767) - [`c9e1bef`](https://github.com/Automattic/mongoose/commit/c9e1bef0b7157ef11592250e806636753b3fc571) style: fix lint - [`c28dfba`](https://github.com/Automattic/mongoose/commit/c28dfba9eb045292e1b2729a1621bb65a045679d) Update index.jade - [`b6d6679`](https://github.com/Automattic/mongoose/commit/b6d6679ccad106e86201b8480c6aef25a9683309) fix(map): make set after init mark correct path as modified - [`d95e847`](https://github.com/Automattic/mongoose/commit/d95e84754e15e764c69eb100b691be3f2ec5ed36) test(map): repro [#7321](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7321) - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.0...5.4.1)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 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.