Skip to content

Releases: purescript-node/purescript-node-child-process

v11.1.0

14 Nov 11:10
99fd379
Compare
Choose a tag to compare

New Features:

Other improvements:

v11.0.0

26 Jul 21:55
12932f4
Compare
Choose a tag to compare

Breaking changes:

  • Update the signal arg from String to KillSignal (#51, #52 by @JordanMartinez)

    • Exit's BySignal constructor's arg
    • exitH/closeH's signal arg
    • spawnSync's SpawnResult's signal field
    • kill''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:

Bugfixes:

Other improvements:

v10.0.0

20 Jul 23:05
1c6b0c9
Compare
Choose a tag to compare

Breaking changes:

  • Migrate onEvent-style event handlers to eventH-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 return Maybe Pid rather than Pid (#44 by @JordanMartinez)

  • Update kill returned value from Effect Unit to Effect Boolean (#44 by @JordanMartinez)

  • Migrate Error to node-os' SystemError (#45 by @JordanMartinez)

  • Breaking changes made to the Exit type (#46 by @JordanMartinez)

    • Moved from Node.ChildProces to Node.ChildProces.Types
    • Changed the BySignal's constructor's arg type from Signal to String
  • Breaking changes made to the Handle type (#46 by @JordanMartinez)

    • Moved from Node.ChildProces to Node.ChildProces.Types
  • 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 to safeStdio (#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-based waitSpawned to safely get Pid (#47 by @JordanMartinez)

    Blocks until child process either successfully spawns or fails to spawn.

Bugfixes:

Other improvements:

v9.0.0

29 Apr 14:27
ceaa5dc
Compare
Choose a tag to compare

Breaking changes:

v8.0.0

27 Apr 23:59
5179e38
Compare
Choose a tag to compare

Due to implementing a breaking change incorrectly, use v9.0.0 instead.

v7.1.0

13 Jul 12:21
5c4e560
Compare
Choose a tag to compare

New features:

v7.0.0

26 Feb 22:57
e16bcd2
Compare
Choose a tag to compare

Breaking changes:

  • Updated dependencies for PureScript 0.14 (#25)

Other improvements:

  • Migrated CI to GitHub Actions and updated installation instructions to use Spago (#24)
  • Added a CHANGELOG.md file and pull request template (#26)

v6.0.0

15 Mar 12:41
887b252
Compare
Choose a tag to compare

Updated purescript-foreign-object dependency

v5.0.0

02 Jun 07:28
97fd9c0
Compare
Choose a tag to compare

Updates for 0.12

Breaking

  • mkOnClose now reacts to the close signal instead of exit @Profpatsch
  • kill returns Unit instead of Boolean @Profpatsch
  • exec/execFile returns a ChildProcess @Profpatsch

Additions

  • Bindings to the synchronous versions of exec @jyh1

v4.0.0

05 Apr 15:43
Compare
Choose a tag to compare

Updates for 0.11 compiler