File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ Notable changes to this project are documented in this file. The format is based
4
4
5
5
## [ Unreleased]
6
6
7
+ Breaking changes:
8
+
9
+ New features:
10
+
11
+ Bugfixes:
12
+
13
+ Other improvements:
14
+
15
+ ## [ v11.0.0] ( https://github.com/purescript-node/purescript-node-process/releases/tag/v11.0.0 ) - 2023-07-21
16
+
7
17
Breaking changes:
8
18
- Breaking changes to ` exit ` (#39 by @JordanMartinez )
9
19
@@ -30,6 +40,30 @@ Breaking changes:
30
40
- Bump ` node-streams ` to ` v8.0.0 ` (#40 by @JordanMartinez )
31
41
- Migrate ` onEventName ` to ` eventH ` -style event handling API (#40 by @JordanMartinez )
32
42
43
+ ``` purs
44
+ -- Before
45
+ onExit \exitCode -> ...
46
+
47
+ -- After
48
+ process # on_ exitH \exitCode ->
49
+ ```
50
+
51
+ See https://pursuit.purescript.org/packages/purescript-node-event-emitter/3.0.0/docs/Node.EventEmitter for more details.
52
+
53
+ ` onSignal ` has many possible enumerations, so a generic one was provided instead:
54
+ ``` purs
55
+ -- Before
56
+ onSignalExit SIGTERM do
57
+ ...
58
+
59
+ -- After
60
+ process # on_ (mkSignalH SIGTERM) do
61
+ ...
62
+ -- Or, is `Signal` doesn't have it
63
+ process # on_ (mkSignalH' "SIGTERM") do
64
+ ...
65
+ ```
66
+
33
67
New features:
34
68
- Add missing APIs (#39 by @JordanMartinez )
35
69
You can’t perform that action at this time.
0 commit comments