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

Use bundler-friendly `crypto` over `node:crypto` in bson

    • 3
    • Not Needed
    • 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?

      Bundlers tend to know about Node.js builtins' names, but less so about node: as a prefix available for all Node.js builtins. While it's usually possible to work around this, using crypto in place of node:crypto in the bson library might avoid this as a pain point for other consumers of the bson library.

      AC

      • Delete node:
      • Try to reproduce with simple webpack config and add to CI if successful

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: