Skip to content

v10.0.0

Compare
Choose a tag to compare
@JordanMartinez JordanMartinez released this 20 Jul 23:05
· 13 commits to master since this release
1c6b0c9

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: