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

The Cursor constructor name changed from "Cursor" in 1.3.19 to "Object" 1.3.20

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.3
    • Component/s: None
    • Labels:

      Keeping the same node version (for example v0.10.21), suddenly the constructor name changed for the Cursor class. What caused this change?

      Is such a change suitable for a patch release (1.3.19 to 1.3.20)

      In our case this breaks the functionality that relies on the fact that a find operation result was of type constructor. We check it using: result.constructor.name (we want to avoid "instance Cursor")

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            gabipetrovay Gabriel Petrovay
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: