Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5229

Assess driver event interfaces for alignment with runtime events

      Our event interfaces uses inheritance to document events that are emitted from within the driver but are made available on the MongoClient. It seems as though the client has opted into more events than are actually emitted: Ex. The 'close' event from topology is never emitted from the MongoClient.

      type MongoClientEvents = Pick<TopologyEvents, (typeof MONGO_CLIENT_EVENTS)[number]>
      

      A similar issue is present in ChangeStreamEvents, the typescript definitions report more events than are actually used by the class (ex. INIT).

      AC

      • Search emit invocations are verify there is at least one emit for each documented event string.

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: