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

bson does not expose a default export

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.2.1
    • Affects Version/s: 4.0.0
    • Component/s: BSON

      When loading bson from TypeScript as import bson from 'bson';, that breaks with bson@4.2.0, because TypeScript sees that `lib/bson.js` was generated from a TypeScript module without a default export. (This does not affect genuine ES6 modules, only TypeScript modules.)

      Adding a default export back, at least for bson@4.x.x, should fix this.

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

              Created:
              Updated:
              Resolved: