Replace Buffer with Uint8Array

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 7.2.0
    • Affects Version/s: None
    • Component/s: None
    • 5
    • Not Needed
    • None
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a driver user
      I want the driver to be platform-agnostic
      So that I can run my application in different existing and future runtimes

      User Experience

      • Nodejs Buffer is used if applicable, Uint8Array is used otherwise

      Dependencies

      • N/A

      Risks/Unknowns

      • N/A

      Acceptance Criteria

      Implementation Requirements

      • Identify all the Buffer methods that are used in the driver
      • Make sure all of them are either implemented in BSON library or implement new functionality there (.compare, for example)
      • Export ByteUtils from BSON
      • Functionality from the BSON library must be used

      Testing Requirements

      • Existing unit tests pass, new tests are written if applicable

      Documentation Requirements

      • Release note

      Follow Up Requirements

      • N/A

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

              Created:
              Updated:
              Resolved: