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

XMLWordPrintableJSON

    • 3
    • Not Needed
    • None
    • 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... 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
            Reporter:
            Warren James (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: