-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hey folks, just requesting a quick change in the package to remove a warning that shows in the console. Thanks in advance!
Expected Behavior
The standrard JS URL should be used instead
Current Behavior
Node's deprecated url.parse() is used in the package. This method is unmaintained and no longer receives security fixes.
When we start the package Node/Electron prints this warning:
(node:8930) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
Possible Solution
Switch to using URL() or URL.parse()
Steps to Reproduce
- Import @amplitude/experiment-node-server
- Initialize the service
- See warning message in console
Environment
- JS Server SDK Version: Electron 40.0.0/Node 24.13.0
- Installation Method: NPM
- Browser and Version: N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working