socks
2.8.11 · 19 Nov 2026MIT84.1M / weekRepositoryHomepagenpmAtom feed
56 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x · latest line
2.8.11
19 Nov 20262.8.10
2 Sep 2026Bump js-yaml and mocha
Upgrade dev tooling and expand CI to current Node LTS versions
What's Changed
Bump js-yaml and mocha
Upgrade dev tooling and expand CI to current Node LTS versions
2.8.1
23 Feb 2024Fixes issue with lock file in 2.7.3 and 2.8.0
2.7.3
12 Feb 2024Removed
ippackage dependency.2.6.0
17 Mar 2021Adds support for custom auth methods.
2.5.1
4 Dec 20202.5.0
26 Oct 2020Changed behavior of createConnection/createConnectionChain option validation to where errors are surfaced via callback (if provided), or through promise rejection.
2.3.1
3 Feb 2019When creating connections, 'ipaddress' can now be a hostname (proxyserver1.com for example)
'host' property added to proxy config, this is intended to replace 'ipaddress'. (ipaddress remains for backwards compatibility)
When creating connections, 'ipaddress' can now be a hostname (proxyserver1.com for example)
'host' property added to proxy config, this is intended to replace 'ipaddress'. (ipaddress remains for backwards compatibility)
The following are equivalent:
Using 'ipaddress':
const options = { proxy: { ipaddress: '159.203.75.200', // ipv4 or ipv6 or hostname port: 1080, type: 5 // Proxy version (4 or 5) }, command: 'connect', // SOCKS command (createConnection factory function only supports the connect command) destination: { host: '192.30.253.113', // github.com (hostname lookups are supported with SOCKS v4a and 5) port: 80 } };Using 'host'
const options = { proxy: { host: '159.203.75.200', // ipv4 or ipv6 or hostname port: 1080, type: 5 // Proxy version (4 or 5) }, command: 'connect', // SOCKS command (createConnection factory function only supports the connect command) destination: { host: '192.30.253.113', // github.com (hostname lookups are supported with SOCKS v4a and 5) port: 80 } };Hostnames are now allowed:
const options = { proxy: { host: 'proxy1.proxyservers.com', // ipv4 or ipv6 or hostname port: 1080, type: 5 // Proxy version (4 or 5) }, command: 'connect', // SOCKS command (createConnection factory function only supports the connect command) destination: { host: '192.30.253.113', // github.com (hostname lookups are supported with SOCKS v4a and 5) port: 80 } };2.2.2
6 Nov 2018This release fixes an issue where socks would throw an error on Electron.
2.2.1
27 Jun 20182.2.0
4 Apr 2018Internally we now reference the socket as a duplex stream. Since (Socket instanceof Duplex === true) this shouldn't break anything, but you can now pass in a Duplex as existing_socket (if you're using this for some reason).
2.1.6
18 Mar 2018This fixes an issue with the 'receivebuffer' import.
2.1.5
11 Mar 2018Fixes incoming data flow issues. It's highly recommended to upgrade to this version if you're using 2.x.x
- 1.x
1.1.10
14 Jan 2017This release upgrades smart-buffer and ip.
1.1.9
7 Apr 2016This release updates the smart-buffer and ip packages.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.