Releases: JacobFischer/netlinkwrapper
Releases · JacobFischer/netlinkwrapper
v2.0.2
v2.0.1
Fixed
- Fixed missing binding.gyp file in package deployed to NPM
v2.0.0
Changes
- Breaking: The entire shape of this package has been modified and expanded
- The
NetLinkWrapperconstructor is removed, and is no longer the only export SocketClientTCPfunctionally replacesNetLinkWrapper- It is a named export of the same name of this module now
.connectno longer exists. Instead connections are attempted to form during the constructor call- All constructors must be invoked with the
newkeyword- Failure to do so will result in an Error being thrown
.blocking()now is now a property.isBlocking- Setting it to a boolean will change the blocking nature of the socket
.write()renamed to.send()- Will now accept a
Buffer,string, orUint8Arraytyped value to send,
instead of only astring#15
- Will now accept a
.read()renamed to.receive()- No longer requires (or accepts) a buffer size argument
- Now returns a
Bufferinstance instead of astring
- The
- Important: The entire middleware component of this module has been re-written
- It is recommended that you review the docs to see what has changed and been added
Added
- New:
SocketUDPadded for UDP usage- Can send and/or receive from other UDP sockets
- New:
SocketServerTCPadded for TCP server usage- Can bind and listen to an address for new TCP clients
- All socket classes can be manually specified to
IPv4orIPv6- Defaults to
IPv4 - After constructed this can be checked via the
isIPv4andisIPv6flags- Note: These cannot be set/changed these after construction, and attempting to do so will result in an Error being thrown
- Defaults to
- Sockets expose their
hostFrom,portFrom(TCP Server/UDP), andhostTo
,portTo(TCP Client) as properties- Note: These cannot be changed/set after constructed, and attempting to do so will result in an Error being thrown
- See the [documentation] for full details on these new classes and functionality
- Once
.disconnect()is called, the newisDestroyedflag will be set fromfalsetotrue- Note: This cannot be manually set, and attempting to do so will result in an Error being thrown
Fixes
- node-gyp C++ build warnings on Windows systems resolved
v1.2.1
Security
- Updated dependencies to latest to resolve security concerns
v1.2.0
v1.1.2
v1.1.1
v1.1.0
v1.0.0
Updates to bring in line with my sync-socket module, as well as fixing compiler warnings.
Also confirmed to work on Mac now
Initial Release
This is the first release that should work across Windows and Linux and has been tested in other released software.