UNPKG

12 kBMarkdownView Raw
1# Changelog
2
3### `v8.0.1`
4
5- fixes possible injection issue for notify-send
6
7### `v8.0.0`
8
9Breaking changes:
10
11- Expire time for notify-send is made to match macOS and Windows with default time of 10 seconds. The API is changed to take seconds as input and converting it to milliseconds before passing it on to notify-send. See [#341](https://github.com/mikaelbr/node-notifier/pull/341).
12
13### `v7.0.2`
14
15- Updates dependencies
16- Fixes issue with haning Windows notifications when disabled ([#335](https://github.com/mikaelbr/node-notifier/pull/335))
17
18### `v7.0.1`
19
20- Fixes import of uuid, removes deprecation warnings
21
22### `v7.0.0`
23
24#### Features
25
26- NotifySend support for app-name ([#299](https://github.com/mikaelbr/node-notifier/pull/299), see docs)
27
28#### Breaking Changes
29
30- All notify messages now have auto bound context to make it easier to pass as variables/arguments ([#306](https://github.com/mikaelbr/node-notifier/pull/306))
31- Updated snoreToast to version `0.7.0` with new input features ([#293](https://github.com/mikaelbr/node-notifier/pull/293))
32- Breaking snoreToast: Sanitizing data now changes "timedout" to "timeout"
33
34### `v6.0.0`
35
36#### Breaking Changes
37
38- Dropped support for node v6. As of v6 we currently support node versions 8, 10, and 12 (latest).
39- Updated to the latest version of SnoreToast. This removes support for the `wait` option in that environment as it is now always on. Prepares the way for other new features added to the WindowsToaster.
40
41#### Other
42
43- Update to latest version of dependencies.
44
45### `v5.4.3`
46
47- Reverts breaking dependency upgrades from `v5.4.2` as some dependencies has removed Node 6 which is a breaking change.
48
49### `v5.4.2`
50
51- Updates dependencies
52
53### `v5.4.1`
54
55- Reverts changes to default timeout as they are causing some issues. See [#271](https://github.com/mikaelbr/node-notifier/pull/271)
56
57### `v5.4.0`
58
59- Prevent Spotlight from indexing terminal-notifier.app ([#238](https://github.com/mikaelbr/node-notifier/pull/238))
60- Changes from legacy url.parse api
61- Adds default timeout to notification center
62- Adds mapping from timeout to expire time for linux
63- Enables the use of WindowsToaster when using WSL ([#260](https://github.com/mikaelbr/node-notifier/pull/260))
64
65### `v5.3.0`
66
67- Re-adds `notifu` update.
68
69### `v5.2.1`
70
71- Rollback `notifu` update as it triggered Avast virus scan.
72
73### `v5.2.0`
74
75- Updates `terminal-notifier` dependency to `v1.7.2`, fixing memory leak. But not to `v1.8.0` as this breaks how icons work.
76- Updates `notifu` with new subtitle "Notification"
77- Fix: issue with `appID` by removing default empty string (see README Windows section)
78- Fix: link notifier time property to notify-send expire-time flag
79
80- Minor change: use a more specific condition for enabling debug logging ([#171](https://github.com/mikaelbr/node-notifier/pull/171))
81
82### `v5.1.2`
83
84- 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.
85- Add appName option and hide snoreToast if not setted ([#158](https://github.com/mikaelbr/node-notifier/pull/158))
86
87### `v5.0.2`
88
89Non-obligatory fail. Fixes issue with multiple actions for macOS.
90
91### `v5.0.1`
92
93Obligatory fail. Fixes minor issue with non-JSON output for macOS.
94
95### `v5.0.0`
96
97#### Breaking Changes
98
99_Note/TL;DR_: If you are just using `node-notifier` with things like `message`, `title` and `icon`, v5 should work just as before.
100
1011. 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`
1022. 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.
1033. [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).
1044. `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).
105
106#### Additions
107
1081. Now supports \*BSD systems: [#142](https://github.com/mikaelbr/node-notifier/pull/142).
1092. With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
110
111```javascript
112{
113 title: void 0, // String. Required
114 message: void 0, // String. Required if remove is not defined
115 icon: void 0, // String. Absolute path to Icon
116 sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
117 wait: false, // Bool. Wait for User Action against Notification or times out
118 id: void 0, // Number. ID to use for closing notification.
119 appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
120 remove: void 0, // Number. Refer to previously created notification to close.
121 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.
122}
123```
124
125#### Fixes
126
1271. Fixes new lines on messages on Windows: [#123](https://github.com/mikaelbr/node-notifier/issues/123)
128
129#### Technical Changes
130
131_Internal changes for those who might be interested_.
132
1331. Dependencies bumped
1342. Unnecessary dependencies removed (`lodash.deepClone`). Now uses JSON serialize/deserialize instead.
1353. Project is auto-formatted by [`prettier`](https://github.com/jlongster/prettier).
1364. [Linting is added](https://github.com/mikaelbr/node-notifier/blob/master/.eslintrc)
1375. 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.
138
139### `v4.6.1`
140
1411. Adds npm ignore file, ignoring tests and examples from package.
1422. Fixes CI builds.
143
144### `v4.6.0`
145
1461. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
1472. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
1483. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
1494. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
1505. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
1516. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
1527. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
153
154### `v4.5.0`
155
156#### Additions
157
1581. Adds syntactic sugar for `notify`. Now able to just pass message:
159
160```js
161notifier.notify('My message');
162```
163
164See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
165
166#### Fixes
167
1681. Improvements to docs and examples
1692. Updates `semver` dependency to support Webpacking with Electron.
170
171### `v4.4.0`
172
1731. Changes to exec terminal-notifier through execFile to allow for asar-packages
1742. Adds support for remote growl server
1753. Adds support for win7 with electron asar-package
176
177### `v4.3.1`
178
179Obligatory patch fix:
180
1811. Adds new stdin CLI options to docs
182
183### `v4.3.0`
184
1851. Adds support for piping messages in to CLI.
186 (With `node-notifier` installed as a CLI `npm i -g node-notifier`)
187
188```shell
189➜ echo "Message" | notify
190➜ echo "Message" | notify -t "My Title"
191➜ echo "Some message" | notify -t "My Title" -s
192```
193
194### `v4.2.3`
195
1961. Fixed input arguments to CLI to be strings where they should be strings.
197
198### `v4.2.2`
199
2001. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
2012. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
202
203### `v4.2.1`
204
2051. Minor fix for docs in CLI usage
206
207### `v4.2.0`
208
2091. Adds CLI support.
2102. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
211
212### `v4.1.2`
213
2141. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
215 to support activate / click.
216
217### `v4.1.1`
218
2191. Fixes proper error codes for balloon: #42
2202. Removes unused debug files: #41
2213. Patches differences between subtitle for notify-send: #43
2224. Updates terminal-notifier dependency (removing black borders) #44 #18
223
224### `v4.1.0`
225
2261. Adds support for changing host and port for Growl.
227
228### `v4.0.3`
229
2301. Fixes Notification center issue with multiple callback events.
2312. Fixes error in source code: Fixes long-spaces to proper spaces
232
233### `v4.0.2`
234
2351. Fixes issue with immidiate notifu notifications (with `wait : false`)
2362. Fixes issue with boolean flags for notifu.
2373. Restructures directories. Making it easier to require notifiers directly.
238
239### `v4.0.1`
240
2411. Fixes issue with optional callback for notify-send
242
243### `v4.0.0`
244
245Major changes and breaking API.
246
2471. require('node-notifier') now returns an instance with fallbackable notifications.
248
249```js
250var notifier = require('node-notifier');
251notifier.notify();
252```
253
2542. Introduced a `wait` property (default `false`), to get user input for
255 Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
256 for notify-send.
257
258```js
259var notifier = require('node-notifier');
260notifier.notify({ wait: true }, function (err, response) {
261 // response is response after user have interacted
262 // with the notification or the notification has timed out.
263});
264```
265
2663. All notification instances are now event emitters, emitting events
267 `click` or `timeout`. This is only applicable if `{ wait: true }`.
268
269```js
270var notifier = require('node-notifier');
271notifier.on('click', function (notificationObject, options) {
272 // options.someArbitraryData === 'foo'
273});
274notifier.notify({ wait: true, someArbitraryData: 'foo' });
275```
276
2774. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
278 Default NotificationCenter sound is Bottle. Can still use define sound on
279 Mac:
280
281```js
282var notifier = require('node-notifier');
283notifier.notify({ sound: true });
284// For mac (same as sound: true on Windows 8)
285notifier.notify({ sound: 'Morse' });
286```
287
288### `v3.4.0`
289
2901. Adds Growl as priority over Balloons
291
292### `v3.3.0`
293
2941. Adds support for native Windows 7 and earlier (through task bar balloons)
2952. Changes growl implementation. Adds better support for GNTP
296
297### `v3.2.1`
298
2991. Fixes support for notifications from folders with spaces on Windows.
300
301### `v3.2.0`
302
3031. Adds native Windows 8 support.
304
305### `v3.1.0`
306
3071. Adds Growl as fallback for Mac OS X pre 10.8.
308
309### `v3.0.6`
310
3111. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
312
313### `v3.0.5`
314
3151. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
316
317### `v3.0.4`
318
3191. Fixes expires for notify-send (Issue #13)
320
321### `v3.0.2`
322
3231. Fixes version check for Mac OS X Yosemite
324
325### `v3.0.0`
326
3271. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
3282. Removes parsing of output sent from notifier (Notification Center)