Remove ObjectId.cacheHexString

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the next major version of bson, remove the deprecated ObjectId.cacheHexString flag along with its supporting hex-string cache: the module-level __idCache WeakMap, the cache reads and writes in the constructor / toHexString() / the id setter, and the isCached() helper.

      Depends on NODE-7626 (deprecation) shipping in a 7.x minor first.

      Precedent: the equivalent flag on the UUID class was removed in NODE-5223 (feat(NODE-5223)!: remove deprecated cacheHexString). Once this lands, NODE-7625 (cache normalization) becomes moot.

            Assignee:
            Unassigned
            Reporter:
            Sergey Zelenov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: