-
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.