UNPKG

3.83 kBMarkdownView Raw
1Changelog
2===
3
4### `v4.3.0`
51. Adds support for piping messages in to CLI.
6(With `node-notifier` installed as a CLI `npm i -g node-notifier`)
7
8```shell
9➜ echo "Message" | notify
10➜ echo "Message" | notify -t "My Title"
11➜ echo "Some message" | notify -t "My Title" -s
12```
13
14### `v4.2.3`
151. Fixed input arguments to CLI to be strings where they should be strings.
16
17### `v4.2.2`
181. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
192. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
20
21### `v4.2.1`
221. Minor fix for docs in CLI usage
23
24### `v4.2.0`
251. Adds CLI support.
262. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
27
28### `v4.1.2`
291. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
30 to support activate / click.
31
32### `v4.1.1`
331. Fixes proper error codes for balloon: #42
342. Removes unused debug files: #41
353. Patches differences between subtitle for notify-send: #43
364. Updates terminal-notifier dependency (removing black borders) #44 #18
37
38### `v4.1.0`
391. Adds support for changing host and port for Growl.
40
41### `v4.0.3`
421. Fixes Notification center issue with multiple callback events.
432. Fixes error in source code: Fixes long-spaces to proper spaces
44
45### `v4.0.2`
461. Fixes issue with immidiate notifu notifications (with `wait : false`)
472. Fixes issue with boolean flags for notifu.
483. Restructures directories. Making it easier to require notifiers directly.
49
50### `v4.0.1`
511. Fixes issue with optional callback for notify-send
52
53### `v4.0.0`
54Major changes and breaking API.
551. require('node-notifier') now returns an instance with fallbackable notifications.
56```js
57var notifier = require('node-notifier');
58notifier.notify();
59```
602. Introduced a `wait` property (default `false`), to get user input for
61Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
62for notify-send.
63```js
64var notifier = require('node-notifier');
65notifier.notify({ wait: true }, function (err, response) {
66 // response is response after user have interacted
67 // with the notification or the notification has timed out.
68});
69```
703. All notification instances are now event emitters, emitting events
71`click` or `timeout`. This is only applicable if `{ wait: true }`.
72```js
73var notifier = require('node-notifier');
74notifier.on('click', function (notificationObject, options) {
75 // options.someArbitraryData === 'foo'
76});
77notifier.notify({ wait: true, someArbitraryData: 'foo' });
78```
794. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
80Default NotificationCenter sound is Bottle. Can still use define sound on
81Mac:
82```js
83var notifier = require('node-notifier');
84notifier.notify({ sound: true });
85// For mac (same as sound: true on Windows 8)
86notifier.notify({ sound: 'Morse' });
87```
88
89### `v3.4.0`
901. Adds Growl as priority over Balloons
91
92### `v3.3.0`
931. Adds support for native Windows 7 and earlier (through task bar balloons)
942. Changes growl implementation. Adds better support for GNTP
95
96### `v3.2.1`
971. Fixes support for notifications from folders with spaces on Windows.
98
99### `v3.2.0`
1001. Adds native Windows 8 support.
101
102### `v3.1.0`
1031. Adds Growl as fallback for Mac OS X pre 10.8.
104
105### `v3.0.6`
1061. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
107
108### `v3.0.5`
1091. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
110
111### `v3.0.4`
1121. Fixes expires for notify-send (Issue #13)
113
114### `v3.0.2`
1151. Fixes version check for Mac OS X Yosemite
116
117### `v3.0.0`
1181. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
1192. Removes parsing of output sent from notifier (Notification Center)