Title: Bump mongoose from 4.13.21 to 9.8.1 in the npm_and_yarn group across 1 directory by dependabot[bot] · Pull Request #22 · GetStream/Stream-Example-Nodejs · GitHub
Open Graph Title: Bump mongoose from 4.13.21 to 9.8.1 in the npm_and_yarn group across 1 directory by dependabot[bot] · Pull Request #22 · GetStream/Stream-Example-Nodejs
X Title: Bump mongoose from 4.13.21 to 9.8.1 in the npm_and_yarn group across 1 directory by dependabot[bot] · Pull Request #22 · GetStream/Stream-Example-Nodejs
Description: Bumps the npm_and_yarn group with 1 update in the / directory: mongoose.
Updates mongoose from 4.13.21 to 9.8.1
Release notes
Sourced from mongoose's releases.
9.8.1 / 2026-07-27
perf(document): avoid rebuilding modified paths during required path validation #16379 xianjianlf2
perf(document): avoid clearing the required paths cache on every document instantiation #16404 #16377
fix(query): reject update modifiers without paths #16387 AbdelrahmanHafez
perf: cache toString() results in array.unique to avoid redundant allocations #16390 vivek180905
types: respect the _id option when inferring StandardSchema types #16402
types(model): keep Model.schema typed when TSchema is omitted samuelmbabhazi
docs(guide): clarify strictQuery handling of filter paths not in the schema #16397 MuhammadFarhantahir
9.8.0 / 2026-07-20
feat(schema): add strictRead option to filter or throw on unknown fields during document hydration #16345 #4279 GourabSingha
feat: upgrade MongoDB Node.js driver to 7.5 #16391
fix(subdocument): don't minimize empty document array elements to null #16393 #15336 #7322 WaleedAshraf
fix(model): correctly handle version keys when bulkSave() inserts new documents #16386 #15800 AbdelrahmanHafez
fix(cast): correctly cast object-shaped geo query values #16380 #16376 rajkumar0932
fix(schema): avoid mutating shared setters when casting array query values #16372 #16364 yakubka
fix(document): correctly handle excluded parent paths with optimistic concurrency #16367 #16054 AbdelrahmanHafez
types(model): add pathsToSave to SaveOptions #16375 AbdelrahmanHafez
types(model): support extra fields in hydrate() with strict: false #16374 #15940 AbdelrahmanHafez
docs(populate): document missing options and perDocumentLimit for populate() #16371 Wnayar
docs: expand sample() example to show sampling from a filtered subset #16369 Wnayar
docs: fix typos, grammar, and documentation links #16389 LakshyaTyagi15
9.7.4 / 2026-07-06
types(create): fix handling of nested objects typed as interfaces #16363 #16362
types: correct this parameter handling for methods with versionKey #16344 #16046
docs: add FAQ entry for querySrv ECONNREFUSED errors on Windows with mongodb+srv:// connections #16342 ajay naik
9.7.3 / 2026-06-26
types(model): correct Model.validate() return type to Promise #16340 #16338
types: use @standard-schema/spec for StandardSchema types rather than inlining #16341 #16339
9.7.2 / 2026-06-22
fix(documentarray): reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path #16282 AbdelrahmanHafez
fix(document): avoid accessing special properties in Document.prototype.get()
fix(schema): only return own properties in schematype lookups and disallow setting schema paths under special properties
docs: update homepage sponsor layout
9.7.1 / 2026-06-17
perf(document+model): improve save performance by avoiding unnecessary promise allocations and reducing path/default/dirty-state overhead #16331
fix(schema): include ObjectId regex pattern in toJSONSchema() output #16335 #16334 AbdelrahmanHafez
fix(populate): split populate into separate queries per document if the resulting $in filter has more than 50k elements to reduce risk of BSON size errors #16333 #5890
docs: add assistant sidebar with MongoDB Knowledge integration #16311 #16283
docs: update docs copy buttons, edit links, homepage alignment, and llms.txt generation #16326 #16327 #16329
... (truncated)
Changelog
Sourced from mongoose's changelog.
9.8.1 / 2026-07-27
perf(document): avoid rebuilding modified paths during required path validation #16379 xianjianlf2
perf(document): avoid clearing the required paths cache on every document instantiation #16404 #16377
fix(query): reject update modifiers without paths #16387 AbdelrahmanHafez
perf: cache toString() results in array.unique to avoid redundant allocations #16390 vivek180905
types: respect the _id option when inferring StandardSchema types #16402
types(model): keep Model.schema typed when TSchema is omitted samuelmbabhazi
docs(guide): clarify strictQuery handling of filter paths not in the schema #16397 MuhammadFarhantahir
9.8.0 / 2026-07-20
feat(schema): add strictRead option to filter or throw on unknown fields during document hydration #16345 #4279 GourabSingha
feat: upgrade MongoDB Node.js driver to 7.5 #16391
fix(subdocument): don't minimize empty document array elements to null #16393 #15336 #7322 WaleedAshraf
fix(model): correctly handle version keys when bulkSave() inserts new documents #16386 #15800 AbdelrahmanHafez
fix(cast): correctly cast object-shaped geo query values #16380 #16376 rajkumar0932
fix(schema): avoid mutating shared setters when casting array query values #16372 #16364 yakubka
fix(document): correctly handle excluded parent paths with optimistic concurrency #16367 #16054 AbdelrahmanHafez
types(model): add pathsToSave to SaveOptions #16375 AbdelrahmanHafez
types(model): support extra fields in hydrate() with strict: false #16374 #15940 AbdelrahmanHafez
docs(populate): document missing options and perDocumentLimit for populate() #16371 Wnayar
docs: expand sample() example to show sampling from a filtered subset #16369 Wnayar
docs: fix typos, grammar, and documentation links #16389 LakshyaTyagi15
9.7.4 / 2026-07-06
types(create): fix handling of nested objects typed as interfaces #16363 #16362
types: correct this parameter handling for methods with versionKey #16344 #16046
docs: add FAQ entry for querySrv ECONNREFUSED errors on Windows with mongodb+srv:// connections #16342 ajay naik
9.7.3 / 2026-06-26
types(model): correct Model.validate() return type to Promise #16340 #16338
types: use @standard-schema/spec for StandardSchema types rather than inlining #16341 #16339
8.24.1 / 2026-06-22
fix(documentarray): reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path #16282 AbdelrahmanHafez
fix(document): avoid accessing special properties in Document.prototype.get()
fix(schema): avoid returning inherited properties from schema path lookups, including paths underneath maps of subdocuments
fix(clone): isolate cloned arrays from source documents #16281 AbdelrahmanHafez
types: enable exactOptionalPropertyTypes in TypeScript tests #16287
9.7.2 / 2026-06-22
fix(documentarray): reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path #16282 AbdelrahmanHafez
fix(document): avoid accessing special properties in Document.prototype.get()
fix(schema): only return own properties in schematype lookups and disallow setting schema paths under special properties
docs: update homepage sponsor layout
... (truncated)
Commits
ac79c2e chore: release 9.8.1
4efed2c Merge pull request #16406 from samuelmbabhazi/fix/modelSchema
b915bd7 Merge pull request #16404 from Automattic/vkarpov15/gh-16377
14b750e Merge pull request #16403 from Automattic/vkarpov15/gh-16402
41e559d Merge pull request #16387 from AbdelrahmanHafez/fix/reject-pathless-update-mo...
1415de4 types(model): keep Model.schema typed when TSchema is omitted
c0a75c2 Merge pull request #16390 from vivek180905/perf/cache-tostring-in-array-unique
7bdee0d perf(document): avoid clearing required paths cache on every document instant...
9947b06 test: expand test case to handle just _id: false
a843b42 types: respect _id option when inferring StandardSchema type
Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for mongoose since your current version.
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 show
Open Graph Description: Bumps the npm_and_yarn group with 1 update in the / directory: mongoose. Updates mongoose from 4.13.21 to 9.8.1 Release notes Sourced from mongoose's releases. 9.8.1 / 2026-07-27 perf(docume...
X Description: Bumps the npm_and_yarn group with 1 update in the / directory: mongoose. Updates mongoose from 4.13.21 to 9.8.1 Release notes Sourced from mongoose's releases. 9.8.1 / 2026-07-27 perf(do...
Opengraph URL: https://github.com/GetStream/Stream-Example-Nodejs/pull/22
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:80c7f972-c298-3e53-23e4-9c3aec53553f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C574:1F87:463309F:5856386:6B03615B |
| html-safe-nonce | 4b9b5f1f04da218e2492f996c7a5f6e13a66d66c1e932d3ee4e8adc9d8e4eff3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTc0OjFGODc6NDYzMzA5Rjo1ODU2Mzg2OjZCMDM2MTVCIiwidmlzaXRvcl9pZCI6IjgyODM5NjA2Mjk3MDcxMDQ2MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e6ad4342180c832275e9fa7590791a7a94739bafbb5dcb8e2dc7209eb5f7142a |
| hovercard-subject-tag | pull_request:4154410791 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/GetStream/Stream-Example-Nodejs/pull/22/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps the npm_and_yarn group with 1 update in the / directory: mongoose. Updates mongoose from 4.13.21 to 9.8.1 Release notes Sourced from mongoose's releases. 9.8.1 / 2026-07-27 perf(docume... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/GetStream/Stream-Example-Nodejs git https://github.com/GetStream/Stream-Example-Nodejs.git |
| octolytics-dimension-user_id | 8597527 |
| octolytics-dimension-user_login | GetStream |
| octolytics-dimension-repository_id | 34457097 |
| octolytics-dimension-repository_nwo | GetStream/Stream-Example-Nodejs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34457097 |
| octolytics-dimension-repository_network_root_nwo | GetStream/Stream-Example-Nodejs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width