Skip to content

dependabot npm(deps): bump mongodb from 4.10.0 to 4.11.0

Depen d'Abot requested to merge dependabot-npm_and_yarn-mongodb-4.11.0 into master

Bumps mongodb from 4.10.0 to 4.11.0.

Release notes

Sourced from mongodb's releases.

4.11.0

The MongoDB Node.js team is pleased to announce version 4.11.0 of the mongodb package!

Release Highlights

Recursive Schema Support

Version 4.3.0 of the Node driver added Typescript support for dot notation into our Filter type but in the process it broke support for recursive schemas. In 4.11.0, we now support recursive schemas and provide type safety on dot notation queries up to a depth of 9. Beyond a depth of 9, code still compiles but is no longer type checked (it falls back to a type of any).

interface CircularSchema {
    name: string;
    nestedSchema: CircularSchema;
}
// we have a collection of type Collection<CircularSchema>
// below a depth of 9, type checking is enforced
collection.findOne({ 'nestedSchema.nestedSchema.nestedSchema.name': 25 }) // compilation error - name must be a string
// at a depth greater than 9, code compiles but is not type checked (11 deep)
collection.findOne({
'nestedSchema.nestedSchema.nestedSchema.nestedSchema.nestedSchema.nestedSchema.nestedSchema.nestedSchema.nestedSchema.nestedSchema.name': 25
}) // NO compilation error

Note that our depth limit is a product of Typescript's recursive type limitations.

External Contributions

Many thanks to those who contributed to this release!

  • @​ermik provided an extremely large schema to test compilation with, which made testing our new recursive schema support possible with large schemas straightforward.
  • @​noahsilas for documentation improvements in change streams and fixing our Typescript types for read preferences.
  • @​zendagin for adding Typescript support for hashed indexes.
  • @​biniona-mongodb for fixing our parsing of TLS options.
  • @​LinusU for removing support for server versions lower than our minimum supported server version and improving error messages for unacknowledged writes with hints.

Features

  • NODE-3651: add hashed index type (#3432) (f6b56a1)
  • NODE-3875: support recursive schema types (#3433) (26bce4a)
  • NODE-4503: throw original error when server attaches NoWritesPerformed label (#3441) (a7dab96)
  • NODE-4650: handle handshake errors with SDAM (#3426) (cbe7533)
  • NODE-4721: add aws-sdk as optional dependency (#3446) (b879cb5)

... (truncated)

Changelog

Sourced from mongodb's changelog.

4.11.0 (2022-10-19)

Features

  • NODE-3255: add minPoolSizeCheckIntervalMS option to connection pool (#3429) (5f34ad0)
  • NODE-3651: add hashed index type (#3432) (f6b56a1)
  • NODE-3875: support recursive schema types (#3433) (26bce4a)
  • NODE-4503: throw original error when server attaches NoWritesPerformed label (#3441) (a7dab96)
  • NODE-4650: handle handshake errors with SDAM (#3426) (cbe7533)
  • NODE-4721: add aws-sdk as optional dependency (#3446) (b879cb5)

Bug Fixes

  • NODE-3712,NODE-4546: electionId should be ordered before setVersion (#3174) (ca51fec)
  • NODE-3921: error on invalid TLS option combinations (#3405) (1a550df)
  • NODE-4186: accept ReadPreferenceLike in TransactionOptions type (#3425) (dc62bcb)
  • NODE-4475: make interrupted message more specific (#3437) (5f37cb6)
  • NODE-4608: prevent parallel monitor checks (#3404) (78bcfe4)
  • NODE-4647: improve error message (#3409) (0d3c02e)
  • NODE-4649: use SDAM handling for errors from min pool size population (#3424) (ef3b55d)
Commits
  • 6fb87e4 chore(release): 4.11.0
  • 631455d docs(NODE-4724): update fle docs to use "in use encryption" terminology (#3448)
  • 7a8b186 docs(NODE-4554): remove experimental tag from disambiguatedPaths (#3450)
  • 8f06a55 chore(NODE-4700): update dependencies (#3439)
  • b879cb5 feat(NODE-4721): add aws-sdk as optional dependency (#3446)
  • 5f37cb6 fix(NODE-4475): make interrupted message more specific (#3437)
  • 26bce4a feat(NODE-3875): support recursive schema types (#3433)
  • a7dab96 feat(NODE-4503): throw original error when server attaches NoWritesPerformed ...
  • dbfb7d5 docs: Note special case in AbstractCursor.forEach() iterator (#3445)
  • bf000ae refactor(NODE-4689): track checked out connections (#3440)
  • Additional commits viewable in compare view

Merge request reports

Loading