UNPKG

9.02 kBMarkdownView Raw
1Changelog
2===
3
4### `v5.1.2`
5
6- 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.
7- Add appName option and hide snoreToast if not setted ([#158](https://github.com/mikaelbr/node-notifier/pull/158))
8
9### `v5.0.2`
10
11Non-obligatory fail. Fixes issue with multiple actions for macOS.
12
13### `v5.0.1`
14
15Obligatory fail. Fixes minor issue with non-JSON output for macOS.
16
17### `v5.0.0`
18
19#### Breaking Changes
20
21*Note/TL;DR*: If you are just using `node-notifier` with things like `message`, `title` and `icon`, v5 should work just as before.
22
231. 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`
242. 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.
253. [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).
264. `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).
27
28
29#### Additions
30
311. Now supports *BSD systems: [#142](https://github.com/mikaelbr/node-notifier/pull/142).
322. With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
33
34```javascript
35{
36 title: void 0, // String. Required
37 message: void 0, // String. Required if remove is not defined
38 icon: void 0, // String. Absolute path to Icon
39 sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
40 wait: false, // Bool. Wait for User Action against Notification or times out
41 id: void 0, // Number. ID to use for closing notification.
42 appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
43 remove: void 0, // Number. Refer to previously created notification to close.
44 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.
45}
46```
47
48#### Fixes
49
501. Fixes new lines on messages on Windows: [#123](https://github.com/mikaelbr/node-notifier/issues/123)
51
52#### Technical Changes
53
54_Internal changes for those who might be interested_.
55
561. Dependencies bumped
572. Unnecessary dependencies removed (`lodash.deepClone`). Now uses JSON serialize/deserialize instead.
583. Project is auto-formatted by [`prettier`](https://github.com/jlongster/prettier).
594. [Linting is added](https://github.com/mikaelbr/node-notifier/blob/master/.eslintrc)
605. 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.
61
62### `v4.6.1`
63
641. Adds npm ignore file, ignoring tests and examples from package.
652. Fixes CI builds.
66
67### `v4.6.0`
68
691. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
702. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
713. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
724. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
735. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
746. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
757. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
76
77### `v4.5.0`
78
79#### Additions
801. Adds syntactic sugar for `notify`. Now able to just pass message:
81```js
82notifier.notify('My message');
83```
84
85See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
86
87#### Fixes
881. Improvements to docs and examples
892. Updates `semver` dependency to support Webpacking with Electron.
90
91### `v4.4.0`
92
931. Changes to exec terminal-notifier through execFile to allow for asar-packages
942. Adds support for remote growl server
953. Adds support for win7 with electron asar-package
96
97### `v4.3.1`
98Obligatory patch fix:
991. Adds new stdin CLI options to docs
100
101### `v4.3.0`
1021. Adds support for piping messages in to CLI.
103(With `node-notifier` installed as a CLI `npm i -g node-notifier`)
104
105```shell
106➜ echo "Message" | notify
107➜ echo "Message" | notify -t "My Title"
108➜ echo "Some message" | notify -t "My Title" -s
109```
110
111### `v4.2.3`
1121. Fixed input arguments to CLI to be strings where they should be strings.
113
114### `v4.2.2`
1151. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
1162. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
117
118### `v4.2.1`
1191. Minor fix for docs in CLI usage
120
121### `v4.2.0`
1221. Adds CLI support.
1232. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
124
125### `v4.1.2`
1261. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
127 to support activate / click.
128
129### `v4.1.1`
1301. Fixes proper error codes for balloon: #42
1312. Removes unused debug files: #41
1323. Patches differences between subtitle for notify-send: #43
1334. Updates terminal-notifier dependency (removing black borders) #44 #18
134
135### `v4.1.0`
1361. Adds support for changing host and port for Growl.
137
138### `v4.0.3`
1391. Fixes Notification center issue with multiple callback events.
1402. Fixes error in source code: Fixes long-spaces to proper spaces
141
142### `v4.0.2`
1431. Fixes issue with immidiate notifu notifications (with `wait : false`)
1442. Fixes issue with boolean flags for notifu.
1453. Restructures directories. Making it easier to require notifiers directly.
146
147### `v4.0.1`
1481. Fixes issue with optional callback for notify-send
149
150### `v4.0.0`
151Major changes and breaking API.
1521. require('node-notifier') now returns an instance with fallbackable notifications.
153```js
154var notifier = require('node-notifier');
155notifier.notify();
156```
1572. Introduced a `wait` property (default `false`), to get user input for
158Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
159for notify-send.
160```js
161var notifier = require('node-notifier');
162notifier.notify({ wait: true }, function (err, response) {
163 // response is response after user have interacted
164 // with the notification or the notification has timed out.
165});
166```
1673. All notification instances are now event emitters, emitting events
168`click` or `timeout`. This is only applicable if `{ wait: true }`.
169```js
170var notifier = require('node-notifier');
171notifier.on('click', function (notificationObject, options) {
172 // options.someArbitraryData === 'foo'
173});
174notifier.notify({ wait: true, someArbitraryData: 'foo' });
175```
1764. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
177Default NotificationCenter sound is Bottle. Can still use define sound on
178Mac:
179```js
180var notifier = require('node-notifier');
181notifier.notify({ sound: true });
182// For mac (same as sound: true on Windows 8)
183notifier.notify({ sound: 'Morse' });
184```
185
186### `v3.4.0`
1871. Adds Growl as priority over Balloons
188
189### `v3.3.0`
1901. Adds support for native Windows 7 and earlier (through task bar balloons)
1912. Changes growl implementation. Adds better support for GNTP
192
193### `v3.2.1`
1941. Fixes support for notifications from folders with spaces on Windows.
195
196### `v3.2.0`
1971. Adds native Windows 8 support.
198
199### `v3.1.0`
2001. Adds Growl as fallback for Mac OS X pre 10.8.
201
202### `v3.0.6`
2031. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
204
205### `v3.0.5`
2061. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
207
208### `v3.0.4`
2091. Fixes expires for notify-send (Issue #13)
210
211### `v3.0.2`
2121. Fixes version check for Mac OS X Yosemite
213
214### `v3.0.0`
2151. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
2162. Removes parsing of output sent from notifier (Notification Center)