Skip to content

build(deps-dev): bump mongoose from 9.6.2 to 9.8.1 - #573

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/mongoose-9.8.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/mongoose-9.8.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 28, 2026

Copy link
Copy Markdown
Contributor

Bumps mongoose from 9.6.2 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

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

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

Dependabot compatibility score

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 <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [mongoose](https://github.com/Automattic/mongoose) from 9.6.2 to 9.8.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@9.6.2...9.8.1)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-version: 9.8.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 28, 2026
@dependabot
dependabot Bot requested a review from sumithr as a code owner July 28, 2026 05:36
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 28, 2026
sumithr added a commit that referenced this pull request Aug 3, 2026
…lear npm audit (#579)

Clears every open npm advisory. All are `development` scope in the
promptfoo eval harness, which is `private: true` and never ships in the
Python wheel.

## Why the version bump alone is not enough

`promptfoo` 0.121.20 takes 30 vulnerabilities down to 9, but 6 high
remain and `npm audit --audit-level=high` (the pre-commit gate and
Dependabot's floor) still fails. npm's only suggested fix for five of
them is `promptfoo@0.120.14`, flagged `isSemVerMajor: true`, which is a
**downgrade**, not a fix.

Those five (`@huggingface/transformers`, `onnxruntime-node`, `sharp`,
`adm-zip`, `promptfoo` itself) were flagged only because they depend on
vulnerable `sharp` and `adm-zip`. Forcing the leaves up clears the
parents.

## Changes

- `promptfoo` 0.121.11 to 0.121.20
- `overrides` added for the three leaves that have real fixes:
  - `sharp` to `^0.35.3` (was 0.34.5, advisory `<0.35.0`)
  - `adm-zip` to `^0.6.0` (was 0.5.18, advisory `<0.6.0`)
- `@ai-sdk/provider-utils` pinned to `undici` `^7.28.0` (was 5.29.0,
advisory `<=6.26.0`)

The existing `@opentelemetry/otlp-transformer` / `protobufjs` override
is unchanged.

## Verification

```
before                       30 vulns (1 low, 15 moderate, 14 high)
after bump alone             21 vulns (11 moderate, 10 high)
after bump + audit fix        9 vulns ( 3 moderate,  6 high)   gate still FAILS
after bump + overrides        0 vulns                          gate PASSES

npm audit --audit-level=high            EXIT=0
npm audit (all levels)                  EXIT=0
pre-commit "npm audit (high+critical)"  Passed
npx promptfoo --version                 0.121.20
```

Supersedes Dependabot PRs #573, #572, #571, #567 and #564, each of which
patched one slice of this transitively while leaving the rest open.

No eval was run: this changes only the dependency lockfile, not any
prompt, skill or rubric.
@sumithr

sumithr commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Superseded by #579, which bumped promptfoo to 0.121.20 and added overrides for sharp, adm-zip and undici, taking npm audit from 30 vulnerabilities to 0.

This PR patched one slice of the same transitive tree. #579 covers it plus the packages no individual PR reached (sharp, adm-zip, protobufjs, onnxruntime-node, @huggingface/transformers and the OpenTelemetry set), and it clears the --audit-level=high gate that a single-package bump could not.

@sumithr sumithr closed this Aug 3, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/mongoose-9.8.1 branch August 3, 2026 13:08
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