v11.0.0
Breaking changes:
-
Breaking changes to
exit(#39 by @JordanMartinez)The
exitAPI provides two versions:- unspecified exit code:
process.exit(); - specified exit code:
process.exit(1);
Previously, the type signature of
exitonly allowed
the second usage. This change supports both.
Followin the pattern used in other Node libraries
of a'(prime) character indicating a
variant of the function that takes a callback or optons
are, the type signature ofexithas changed:-- before: exit :: forall a. Int -> Effect a -- after: exit :: forall a. Effect a exit' :: forall a. Int -> Effect a
- unspecified exit code:
-
Bump
node-streamstov8.0.0(#40 by @JordanMartinez) -
Migrate
onEventNametoeventH-style event handling API (#40 by @JordanMartinez)-- Before onExit \exitCode -> ... -- After process # on_ exitH \exitCode ->
See https://pursuit.purescript.org/packages/purescript-node-event-emitter/3.0.0/docs/Node.EventEmitter for more details.
onSignalhas many possible enumerations, so a generic one was provided instead:-- Before onSignalExit SIGTERM do ... -- After process # on_ (mkSignalH SIGTERM) do ... -- Or, is `Signal` doesn't have it process # on_ (mkSignalH' "SIGTERM") do ...
New features:
-
Add missing APIs (#39 by @JordanMartinez)
- Process-related things
abortsetExitCodegetExitCodekill/killStr/kilIntnextTick'ppid- Uncaught exception capture callback
hasUncaughtExceptionCaptureCallbacksetUncaughtExceptionCaptureCallbackclearUncaughtExceptionCaptureCallback
getTitle/setTitle
- ChildProcess-related things
channelRef/channelUnrefconnectedunsafeSend/unsafeSendOpts/unsafeSendCb/unsafeSendOptsCb
- Diagnostic-related things
configcpuUsage/cpuUsageDiffdebugPortmemoryUsage/memoryUsageRssresourceUsageuptime
- Process-related things
Bugfixes:
- Docs: discourage
exitin favor ofsetExitCode(#39 by @JordanMartinez)
Other improvements:
- Bumped CI's node version to
lts/*(#37 by @JordanMartinez) - Updated CI
actions/checkoutandactions/setup-nodeetov3(#37 by @JordanMartinez) - Format codebase & enforce formatting in CI via purs-tidy (#37 by @JordanMartinez)
- Use uncurried FFI (#38 by @JordanMartinez)
- Reordered export list (#39 by @JordanMartinez)