UNPKG

9.62 kBMarkdownView Raw
1# Changelog
2
3### `v5.2.1`
4
5* Rollback `notifu` update as it triggered Avast virus scan.
6
7### `v5.2.0`
8
9* Updates `terminal-notifier` dependency to `v1.7.2`, fixing memory leak. But not to `v1.8.0` as this breaks how icons work.
10* Updates `notifu` with new subtitle "Notification"
11* Fix: issue with `appID` by removing default empty string (see README Windows section)
12* Fix: link notifier time property to notify-send expire-time flag
13
14* Minor change: use a more specific condition for enabling debug logging ([#171](https://github.com/mikaelbr/node-notifier/pull/171))
15
16### `v5.1.2`
17
18* 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.
19* Add appName option and hide snoreToast if not setted ([#158](https://github.com/mikaelbr/node-notifier/pull/158))
20
21### `v5.0.2`
22
23Non-obligatory fail. Fixes issue with multiple actions for macOS.
24
25### `v5.0.1`
26
27Obligatory fail. Fixes minor issue with non-JSON output for macOS.
28
29### `v5.0.0`
30
31#### Breaking Changes
32
33_Note/TL;DR_: If you are just using `node-notifier` with things like `message`, `title` and `icon`, v5 should work just as before.
34
351. 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`
362. 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.
373. [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).
384. `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).
39
40#### Additions
41
421. Now supports \*BSD systems: [#142](https://github.com/mikaelbr/node-notifier/pull/142).
432. With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
44
45```javascript
46{
47 title: void 0, // String. Required
48 message: void 0, // String. Required if remove is not defined
49 icon: void 0, // String. Absolute path to Icon
50 sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
51 wait: false, // Bool. Wait for User Action against Notification or times out
52 id: void 0, // Number. ID to use for closing notification.
53 appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
54 remove: void 0, // Number. Refer to previously created notification to close.
55 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.
56}
57```
58
59#### Fixes
60
611. Fixes new lines on messages on Windows: [#123](https://github.com/mikaelbr/node-notifier/issues/123)
62
63#### Technical Changes
64
65_Internal changes for those who might be interested_.
66
671. Dependencies bumped
682. Unnecessary dependencies removed (`lodash.deepClone`). Now uses JSON serialize/deserialize instead.
693. Project is auto-formatted by [`prettier`](https://github.com/jlongster/prettier).
704. [Linting is added](https://github.com/mikaelbr/node-notifier/blob/master/.eslintrc)
715. 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.
72
73### `v4.6.1`
74
751. Adds npm ignore file, ignoring tests and examples from package.
762. Fixes CI builds.
77
78### `v4.6.0`
79
801. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
812. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
823. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
834. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
845. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
856. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
867. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
87
88### `v4.5.0`
89
90#### Additions
91
921. Adds syntactic sugar for `notify`. Now able to just pass message:
93
94```js
95notifier.notify('My message');
96```
97
98See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
99
100#### Fixes
101
1021. Improvements to docs and examples
1032. Updates `semver` dependency to support Webpacking with Electron.
104
105### `v4.4.0`
106
1071. Changes to exec terminal-notifier through execFile to allow for asar-packages
1082. Adds support for remote growl server
1093. Adds support for win7 with electron asar-package
110
111### `v4.3.1`
112
113Obligatory patch fix:
114
1151. Adds new stdin CLI options to docs
116
117### `v4.3.0`
118
1191. Adds support for piping messages in to CLI.
120 (With `node-notifier` installed as a CLI `npm i -g node-notifier`)
121
122```shell
123➜ echo "Message" | notify
124➜ echo "Message" | notify -t "My Title"
125➜ echo "Some message" | notify -t "My Title" -s
126```
127
128### `v4.2.3`
129
1301. Fixed input arguments to CLI to be strings where they should be strings.
131
132### `v4.2.2`
133
1341. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
1352. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
136
137### `v4.2.1`
138
1391. Minor fix for docs in CLI usage
140
141### `v4.2.0`
142
1431. Adds CLI support.
1442. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
145
146### `v4.1.2`
147
1481. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
149 to support activate / click.
150
151### `v4.1.1`
152
1531. Fixes proper error codes for balloon: #42
1542. Removes unused debug files: #41
1553. Patches differences between subtitle for notify-send: #43
1564. Updates terminal-notifier dependency (removing black borders) #44 #18
157
158### `v4.1.0`
159
1601. Adds support for changing host and port for Growl.
161
162### `v4.0.3`
163
1641. Fixes Notification center issue with multiple callback events.
1652. Fixes error in source code: Fixes long-spaces to proper spaces
166
167### `v4.0.2`
168
1691. Fixes issue with immidiate notifu notifications (with `wait : false`)
1702. Fixes issue with boolean flags for notifu.
1713. Restructures directories. Making it easier to require notifiers directly.
172
173### `v4.0.1`
174
1751. Fixes issue with optional callback for notify-send
176
177### `v4.0.0`
178
179Major changes and breaking API.
180
1811. require('node-notifier') now returns an instance with fallbackable notifications.
182
183```js
184var notifier = require('node-notifier');
185notifier.notify();
186```
187
1882. Introduced a `wait` property (default `false`), to get user input for
189 Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
190 for notify-send.
191
192```js
193var notifier = require('node-notifier');
194notifier.notify({ wait: true }, function(err, response) {
195 // response is response after user have interacted
196 // with the notification or the notification has timed out.
197});
198```
199
2003. All notification instances are now event emitters, emitting events
201 `click` or `timeout`. This is only applicable if `{ wait: true }`.
202
203```js
204var notifier = require('node-notifier');
205notifier.on('click', function(notificationObject, options) {
206 // options.someArbitraryData === 'foo'
207});
208notifier.notify({ wait: true, someArbitraryData: 'foo' });
209```
210
2114. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
212 Default NotificationCenter sound is Bottle. Can still use define sound on
213 Mac:
214
215```js
216var notifier = require('node-notifier');
217notifier.notify({ sound: true });
218// For mac (same as sound: true on Windows 8)
219notifier.notify({ sound: 'Morse' });
220```
221
222### `v3.4.0`
223
2241. Adds Growl as priority over Balloons
225
226### `v3.3.0`
227
2281. Adds support for native Windows 7 and earlier (through task bar balloons)
2292. Changes growl implementation. Adds better support for GNTP
230
231### `v3.2.1`
232
2331. Fixes support for notifications from folders with spaces on Windows.
234
235### `v3.2.0`
236
2371. Adds native Windows 8 support.
238
239### `v3.1.0`
240
2411. Adds Growl as fallback for Mac OS X pre 10.8.
242
243### `v3.0.6`
244
2451. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
246
247### `v3.0.5`
248
2491. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
250
251### `v3.0.4`
252
2531. Fixes expires for notify-send (Issue #13)
254
255### `v3.0.2`
256
2571. Fixes version check for Mac OS X Yosemite
258
259### `v3.0.0`
260
2611. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
2622. Removes parsing of output sent from notifier (Notification Center)