feat(deps): make https-proxy-agent optional (#2388)

Bump https-proxy-agent to v7 and a dev dependency. This makes
configuring bundlers easier to configure and removes a direct
dependency of `https-proxy-agent`.

BREAKING CHANGE: Configuring a proxy is done by specifying the
`agent` parameter on the ConnectionOptions config. This can use be
created by libraries such as `https-proxy-agent` or any that
implements `http.Agent`.
This commit is contained in:
Caleb Kniffen
2023-07-25 20:27:31 -05:00
parent 8caf2e45bb
commit 3b7dd4ea87
8 changed files with 76 additions and 91 deletions

View File

@@ -62,12 +62,7 @@ To use `xrpl.js` with React, you need to install shims for core NodeJS modules.
Buffer: ["buffer", "Buffer"],
}),
]);
// This is deprecated in webpack 5 but alias false does not seem to work
config.module.rules.push({
test: /node_modules[\\\/]https-proxy-agent[\\\/]/,
use: "null-loader",
});
return config;
};
```