Releases: purescript-node/purescript-node-process
v11.2.0
Bugfixes:
- Update
node-streams
tov9.0.0
to fix FFI issues (#45 by @JordanMartinez)
v11.1.1
Bugfixes:
- Fixes FFI for
cwd
(#44 by @JordanMartinez)
v11.1.0
New Features:
- Add FFI for
getUid
/getPid
(#43 by @JordanMartinez)
v11.0.1
Bugfixes:
- Fix FFI for
channelRef
/channelUnref
(#40 by @JordanMartinez)
v11.0.0
Breaking changes:
-
Breaking changes to
exit
(#39 by @JordanMartinez)The
exit
API provides two versions:- unspecified exit code:
process.exit();
- specified exit code:
process.exit(1);
Previously, the type signature of
exit
only 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 ofexit
has 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-streams
tov8.0.0
(#40 by @JordanMartinez) -
Migrate
onEventName
toeventH
-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.
onSignal
has 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
abort
setExitCode
getExitCode
kill
/killStr
/kilInt
nextTick'
ppid
- Uncaught exception capture callback
hasUncaughtExceptionCaptureCallback
setUncaughtExceptionCaptureCallback
clearUncaughtExceptionCaptureCallback
getTitle
/setTitle
- ChildProcess-related things
channelRef
/channelUnref
connected
unsafeSend
/unsafeSendOpts
/unsafeSendCb
/unsafeSendOptsCb
- Diagnostic-related things
config
cpuUsage
/cpuUsageDiff
debugPort
memoryUsage
/memoryUsageRss
resourceUsage
uptime
- Process-related things
Bugfixes:
- Docs: discourage
exit
in favor ofsetExitCode
(#39 by @JordanMartinez)
Other improvements:
- Bumped CI's node version to
lts/*
(#37 by @JordanMartinez) - Updated CI
actions/checkout
andactions/setup-nodee
tov3
(#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)
v10.0.0
Breaking changes:
- Update project and deps to PureScript v0.15.0 (#34 by @nwolverson, @JordanMartinez, @sigma-andex)
v9.0.0
Due to implementing a breaking change incorrectly, use v10.0.0 instead.
v8.2.0
New features:
- Export
nextTick
(#32 by @JordanMartinez)
Other improvements:
- Fix warnings revealed by v0.14.1 PS release (#32 by @JordanMartinez)
v8.1.0
v8.0.0
Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#24)
New features:
- Added functions to register handlers for the
uncaughtException
andunhandledRejection
events on the process (#20) - Added
unsetEnv
for deleting environment variables (#21)
Bugfixes:
- Updated the implementations of
argv
,execArgv
, andgetEnv
so they clone the argument array to ensure referential transparency (#26)
Other improvements: