Skip to content

build(deps): bump mongoose from 9.3.1 to 9.4.1#153

Merged
berviantoleo merged 1 commit intomainfrom
dependabot/npm_and_yarn/mongoose-9.4.1
Apr 6, 2026
Merged

build(deps): bump mongoose from 9.3.1 to 9.4.1#153
berviantoleo merged 1 commit intomainfrom
dependabot/npm_and_yarn/mongoose-9.4.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 6, 2026

Bumps mongoose from 9.3.1 to 9.4.1.

Release notes

Sourced from mongoose's releases.

9.4.1 / 2026-04-03

  • Revert "fix(setDefaultsOnInsert): run setters on default values during upsert" #16218 #16051

9.4.0 / 2026-04-03

  • perf(document+model): avoid parallel save error instantiation, simplify resetting atomics, streamline validation and collection handling
  • feat(document): add $getChanges() alias, deprecate getChanges() #15959 techcodie
  • fix(schema): support toJSONSchema on unions #16179
  • fix(schema): implement validation for Union schemas and subdocuments techcodie
  • fix(connection): snapshot Date in heartbeat handler and flush queue on recovery #16183 andreialecu
  • fix(model): use duck-typing with version check to validate the argument to useConnection() is actually a connection #16098
  • fix(setDefaultsOnInsert): run setters on default values during upsert #16051 mahmoodhamdi
  • fix(utils): properly compare Set objects in deepEqual KhanjarSingh
  • fix(utils): wrap discriminator merge check in parentheses to fix precedence Necro-Rohan
  • fix(schema): correct template literal in encryptionType error message Mridul012
  • fix(schema): correct error when unsupported query operator with number #16062
  • fix(types): make MergeType and UnpackedIntersection distributive over union types techcodie
  • types: add id to HydratedDocument virtuals by default unless explicitly set #16178
  • types(populate): use marker type to track populated vs depopulated type for perf
  • types(populate): retain populated paths in toObject() and toJSON() unless depopulate: true set #16085
  • types(query): make TypeScript error on $and with unrecognized query operator
  • chore: use TSTyche assertions mrazauskas
  • docs(connection): remove references to useUnifiedTopology and fix backtick
  • docs: fix typo 'retreiving' -> 'retrieving' in SchemaType getter JSDoc yogesh968
  • docs: fix typos around 'retrieve' in schemaType and tests ayushshukla1807
  • docs: fix typos in code comments Goldyvaiiii

9.3.3 / 2026-03-25

  • fix(schemaType): standardize to use MongooseError instead of plain Error #16172 VIPAX-JIT
  • types: make MergeType distributive to better support populate on models where the hydrated doc type is a union #16101 #16161
  • docs: upgrade http:// links to https:// in connections.md #16163 Puxhkar
  • docs: fix typographical, grammatical errors & documentation clarity improvements #16175 yogesh968
  • docs: clarify multi-mongos support documentation for sharded clusters

9.3.2 / 2026-03-23

  • fix(mongoose): throw error when trying to set null or undefined as options #16130 #16140
  • fix(cast): include array value in query filter error message #16127 White-Devil2839
  • fix(cast): replace assert.ok with descriptive Error in castNumber #16110 mrsandy1965
  • fix(connection): standardize throw new Error to MongooseError #16142 techcodie
  • fix(query): use MongooseError instead of Error #16132 ace-tk
  • docs: add production environment example for autoIndex #16151 mrsandy1965
  • docs: upgrade self-referencing http:// links to https:// #16150 mrsandy1965
  • docs: fix incorrect Double cast comment and upgrade insecure plugin link #16148 mrsandy1965
  • docs: fix redundant text and http link in installation section #16146 Puxhkar
  • docs: fix typo 'mutiple' → 'multiple' in queries.md #16147 mrsandy1965
  • docs: use HTTPS for external links in docs navigation #16133 ace-tk
  • docs: use HTTPS for external links in CONTRIBUTING and homepage #16134 ace-tk

... (truncated)

Changelog

Sourced from mongoose's changelog.

9.4.1 / 2026-04-03

  • Revert "fix(setDefaultsOnInsert): run setters on default values during upsert" #16218 #16051

9.4.0 / 2026-04-03

  • perf(document+model): avoid parallel save error instantiation, simplify resetting atomics, streamline validation and collection handling
  • feat(document): add $getChanges() alias, deprecate getChanges() #15959 techcodie
  • fix(schema): support toJSONSchema on unions #16179
  • fix(schema): implement validation for Union schemas and subdocuments techcodie
  • fix(connection): snapshot Date in heartbeat handler and flush queue on recovery #16183 andreialecu
  • fix(model): use duck-typing with version check to validate the argument to useConnection() is actually a connection #16098
  • fix(setDefaultsOnInsert): run setters on default values during upsert #16051 mahmoodhamdi
  • fix(utils): properly compare Set objects in deepEqual KhanjarSingh
  • fix(utils): wrap discriminator merge check in parentheses to fix precedence Necro-Rohan
  • fix(schema): correct template literal in encryptionType error message Mridul012
  • fix(schema): correct error when unsupported query operator with number #16062
  • fix(types): make MergeType and UnpackedIntersection distributive over union types techcodie
  • types: add id to HydratedDocument virtuals by default unless explicitly set #16178
  • types(populate): use marker type to track populated vs depopulated type for perf
  • types(populate): retain populated paths in toObject() and toJSON() unless depopulate: true set #16085
  • types(query): make TypeScript error on $and with unrecognized query operator
  • chore: use TSTyche assertions mrazauskas
  • docs(connection): remove references to useUnifiedTopology and fix backtick
  • docs: fix typo 'retreiving' -> 'retrieving' in SchemaType getter JSDoc yogesh968
  • docs: fix typos around 'retrieve' in schemaType and tests ayushshukla1807
  • docs: fix typos in code comments Goldyvaiiii

9.3.3 / 2026-03-25

  • fix(schemaType): standardize to use MongooseError instead of plain Error #16172 VIPAX-JIT
  • types: make MergeType distributive to better support populate on models where the hydrated doc type is a union #16101 #16161
  • docs: upgrade http:// links to https:// in connections.md #16163 Puxhkar
  • docs: fix typographical, grammatical errors & documentation clarity improvements #16175 yogesh968
  • docs: clarify multi-mongos support documentation for sharded clusters

9.3.2 / 2026-03-23

  • fix(mongoose): throw error when trying to set null or undefined as options #16130 #16140
  • fix(cast): include array value in query filter error message #16127 White-Devil2839
  • fix(cast): replace assert.ok with descriptive Error in castNumber #16110 mrsandy1965
  • fix(connection): standardize throw new Error to MongooseError #16142 techcodie
  • fix(query): use MongooseError instead of Error #16132 ace-tk
  • docs: add production environment example for autoIndex #16151 mrsandy1965
  • docs: upgrade self-referencing http:// links to https:// #16150 mrsandy1965
  • docs: fix incorrect Double cast comment and upgrade insecure plugin link #16148 mrsandy1965
  • docs: fix redundant text and http link in installation section #16146 Puxhkar
  • docs: fix typo 'mutiple' → 'multiple' in queries.md #16147 mrsandy1965
  • docs: use HTTPS for external links in docs navigation #16133 ace-tk
  • docs: use HTTPS for external links in CONTRIBUTING and homepage #16134 ace-tk

... (truncated)

Commits
  • 91cc6ba chore: release 9.4.1
  • 32d0bef Merge pull request #16218 from Automattic/revert-16093-fix/issue-16051-setter...
  • 655e0f3 Revert "fix(setDefaultsOnInsert): run setters on default values during upsert"
  • 0ad38e6 chore: release 9.4.0
  • 7ffb16d Merge pull request #16217 from Automattic/9.4
  • 8c1d3df Merge pull request #16182 from Automattic/vkarpov15/gh-16179
  • c63cae8 Update lib/model.js
  • e454679 fix typescript tests
  • 4400687 Merge branch 'master' into 9.4
  • 16fdc8a fix: oneOf -> anyOf for union JSON schema
  • Additional commits viewable in compare view

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 6, 2026
Bumps [mongoose](https://github.com/Automattic/mongoose) from 9.3.1 to 9.4.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@9.3.1...9.4.1)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-version: 9.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mongoose-9.4.1 branch from f8cae8e to d22eb90 Compare April 6, 2026 06:59
@berviantoleo berviantoleo merged commit 7896713 into main Apr 6, 2026
8 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/mongoose-9.4.1 branch April 6, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant