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

Update typescript version to 5.8 to make use of --erasableSyntaxOnly option

    • 3
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... javascript user
      I want... the driver's tsconfig to use the erasableSyntaxOnly option 
      So that... the driver can be run directly via node since it now has the capability to erase types

      User Experience

      • Remove need for driver to be compiled to be used in Javascript projects

      Dependencies

      • N/A

      Risks/Unknowns

      • How large would the changes to the driver be to accomodate this?

      Acceptance Criteria

      Implementation Requirements

      • Update typescript version to 5.8 in:
        • the driver
        • bson
        • mongodb-client-encryption
        • dbx-js-tools
      • enable erasableSyntaxOnly option in all of our ts configs:
        • driver main
        • bson
        • mongodb-client-encryption
        • dbx-js-tools
        • perf tests
      • Update to tsd 0.32.0 (this version uses typescript 5.8)

      Testing Requirements

      • add test verifying that the driver is runnable/importable directly with the node command 

      Documentation Requirements

      • N/A

      Follow Up Requirements

      • N/A

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            warren.james@mongodb.com Warren James
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: