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

Deprecated Items to remove in Node Driver v4

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.0
    • Native
    • None

    Description

      Deprecated Items
      The following are all items in our codebase that are some way marked as deprecated. We should evaluate which of these to keep and which to eliminate in the next major version:

      • Collection.prototype.find / findOne options:
        • fields - yes
      • Collection.prototype.save - yes
      • Collection.prototype.dropAllIndexes - yes
      • Collection.prototype.ensureIndex - yes
      • Collection.prototype.findAndModify - yes
      • Collection.prototype.findAndRemove - yes
      • Collection.prototype.parallelCollectionScan - yes
      • MongoError.create - yes
      • Topology.destroy - yes
      • Cursor.prototype.each - yes yes 1000x yes
      • Db.prototype.eval - yes
      • Db.prototype.ensureIndex - yes
      • Db.prototype.profilingInfo - yes
      • MongoClient.prototype.logout - yes
      • MongoClient.prototype.addUser: Creating a user without roles - yes
      • MongoClient.prototype.connect legacyOptionNames - yes
      • Remove MongoClient.isConnected - yes
      • Remove MongoClient.logOut - yes

      Items we are not changing:

      • AggregateCursor.prototype.geoNear - no
      • Collection.prototype.find / findOne options:
        • maxScan - no
        • snapshot - no
      • Collection.prototype.insert - no, we will just rewrite these to use One/Many
      • Collection.prototype.update - no, we will just rewrite these to use One/Many
      • Collection.prototype.remove - no, we will just rewrite these to use One/Many
      • Collection.prototype.count - no
      • ReadPreference.prototype.preference - no, track to get rid of in 5.0
      • Cursor.prototype.maxScan - no
      • Cursor.prototype.snapshot - no
      • Db.prototype.createCollection option autoIndexId - no

      Items that were big enough to warrant their own ticket:

      • Legacy Topologies (Server, ReplSet, Mongos) (NODE-2318)
      • Core URI Parser: any deprecated items (NODE-2319)
      • Legacy URI Parser (NODE-2319)
      • GridStore (NODE-2320)
      • lib/async/async_iterator.js: TODO: change this to the async generator function above (NODE-2321)
      • lib/collection.js: Throw on Third Parameter to Find (NODE-2322)
      • lib/core/topologies/read_preference.js: TODO(major): tags MUST be an array of tagsets (NODE-2323)
      • lib/cursor.js: stream and transformStream should go away now that it is readable stream (NODE-2324)
      • lib/operations/execute_operation.js: remove selectServerForSessionSupport (NODE-2325)
      • lib/operations/replace_one.js: sticking doc on replaceOne return value? (NODE-2326)
      • lib/operations/(replace|update)_one.js: // FIXME(major): should be `r.result.upserted[0]._id` (NODE-2327)

      Attachments

        Issue Links

          Activity

            People

              neal.beeken@mongodb.com Neal Beeken
              daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: