UNPKG

10.4 kBMarkdownView Raw
1# Changelog
2
3### `v5.4.3`
4
5- Reverts breaking dependency upgrades from `v5.4.2` as some dependencies has removed Node 6 which is a breaking change.
6
7### `v5.4.2`
8
9- Updates dependencies
10
11### `v5.4.1`
12
13- Reverts changes to default timeout as they are causing some issues. See [#271](https://github.com/mikaelbr/node-notifier/pull/271)
14
15### `v5.4.0`
16
17- Prevent Spotlight from indexing terminal-notifier.app ([#238](https://github.com/mikaelbr/node-notifier/pull/238))
18- Changes from legacy url.parse api
19- Adds default timeout to notification center
20- Adds mapping from timeout to expire time for linux
21- Enables the use of WindowsToaster when using WSL ([#260](https://github.com/mikaelbr/node-notifier/pull/260))
22
23### `v5.3.0`
24
25- Re-adds `notifu` update.
26
27### `v5.2.1`
28
29- Rollback `notifu` update as it triggered Avast virus scan.
30
31### `v5.2.0`
32
33- Updates `terminal-notifier` dependency to `v1.7.2`, fixing memory leak. But not to `v1.8.0` as this breaks how icons work.
34- Updates `notifu` with new subtitle "Notification"
35- Fix: issue with `appID` by removing default empty string (see README Windows section)
36- Fix: link notifier time property to notify-send expire-time flag
37
38- Minor change: use a more specific condition for enabling debug logging ([#171](https://github.com/mikaelbr/node-notifier/pull/171))
39
40### `v5.1.2`
41
42- Adds temporary workaround for `terminal-notifier` memory leak as seen in https://github.com/facebook/jest/issues/2999 and https://github.com/julienXX/terminal-notifier/issues/173.
43- Add appName option and hide snoreToast if not setted ([#158](https://github.com/mikaelbr/node-notifier/pull/158))
44
45### `v5.0.2`
46
47Non-obligatory fail. Fixes issue with multiple actions for macOS.
48
49### `v5.0.1`
50
51Obligatory fail. Fixes minor issue with non-JSON output for macOS.
52
53### `v5.0.0`
54
55#### Breaking Changes
56
57_Note/TL;DR_: If you are just using `node-notifier` with things like `message`, `title` and `icon`, v5 should work just as before.
58
591. CLI is now removed. Can be found in separate project: https://github.com/mikaelbr/node-notifier-cli. This means you no longer get the `notify` bin when installing `node-notifier`. To get this do `npm i [-g] node-notifier-cli`
602. Changed toaster implementation from `toast.exe` to [Snoretoast](https://github.com/KDE/snoretoast). This means if you are using your custom fork, you need to change. SnoreToast has some better default implemented functionality.
613. [terminal-notifier](https://github.com/julienXX/terminal-notifier) dependency has been bumped to `v1.7.1`. With that there can be changes in the API, and supports now reply and buttons. Output has changed to JSON by default, this means the output of some functions of the terminal-notifier has broken. See https://github.com/julienXX/terminal-notifier for more details. See [README](https://github.com/mikaelbr/node-notifier#usage-notificationcenter) for documentation on how to use the new features, or [an example file](https://github.com/mikaelbr/node-notifier/blob/master/example/macInput.js).
624. `notify` method will now throw error if second argument is something else than function (still optional): [#138](https://github.com/mikaelbr/node-notifier/pull/138).
63
64#### Additions
65
661. Now supports \*BSD systems: [#142](https://github.com/mikaelbr/node-notifier/pull/142).
672. With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
68
69```javascript
70{
71 title: void 0, // String. Required
72 message: void 0, // String. Required if remove is not defined
73 icon: void 0, // String. Absolute path to Icon
74 sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
75 wait: false, // Bool. Wait for User Action against Notification or times out
76 id: void 0, // Number. ID to use for closing notification.
77 appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
78 remove: void 0, // Number. Refer to previously created notification to close.
79 install: void 0 // String (path, application, app id). Creates a shortcut <path> in the start menu which point to the executable <application>, appID used for the notifications.
80}
81```
82
83#### Fixes
84
851. Fixes new lines on messages on Windows: [#123](https://github.com/mikaelbr/node-notifier/issues/123)
86
87#### Technical Changes
88
89_Internal changes for those who might be interested_.
90
911. Dependencies bumped
922. Unnecessary dependencies removed (`lodash.deepClone`). Now uses JSON serialize/deserialize instead.
933. Project is auto-formatted by [`prettier`](https://github.com/jlongster/prettier).
944. [Linting is added](https://github.com/mikaelbr/node-notifier/blob/master/.eslintrc)
955. Added way to better debug what is happening by setting `DEBUG` env-var to `true`. See [CONTRIBUTE.md](https://github.com/mikaelbr/node-notifier/blob/master/CONTRIBUTE.md) for more details.
96
97### `v4.6.1`
98
991. Adds npm ignore file, ignoring tests and examples from package.
1002. Fixes CI builds.
101
102### `v4.6.0`
103
1041. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
1052. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
1063. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
1074. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
1085. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
1096. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
1107. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
111
112### `v4.5.0`
113
114#### Additions
115
1161. Adds syntactic sugar for `notify`. Now able to just pass message:
117
118```js
119notifier.notify('My message');
120```
121
122See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
123
124#### Fixes
125
1261. Improvements to docs and examples
1272. Updates `semver` dependency to support Webpacking with Electron.
128
129### `v4.4.0`
130
1311. Changes to exec terminal-notifier through execFile to allow for asar-packages
1322. Adds support for remote growl server
1333. Adds support for win7 with electron asar-package
134
135### `v4.3.1`
136
137Obligatory patch fix:
138
1391. Adds new stdin CLI options to docs
140
141### `v4.3.0`
142
1431. Adds support for piping messages in to CLI.
144 (With `node-notifier` installed as a CLI `npm i -g node-notifier`)
145
146```shell
147➜ echo "Message" | notify
148➜ echo "Message" | notify -t "My Title"
149➜ echo "Some message" | notify -t "My Title" -s
150```
151
152### `v4.2.3`
153
1541. Fixed input arguments to CLI to be strings where they should be strings.
155
156### `v4.2.2`
157
1581. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
1592. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
160
161### `v4.2.1`
162
1631. Minor fix for docs in CLI usage
164
165### `v4.2.0`
166
1671. Adds CLI support.
1682. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
169
170### `v4.1.2`
171
1721. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
173 to support activate / click.
174
175### `v4.1.1`
176
1771. Fixes proper error codes for balloon: #42
1782. Removes unused debug files: #41
1793. Patches differences between subtitle for notify-send: #43
1804. Updates terminal-notifier dependency (removing black borders) #44 #18
181
182### `v4.1.0`
183
1841. Adds support for changing host and port for Growl.
185
186### `v4.0.3`
187
1881. Fixes Notification center issue with multiple callback events.
1892. Fixes error in source code: Fixes long-spaces to proper spaces
190
191### `v4.0.2`
192
1931. Fixes issue with immidiate notifu notifications (with `wait : false`)
1942. Fixes issue with boolean flags for notifu.
1953. Restructures directories. Making it easier to require notifiers directly.
196
197### `v4.0.1`
198
1991. Fixes issue with optional callback for notify-send
200
201### `v4.0.0`
202
203Major changes and breaking API.
204
2051. require('node-notifier') now returns an instance with fallbackable notifications.
206
207```js
208var notifier = require('node-notifier');
209notifier.notify();
210```
211
2122. Introduced a `wait` property (default `false`), to get user input for
213 Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
214 for notify-send.
215
216```js
217var notifier = require('node-notifier');
218notifier.notify({ wait: true }, function(err, response) {
219 // response is response after user have interacted
220 // with the notification or the notification has timed out.
221});
222```
223
2243. All notification instances are now event emitters, emitting events
225 `click` or `timeout`. This is only applicable if `{ wait: true }`.
226
227```js
228var notifier = require('node-notifier');
229notifier.on('click', function(notificationObject, options) {
230 // options.someArbitraryData === 'foo'
231});
232notifier.notify({ wait: true, someArbitraryData: 'foo' });
233```
234
2354. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
236 Default NotificationCenter sound is Bottle. Can still use define sound on
237 Mac:
238
239```js
240var notifier = require('node-notifier');
241notifier.notify({ sound: true });
242// For mac (same as sound: true on Windows 8)
243notifier.notify({ sound: 'Morse' });
244```
245
246### `v3.4.0`
247
2481. Adds Growl as priority over Balloons
249
250### `v3.3.0`
251
2521. Adds support for native Windows 7 and earlier (through task bar balloons)
2532. Changes growl implementation. Adds better support for GNTP
254
255### `v3.2.1`
256
2571. Fixes support for notifications from folders with spaces on Windows.
258
259### `v3.2.0`
260
2611. Adds native Windows 8 support.
262
263### `v3.1.0`
264
2651. Adds Growl as fallback for Mac OS X pre 10.8.
266
267### `v3.0.6`
268
2691. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
270
271### `v3.0.5`
272
2731. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
274
275### `v3.0.4`
276
2771. Fixes expires for notify-send (Issue #13)
278
279### `v3.0.2`
280
2811. Fixes version check for Mac OS X Yosemite
282
283### `v3.0.0`
284
2851. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
2862. Removes parsing of output sent from notifier (Notification Center)