express-rest-boilerplate
express-rest-boilerplate copied to clipboard
Bump mongoose from 5.13.5 to 6.5.1
Bumps mongoose from 5.13.5 to 6.5.1.
Release notes
Sourced from mongoose's releases.
6.5.1 / 2022-08-03
- fix(timestamps): set timestamps on child schema when child schema has timestamps: true but parent schema does not #12119
- fix(schema+timestamps): handle insertMany() with timestamps and discriminators #12150
- fix(model+query): handle populate with lean transform that deletes _id #12143
- fix(types): allow $pull with _id #12142
- fix(types): add schema plugin option inference #12196 hasezoey
- fix(types): pass type to mongodb bulk write operation #12167 emiljanitzek
- fix(types): map correct generics from model to schema #12125 emiljanitzek
- fix(types): avoid baffling circular reference when using PopulatedDoc with a bidirectional reference #12136
- fix(types): allow using path with $count #12149
- docs(compatibility): change to use a table #12200 hasezoey
- docs(api_split.pug): add "code" to sidebar entries #12153 hasezoey
- docs: add "code" to Headers (and index list) #12152 hasezoey
6.5.0 / 2022-07-26
- perf(document): avoid creating unnecessary empty objects when creating a state machine #11988
- feat: upgrade mongodb driver -> 4.8.1 #12103 AbdelrahmanHafez
- feat(model): allow passing timestamps option to Model.bulkSave(...) #12082 AbdelrahmanHafez
- feat(model): add castObject() function that casts a POJO to the model's schema #11945
- feat(document): add $inc() helper that increments numeric paths #12115
- feat(schema): add schema level lean option IslandRhythms
- feat(schema): add global id option to disable id on schemas #12067 IslandRhythms
- fix(connection): re-run Model.init() if re-connecting after explicitly closing a connection #12130
- feat(model): add applyDefaults() helper that allows applying defaults to document or POJO #11945
- feat(model): allow calling hydrate() with { setters: true } #11653
- feat(model): add hydrate option to Model.watch() to automatically hydrate fullDocument #12121
- feat(types): add support for automatically typed virtuals in schemas #11908 mohammad0-0ahmad
6.4.7 / 2022-07-25
- fix(virtualtype): use $locals for default virtual getter/setter rather than top-level doc #12124
- fix(document): call subdocument getters if child schema has getters: true #12105
- fix(schematype): actually always return "this" where specified #12141 hasezoey
- fix(types): correct return value for Model.exists() #12094
- docs(guides): add link to advanced schemas doc #12073
- docs: handle
@seein jsdoc #12144 hasezoey- docs: make use of the deprecated tag available in jsdoc for documentation #12080 hasezoey
- docs(api_split): add basic DEPRECATED output #12146 hasezoey
- docs: various jsdoc cleanup #12140 hasezoey
- docs(api_split.pug): add "code" to parameter name #12145 hasezoey
6.4.6 / 2022-07-20
- fix(schema): disallow setting proto when creating schema with dotted properties #12085
- fix(document): avoid mutating original object passed to $set() when applying defaults to nested properties #12102
- fix(query): apply lean transform option to top-level document #12093
- docs(migrating_to_6): correct example for
isObjectIdOrHexString()#12123 LokeshKanumoori
... (truncated)
Changelog
Sourced from mongoose's changelog.
6.5.1 / 2022-08-03
- fix(timestamps): set timestamps on child schema when child schema has timestamps: true but parent schema does not #12119
- fix(schema+timestamps): handle insertMany() with timestamps and discriminators #12150
- fix(model+query): handle populate with lean transform that deletes _id #12143
- fix(types): allow $pull with _id #12142
- fix(types): add schema plugin option inference #12196 hasezoey
- fix(types): pass type to mongodb bulk write operation #12167 emiljanitzek
- fix(types): map correct generics from model to schema #12125 emiljanitzek
- fix(types): avoid baffling circular reference when using PopulatedDoc with a bidirectional reference #12136
- fix(types): allow using path with $count #12149
- docs(compatibility): change to use a table #12200 hasezoey
- docs(api_split.pug): add "code" to sidebar entries #12153 hasezoey
- docs: add "code" to Headers (and index list) #12152 hasezoey
6.5.0 / 2022-07-26
- perf(document): avoid creating unnecessary empty objects when creating a state machine #11988
- feat: upgrade mongodb driver -> 4.8.1 #12103 AbdelrahmanHafez
- feat(model): allow passing timestamps option to Model.bulkSave(...) #12082 AbdelrahmanHafez
- feat(model): add castObject() function that casts a POJO to the model's schema #11945
- feat(document): add $inc() helper that increments numeric paths #12115
- feat(schema): add schema level lean option IslandRhythms
- feat(schema): add global id option to disable id on schemas #12067 IslandRhythms
- fix(connection): re-run Model.init() if re-connecting after explicitly closing a connection #12130
- feat(model): add applyDefaults() helper that allows applying defaults to document or POJO #11945
- feat(model): allow calling hydrate() with { setters: true } #11653
- feat(model): add hydrate option to Model.watch() to automatically hydrate fullDocument #12121
- feat(types): add support for automatically typed virtuals in schemas #11908 mohammad0-0ahmad
6.4.7 / 2022-07-25
- fix(virtualtype): use $locals for default virtual getter/setter rather than top-level doc #12124
- fix(document): call subdocument getters if child schema has getters: true #12105
- fix(schematype): actually always return "this" where specified #12141 hasezoey
- fix(types): correct return value for Model.exists() #12094
- docs(guides): add link to advanced schemas doc #12073
- docs: handle
@seein jsdoc #12144 hasezoey- docs: make use of the deprecated tag available in jsdoc for documentation #12080 hasezoey
- docs(api_split): add basic DEPRECATED output #12146 hasezoey
- docs: various jsdoc cleanup #12140 hasezoey
- docs(api_split.pug): add "code" to parameter name #12145 hasezoey
6.4.6 / 2022-07-20
- fix(schema): disallow setting proto when creating schema with dotted properties #12085
- fix(document): avoid mutating original object passed to $set() when applying defaults to nested properties #12102
- fix(query): apply lean transform option to top-level document #12093
- docs(migrating_to_6): correct example for
isObjectIdOrHexString()#12123 LokeshKanumoori
... (truncated)
Commits
f581e1echore: release 6.5.16399f3ctest: fix tests53f27aaMerge pull request #12125 from emiljanitzek/feature/model-schema-type179a488Update index.d.ts961e591Update connection.d.tsaabf3b2Merge pull request #12167 from emiljanitzek/feature/bulk-write-types67c2e93Merge pull request #12196 from hasezoey/pluginOptions53dc72bMerge pull request #12198 from hasezoey/furtherReadingReStylec9d6cc5Merge branch 'master' of github.com:Automattic/mongooseb57efecfix(types): allow $pull with_id- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Superseded by #607.