UNPKG

8.5 kBMarkdownView Raw
1Changelog
2===
3
4### `v5.0.1`
5
6Obligatory fail. Fixes minor issue with non-JSON output for macOS.
7
8### `v5.0.0`
9
10#### Breaking Changes
11
121. 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`
132. 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.
143. [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).
154. `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).
16
17
18#### Additions
19
201. Now supports *BSD systems: [#142](https://github.com/mikaelbr/node-notifier/pull/142).
212. With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
22
23```javascript
24{
25 title: void 0, // String. Required
26 message: void 0, // String. Required if remove is not defined
27 icon: void 0, // String. Absolute path to Icon
28 sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
29 wait: false, // Bool. Wait for User Action against Notification or times out
30 id: void 0, // Number. ID to use for closing notification.
31 appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
32 remove: void 0, // Number. Refer to previously created notification to close.
33 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.
34}
35```
36
37#### Fixes
38
391. Fixes new lines on messages on Windows: [#123](https://github.com/mikaelbr/node-notifier/issues/123)
40
41#### Technical Changes
42
43_Internal changes for those who might be interested_.
44
451. Dependencies bumped
462. Unnecessary dependencies removed (`lodash.deepClone`). Now uses JSON serialize/deserialize instead.
473. Project is auto-formatted by [`prettier`](https://github.com/jlongster/prettier).
484. [Linting is added](https://github.com/mikaelbr/node-notifier/blob/master/.eslintrc)
495. 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.
50
51### `v4.6.1`
52
531. Adds npm ignore file, ignoring tests and examples from package.
542. Fixes CI builds.
55
56### `v4.6.0`
57
581. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
592. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
603. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
614. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
625. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
636. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
647. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
65
66### `v4.5.0`
67
68#### Additions
691. Adds syntactic sugar for `notify`. Now able to just pass message:
70```js
71notifier.notify('My message');
72```
73
74See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
75
76#### Fixes
771. Improvements to docs and examples
782. Updates `semver` dependency to support Webpacking with Electron.
79
80### `v4.4.0`
81
821. Changes to exec terminal-notifier through execFile to allow for asar-packages
832. Adds support for remote growl server
843. Adds support for win7 with electron asar-package
85
86### `v4.3.1`
87Obligatory patch fix:
881. Adds new stdin CLI options to docs
89
90### `v4.3.0`
911. Adds support for piping messages in to CLI.
92(With `node-notifier` installed as a CLI `npm i -g node-notifier`)
93
94```shell
95➜ echo "Message" | notify
96➜ echo "Message" | notify -t "My Title"
97➜ echo "Some message" | notify -t "My Title" -s
98```
99
100### `v4.2.3`
1011. Fixed input arguments to CLI to be strings where they should be strings.
102
103### `v4.2.2`
1041. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
1052. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
106
107### `v4.2.1`
1081. Minor fix for docs in CLI usage
109
110### `v4.2.0`
1111. Adds CLI support.
1122. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
113
114### `v4.1.2`
1151. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
116 to support activate / click.
117
118### `v4.1.1`
1191. Fixes proper error codes for balloon: #42
1202. Removes unused debug files: #41
1213. Patches differences between subtitle for notify-send: #43
1224. Updates terminal-notifier dependency (removing black borders) #44 #18
123
124### `v4.1.0`
1251. Adds support for changing host and port for Growl.
126
127### `v4.0.3`
1281. Fixes Notification center issue with multiple callback events.
1292. Fixes error in source code: Fixes long-spaces to proper spaces
130
131### `v4.0.2`
1321. Fixes issue with immidiate notifu notifications (with `wait : false`)
1332. Fixes issue with boolean flags for notifu.
1343. Restructures directories. Making it easier to require notifiers directly.
135
136### `v4.0.1`
1371. Fixes issue with optional callback for notify-send
138
139### `v4.0.0`
140Major changes and breaking API.
1411. require('node-notifier') now returns an instance with fallbackable notifications.
142```js
143var notifier = require('node-notifier');
144notifier.notify();
145```
1462. Introduced a `wait` property (default `false`), to get user input for
147Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
148for notify-send.
149```js
150var notifier = require('node-notifier');
151notifier.notify({ wait: true }, function (err, response) {
152 // response is response after user have interacted
153 // with the notification or the notification has timed out.
154});
155```
1563. All notification instances are now event emitters, emitting events
157`click` or `timeout`. This is only applicable if `{ wait: true }`.
158```js
159var notifier = require('node-notifier');
160notifier.on('click', function (notificationObject, options) {
161 // options.someArbitraryData === 'foo'
162});
163notifier.notify({ wait: true, someArbitraryData: 'foo' });
164```
1654. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
166Default NotificationCenter sound is Bottle. Can still use define sound on
167Mac:
168```js
169var notifier = require('node-notifier');
170notifier.notify({ sound: true });
171// For mac (same as sound: true on Windows 8)
172notifier.notify({ sound: 'Morse' });
173```
174
175### `v3.4.0`
1761. Adds Growl as priority over Balloons
177
178### `v3.3.0`
1791. Adds support for native Windows 7 and earlier (through task bar balloons)
1802. Changes growl implementation. Adds better support for GNTP
181
182### `v3.2.1`
1831. Fixes support for notifications from folders with spaces on Windows.
184
185### `v3.2.0`
1861. Adds native Windows 8 support.
187
188### `v3.1.0`
1891. Adds Growl as fallback for Mac OS X pre 10.8.
190
191### `v3.0.6`
1921. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
193
194### `v3.0.5`
1951. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
196
197### `v3.0.4`
1981. Fixes expires for notify-send (Issue #13)
199
200### `v3.0.2`
2011. Fixes version check for Mac OS X Yosemite
202
203### `v3.0.0`
2041. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
2052. Removes parsing of output sent from notifier (Notification Center)