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

promiseLibrary option is not honoured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.4
    • Fix Version/s: 3.5.5
    • Component/s: None
    • Labels:
      None
    • MongoDB Version:
      4.2.0

      Description

      I've got a feeling that https://github.com/mongodb/node-mongodb-native/commit/f6a8ceb0aa84a50a7aed14cd4d4d847a1b8e3f72#diff-af7f90364fd34f588f43f92c13a92ab6R217 has broken the promiseLibrary option.

       

      For example, if I call the static MongoClient.connect with options including promiseLibrary set to bluebird, the promise returned is not a bluebird promise. I looks like maybePromise (https://github.com/mongodb/node-mongodb-native/blob/master/lib/utils.js#L699) does not honour the promiseLibrary option.

        Attachments

          Activity

            People

            Assignee:
            thomas.reggi Thomas Reggi (Inactive)
            Reporter:
            toby.ealden@gmail.com Toby Ealden
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: