From 8139d191c43b02b8e03c6e880bac83bceb8dfa2a Mon Sep 17 00:00:00 2001 From: JordanMartinez Date: Fri, 21 Jul 2023 09:56:48 -0700 Subject: [PATCH] Finalize changelog (#41) --- CHANGELOG.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d607640..367a911 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ Notable changes to this project are documented in this file. The format is based ## [Unreleased] +Breaking changes: + +New features: + +Bugfixes: + +Other improvements: + +## [v11.0.0](https://github.com/purescript-node/purescript-node-process/releases/tag/v11.0.0) - 2023-07-21 + Breaking changes: - Breaking changes to `exit` (#39 by @JordanMartinez) @@ -30,6 +40,30 @@ Breaking changes: - Bump `node-streams` to `v8.0.0` (#40 by @JordanMartinez) - Migrate `onEventName` to `eventH`-style event handling API (#40 by @JordanMartinez) + ```purs + -- 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: + ```purs + -- 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)