-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Connection String
Use Case
As a... cloud engineer
I want... driver compatibility with browser URL constructor
So that... host address returns host string
When using the URL constructor in browser, the ILoveJS protocol makes the hostname an empty string and port number undefined, resulting in a default assignment of 27017.
See:
https://github.com/mongodb-js/mongodb-connection-string-url/pull/1
https://github.com/mongodb-js/mongodb-connection-string-url/pull/6
User Impact
none, changing this does not affect driver users
Dependencies
- none
Unknowns
- none
Acceptance Criteria
Implementation Requirements
- Use the whatwg-url and not the url polyfill in the driver
Testing Requirements
- consider unit test for fake url constructor that replicates bug in browser
Documentation Requirements
- none
Follow Up Requirements
- none
- related to
-
NODE-5709 Deprecation warning due to the tr46 module in the dependency chain
- Closed