-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.1.1
-
Component/s: None
What problem are you facing?
mongodb-connection-string-url added a dependency of whatwg-url to bypass a bug with the global URL in some environments. Unfortunately this leads to an issue with the global TextEncoder being a dependency which is not made available in jsdom/jest testing environments.
Is this fixable?
Despite the driver only being tested and supported in environments that do have TextEncoder defined would it be possible to circumvent the need for this dependency?
If we can detect the buggy behavior observed in the protocol parsing we could import whatwg-url only when needed. However, we should check if this will even fix the issue for jsdom users as the global URL implementation may have the buggy behavior and we will end up importing the whatwg-url implementation anyway.
- related to
-
NODE-3581 Driver v4.1.1 regression with TextEncoder reference
- Closed