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

Use a private property for the cached hexString ObjectId representation

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

      Use Case

      As a Node driver engineer,
      I want to use native private fields instead of a weakmap to store cached hex strings,
      So that we can stay up-to-date with modern syntax.

      User Experience

      • Unaffected.

      Dependencies

      • n/a

      Risks/Unknowns

      • n/a

      Acceptance Criteria

      Implementation Requirements

      • Remove the weakmap in ObjectId.ts and instead use a private property to store the cached hex string on the ObjectId when caching is enabled.

      Testing Requirements

      • None.

      Documentation Requirements

      • none.

      Follow Up Requirements

      • none.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: