Releases: purescript-node/purescript-node-child-process
v11.1.0
New Features:
- Added
waitSpawned'
which works on UnsafeChildProcess (#62 by @JordanMartinez)
Other improvements:
- Noted
pipe
/inherit
stdio issues withstdin
(#62 by @JordanMartinez)
v11.0.0
Breaking changes:
-
Update the signal arg from
String
toKillSignal
(#51, #52 by @JordanMartinez)Exit
'sBySignal
constructor's argexitH
/closeH
's signal argspawnSync
'sSpawnResult
'ssignal
fieldkill'
's signal arg
-
Removed
safeStdio
(#60 by @JordanMartinez)Turns out this isn't safe for
*Sync
functions. AFAIK, this isn't documented
in Node docs.
New features:
- Added
fromKillSignal
,fromKillSignal'
(#51, #59, #60 by @JordanMartinez) - Added
pidExists
(#53 by @JordanMartinez) - Export
toUnsafeChildProcess
(#55 by @JordanMartinez) - Added
stdio
(#55 by @JordanMartinez) - Added
Eq
andShow
instance toShell
&KillSignal
(#58, #59 by @JordanMartinez)
Bugfixes:
- Fixed
exitH
's String value for listener (#60 by @JordanMartinez) - Added missing FFI for
execSync'
(#60 by @JordanMartinez) - Update
node-streams
tov9.0.0
to fix FFI issues (#61 by @JordanMartinez)
Other improvements:
- Fix regression: add
ref
/unref
APIs that were dropped inv10.0.0
(#50 by @JordanMartinez) - Wrap
Unsafe
API viaChildProcess
in safer way (#54 by @JordanMartinez) - Update tests to actually throw if invalid state occurs (#60 by @JordanMartinez)
v10.0.0
Breaking changes:
-
Migrate
onEvent
-style event handlers toeventH
-style (#43 by @JordanMartinez)-- Before onExit cp case _ of Normally exitCode -> ... BySignal signal -> ... -- After cp # on_ exitH case _ of Normally exitCode -> ... BySignal signal -> ...
See https://pursuit.purescript.org/packages/purescript-node-event-emitter/3.0.0/docs/Node.EventEmitter for more details.
-
Update
pid
type signature to returnMaybe Pid
rather thanPid
(#44 by @JordanMartinez) -
Update
kill
returned value fromEffect Unit
toEffect Boolean
(#44 by @JordanMartinez) -
Migrate
Error
tonode-os
'SystemError
(#45 by @JordanMartinez) -
Breaking changes made to the
Exit
type (#46 by @JordanMartinez)- Moved from
Node.ChildProces
toNode.ChildProces.Types
- Changed the
BySignal
's constructor's arg type fromSignal
toString
- Moved from
-
Breaking changes made to the
Handle
type (#46 by @JordanMartinez)- Moved from
Node.ChildProces
toNode.ChildProces.Types
- Moved from
-
Converted
defaultOptions { override = Just 1}
pattern to(_ { override = Just 1})
(#46 by @JordanMartinez)Before:
spawn "foo" [ "bar" ] (defaultSpawnOptions { someOption = Just overrideValue }) spawn "foo" [ "bar" ] defaultSpawnOptions
After:
spawn "foo" [ "bar" ] (_ { someOption = Just overrideValue }) spawn "foo" [ "bar" ] identity
-
Restrict end-user's ability to configure
stdio
to only those appended tosafeStdio
(#46 by @JordanMartinez)See the module docs for
Node.ChildProcess
. -
All
ChildProcess
-creating functions have been updated to support no args and all args variants (#46, #48 by @JordanMartinez)
New features:
-
Added event handler for
spawn
event (#43 by @JordanMartinez) -
Added missing APIs (#44 by @JordanMartinez)
- exitCode
- kill (no signal specified)
- kill' (kill with a
String
signal) - killSignal (kill with an ADT
Signal
arg) - killed
- signalCode
- spawnArgs
- spawnFile
-
Added unsafe, uncurried API of all ChildProcess-creating functions (#46 by @JordanMartinez)
-
Added safe variant of
spawnSync
/spawnSync'
(#46 by @JordanMartinez) -
Added
Aff
-basedwaitSpawned
to safely getPid
(#47 by @JordanMartinez)Blocks until child process either successfully spawns or fails to spawn.
Bugfixes:
Other improvements:
- Bumped CI's node version to
lts/*
(#41 by @JordanMartinez) - Updated CI
actions/checkout
andactions/setup-nodee
tov3
(#41 by @JordanMartinez) - Format codebase & enforce formatting in CI via purs-tidy (#42 by @JordanMartinez)
- Migrate FFI to uncurried functions (#44, #46 by @JordanMartinez)
- Updated recommended module alias in docs (#46 by @JordanMartinez)
v9.0.0
Breaking changes:
- Update project and deps to PureScript v0.15.0 (#31 by @JordanMartinez, @thomashoneyman, @sigma-andex)
v8.0.0
Due to implementing a breaking change incorrectly, use v9.0.0 instead.
v7.1.0
New features:
- Added
shell
andencoding
options toexec
functions (#29 by @thomashoneyman)
v7.0.0
v6.0.0
v5.0.0
Updates for 0.12
Breaking
- mkOnClose now reacts to the
close
signal instead ofexit
@Profpatsch kill
returns Unit instead of Boolean @Profpatschexec
/execFile
returns a ChildProcess @Profpatsch
Additions
- Bindings to the synchronous versions of exec @jyh1