Releases: purescript-node/purescript-node-net
v5.1.0
Bugfixes:
- Bump
node-streamstov9.0.0to fix FFI issues (#18 by @JordanMartinez)
v5.0.0
Breaking changes:
-
Bumped
node-bufferandnode-fstov9.0.0(#12, #17 by @JordanMartinez) -
Update event handling API to use EventHandle-style API (#16 by @JordanMartinez)
Before:
foo = do Socket.onClose socket \b -> doSomething
After:
foo = do socket # on_ Socket.closeH \b -> doSomething
-
Renamed
isIPtoisIP'so thatisIPreturns an ADTPreviously,
Node.Net.isIPreturned an integer that could be one of two values,
4 or 6. This function was renamed toisIP', so thatisIPcould return
an algebraic data type value representing that 4 or 6. -
Distinguish between an IPC and TCP socket/server via phantom type (#16 by @JordanMartinez)
Some functions (e.g.
Node.Net.Server.address) return different values depending on whether
the provided server is an IPC or TCP server. Similarly, some functions
only work on IPC sockets/server rather than TCP ones.Rather than forcing the end-user to handle a case that's not possible,
a phantom type was added toSocketandServerto indicate which
kind of socket/server it is.If a function was named
foobefore and it worked differently depending on
whether the socket/server was IPC or TCP, it is now suffixed withIpcorTcp
to distinguish which it works on.
New features:
- Added bindings for the
BlockListclass (#16 by @JordanMartinez) - Added bindings for the
SocketAddressclass (#16 by @JordanMartinez)
Bugfixes:
Other improvements:
- Bump CI node to v18 (#12 by @JordanMartinez)
- Enforce formatting in CI via
purs-tidy(#12 by @JordanMartinez) - Updated all FFI to use uncurried functions (#16 by @JordanMartinez)
v4.0.0
Breaking changes:
- Update project and deps to PureScript v0.15.0 (#11 by @JordanMartinez, @thomashoneyman, @sigma-andex)
v3.0.0
Due to implementing a breaking change incorrectly, use v10.0.0 instead.
v2.0.1
Bugfixes:
- Fixed the encoding used throughout the project to use the string expected by Node instead of the PureScript representation (#9 by @i-am-the-slime).
v2.0.0
Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#4)
Other improvements:
Initial release
The initial release of the net bindings.
- Creates a
Node.Netmodule with the following exports:isIPisIPv4isIPv6
- Creates a
Node.Net.Servermodule with the following exports:AddressListenOptionsServerServerOptionsaddressclosecreateServergetConnectionslistenlistenBackloglistenExclusivelistenHostlistenICPlistenIpv6OnlylistenPathlistenPortlistenReadableAlllistenTCPlistenWritableAlllisteningonCloseonConnectiononErroronListeningserverAllowHalfOpenserverPauseOnConnect
- Creates a
Node.Net.Socketmodule with the following exports:ConnectOptionsLookupSocketSocketOptionsbufferSizebytesReadbytesWrittenconnectconnectFamilyconnectHintsconnectHostconnectICPconnectLocalAddressconnectLocalPortconnectPathconnectPortconnectTCPconnectingcreateConnectioncreateConnectionICPcreateConnectionTCPdestroydestroyedendendStringlocalAddresslocalPortonCloseonConnectonDataonDrainonEndonErroronLookuponReadyonTimeoutpausependingremoteAddressremoteFamilyremotePortresumesetEncodingsetKeepAlivesetNoDelaysetTimeoutsocketAllowHalfOpensocketFdsocketHostsocketPathsocketPortsocketReadablesocketTimeoutsocketWritablewritewriteString