unstale

npm / mquery

mquery

What changed in mquery 5 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.

11 breaking1 security5 new APIs and options1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.6 on npm

mquery 612 changes

Breaking changes 6

  • count() is removed; use countDocuments() instead.

    6.0.0release notes

  • findOneAndRemove() is removed; use findOneAndDelete() instead.

    6.0.0release notes

  • Calling findOneAndX() with one argument sets the query filter rather than the update, aligning optional arguments with modern expectations.

    6.0.0release notes

  • The minimum required Node.js version is 20.19.0.

    6.0.0release notes

  • Calling updateMany() with one argument sets the query filter rather than the update, aligning optional arguments with modern expectations.

    6.0.0release notes

  • Calling updateOne() with one argument sets the query filter rather than the update, aligning optional arguments with modern expectations.

    6.0.0release notes

Security 1

New APIs and options 4

Fixes and other changes 1

mquery 56 changes

Breaking changes 5

  • Callback support was dropped; callers must no longer rely on callbacks.

    5.0.0release notes

  • Support for custom promise libraries was removed.

    5.0.0release notes

  • The first parameter is always treated as the query filter; collection ducktyping was removed.

    5.0.0release notes

  • The long-deprecated remove function was removed.

    5.0.0release notes

  • The long-deprecated update function was removed.

    5.0.0release notes

New APIs and options 1