Skip to content

Releases: purescript-node/purescript-node-process

v11.3.0

Choose a tag to compare

@thomashoneyman thomashoneyman released this 18 Oct 19:51

New features:

  • Add FFI for process.loadEnvFile as loadEnvFile and loadEnvFile' (#47 by @m-rinaldi). These APIs require Node.js 20.12+ on the Node 20 release line.

Full changelog: v11.2.1...v11.3.0

v11.2.1

Choose a tag to compare

@thomashoneyman thomashoneyman released this 10 Oct 01:52
1058e44

Moves the package from Bower/Pulp to registry-backed Spago, preserving published dependency bounds. Modernizes CI and dev tooling with Oxlint, Oxfmt, and the latest stable purs-tidy, and adds an environment API test. One npm advisory remains in the dev-only Spago dependency tree.

v11.2.0

Choose a tag to compare

@JordanMartinez JordanMartinez released this 26 Jul 21:49
02fa21e

Bugfixes:

v11.1.1

Choose a tag to compare

@JordanMartinez JordanMartinez released this 26 Jul 00:41
a41085c

Bugfixes:

v11.1.0

Choose a tag to compare

@JordanMartinez JordanMartinez released this 25 Jul 04:42
38dcd31

New Features:

v11.0.1

Choose a tag to compare

@JordanMartinez JordanMartinez released this 21 Jul 18:43
d640163

Bugfixes:

v11.0.0

Choose a tag to compare

@JordanMartinez JordanMartinez released this 21 Jul 16:57
8139d19

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 of exit has changed:

    -- before:
    exit :: forall a. Int -> Effect a
    
    -- after:
    exit :: forall a. Effect a
    
    exit' :: forall a. Int -> Effect a
  • Bump node-streams to v8.0.0 (#40 by @JordanMartinez)

  • Migrate onEventName to eventH-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

Bugfixes:

Other improvements:

v10.0.0

Choose a tag to compare

@JordanMartinez JordanMartinez released this 29 Apr 14:06
9d126d9

Breaking changes:

v9.0.0

Choose a tag to compare

@JordanMartinez JordanMartinez released this 27 Apr 22:42
4825df3

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

v8.2.0

Choose a tag to compare

@thomashoneyman thomashoneyman released this 06 May 17:11
e1e807a

New features:

Other improvements: