UNPKG

13 kBMarkdownView Raw
1# Changelog
2
3### `v10.0.0`
4
5Breaking changes:
6
7Setting `NSAllowsArbitraryLoads` as false for security reasons within terminal-notifier. Meaning non-https images/loads for terminal-notifier will no longer work. See [#362](https://github.com/mikaelbr/node-notifier/pull/362)
8
9#### Fixes
10
11- fix: options.customPath doesn't work for windows toaster. See [#373](https://github.com/mikaelbr/node-notifier/pull/373)
12
13### `v9.0.1`
14
15- Fixes potential security issue with non-escaping input parameters for notify-send.
16
17### `v9.0.0`
18
19Breaking changes:
20
21- Corrects mapping on snoretoast activate event. See [#347](https://github.com/mikaelbr/node-notifier/pull/347).
22
23#### Patches
24
25- Fix named pipe in WSL. See [#342](https://github.com/mikaelbr/node-notifier/pull/342).
26- fixes possible injection issue for notify-send
27
28### `v8.0.2`
29
30- Fixes potential security issue with non-escaping input parameters for notify-send.
31
32### `v8.0.0`
33
34Breaking changes:
35
36- 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).
37
38### `v7.0.2`
39
40- Updates dependencies
41- Fixes issue with haning Windows notifications when disabled ([#335](https://github.com/mikaelbr/node-notifier/pull/335))
42
43### `v7.0.1`
44
45- Fixes import of uuid, removes deprecation warnings
46
47### `v7.0.0`
48
49#### Features
50
51- NotifySend support for app-name ([#299](https://github.com/mikaelbr/node-notifier/pull/299), see docs)
52
53#### Breaking Changes
54
55- 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))
56- Updated snoreToast to version `0.7.0` with new input features ([#293](https://github.com/mikaelbr/node-notifier/pull/293))
57- Breaking snoreToast: Sanitizing data now changes "timedout" to "timeout"
58
59### `v6.0.0`
60
61#### Breaking Changes
62
63- Dropped support for node v6. As of v6 we currently support node versions 8, 10, and 12 (latest).
64- 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.
65
66#### Other
67
68- Update to latest version of dependencies.
69
70### `v5.4.4`
71
72- Fixes potential security issue with non-escaping input parameters for notify-send.
73
74### `v5.4.3`
75
76- Fixes potential security issue with non-escaping input parameters for notify-send.
77
78### `v5.4.3`
79
80- Reverts breaking dependency upgrades from `v5.4.2` as some dependencies has removed Node 6 which is a breaking change.
81
82### `v5.4.2`
83
84- Updates dependencies
85
86### `v5.4.1`
87
88- Reverts changes to default timeout as they are causing some issues. See [#271](https://github.com/mikaelbr/node-notifier/pull/271)
89
90### `v5.4.0`
91
92- Prevent Spotlight from indexing terminal-notifier.app ([#238](https://github.com/mikaelbr/node-notifier/pull/238))
93- Changes from legacy url.parse api
94- Adds default timeout to notification center
95- Adds mapping from timeout to expire time for linux
96- Enables the use of WindowsToaster when using WSL ([#260](https://github.com/mikaelbr/node-notifier/pull/260))
97
98### `v5.3.0`
99
100- Re-adds `notifu` update.
101
102### `v5.2.1`
103
104- Rollback `notifu` update as it triggered Avast virus scan.
105
106### `v5.2.0`
107
108- Updates `terminal-notifier` dependency to `v1.7.2`, fixing memory leak. But not to `v1.8.0` as this breaks how icons work.
109- Updates `notifu` with new subtitle "Notification"
110- Fix: issue with `appID` by removing default empty string (see README Windows section)
111- Fix: link notifier time property to notify-send expire-time flag
112
113- Minor change: use a more specific condition for enabling debug logging ([#171](https://github.com/mikaelbr/node-notifier/pull/171))
114
115### `v5.1.2`
116
117- 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.
118- Add appName option and hide snoreToast if not setted ([#158](https://github.com/mikaelbr/node-notifier/pull/158))
119
120### `v5.0.2`
121
122Non-obligatory fail. Fixes issue with multiple actions for macOS.
123
124### `v5.0.1`
125
126Obligatory fail. Fixes minor issue with non-JSON output for macOS.
127
128### `v5.0.0`
129
130#### Breaking Changes
131
132_Note/TL;DR_: If you are just using `node-notifier` with things like `message`, `title` and `icon`, v5 should work just as before.
133
1341. 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`
1352. 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.
1363. [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).
1374. `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).
138
139#### Additions
140
1411. Now supports \*BSD systems: [#142](https://github.com/mikaelbr/node-notifier/pull/142).
1422. With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
143
144```javascript
145{
146 title: void 0, // String. Required
147 message: void 0, // String. Required if remove is not defined
148 icon: void 0, // String. Absolute path to Icon
149 sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
150 wait: false, // Bool. Wait for User Action against Notification or times out
151 id: void 0, // Number. ID to use for closing notification.
152 appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
153 remove: void 0, // Number. Refer to previously created notification to close.
154 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.
155}
156```
157
158#### Fixes
159
1601. Fixes new lines on messages on Windows: [#123](https://github.com/mikaelbr/node-notifier/issues/123)
161
162#### Technical Changes
163
164_Internal changes for those who might be interested_.
165
1661. Dependencies bumped
1672. Unnecessary dependencies removed (`lodash.deepClone`). Now uses JSON serialize/deserialize instead.
1683. Project is auto-formatted by [`prettier`](https://github.com/jlongster/prettier).
1694. [Linting is added](https://github.com/mikaelbr/node-notifier/blob/master/.eslintrc)
1705. 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.
171
172### `v4.6.1`
173
1741. Adds npm ignore file, ignoring tests and examples from package.
1752. Fixes CI builds.
176
177### `v4.6.0`
178
1791. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
1802. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
1813. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
1824. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
1835. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
1846. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
1857. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
186
187### `v4.5.0`
188
189#### Additions
190
1911. Adds syntactic sugar for `notify`. Now able to just pass message:
192
193```js
194notifier.notify('My message');
195```
196
197See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
198
199#### Fixes
200
2011. Improvements to docs and examples
2022. Updates `semver` dependency to support Webpacking with Electron.
203
204### `v4.4.0`
205
2061. Changes to exec terminal-notifier through execFile to allow for asar-packages
2072. Adds support for remote growl server
2083. Adds support for win7 with electron asar-package
209
210### `v4.3.1`
211
212Obligatory patch fix:
213
2141. Adds new stdin CLI options to docs
215
216### `v4.3.0`
217
2181. Adds support for piping messages in to CLI.
219 (With `node-notifier` installed as a CLI `npm i -g node-notifier`)
220
221```shell
222➜ echo "Message" | notify
223➜ echo "Message" | notify -t "My Title"
224➜ echo "Some message" | notify -t "My Title" -s
225```
226
227### `v4.2.3`
228
2291. Fixed input arguments to CLI to be strings where they should be strings.
230
231### `v4.2.2`
232
2331. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
2342. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
235
236### `v4.2.1`
237
2381. Minor fix for docs in CLI usage
239
240### `v4.2.0`
241
2421. Adds CLI support.
2432. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
244
245### `v4.1.2`
246
2471. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
248 to support activate / click.
249
250### `v4.1.1`
251
2521. Fixes proper error codes for balloon: #42
2532. Removes unused debug files: #41
2543. Patches differences between subtitle for notify-send: #43
2554. Updates terminal-notifier dependency (removing black borders) #44 #18
256
257### `v4.1.0`
258
2591. Adds support for changing host and port for Growl.
260
261### `v4.0.3`
262
2631. Fixes Notification center issue with multiple callback events.
2642. Fixes error in source code: Fixes long-spaces to proper spaces
265
266### `v4.0.2`
267
2681. Fixes issue with immidiate notifu notifications (with `wait : false`)
2692. Fixes issue with boolean flags for notifu.
2703. Restructures directories. Making it easier to require notifiers directly.
271
272### `v4.0.1`
273
2741. Fixes issue with optional callback for notify-send
275
276### `v4.0.0`
277
278Major changes and breaking API.
279
2801. require('node-notifier') now returns an instance with fallbackable notifications.
281
282```js
283var notifier = require('node-notifier');
284notifier.notify();
285```
286
2872. Introduced a `wait` property (default `false`), to get user input for
288 Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
289 for notify-send.
290
291```js
292var notifier = require('node-notifier');
293notifier.notify({ wait: true }, function (err, response) {
294 // response is response after user have interacted
295 // with the notification or the notification has timed out.
296});
297```
298
2993. All notification instances are now event emitters, emitting events
300 `click` or `timeout`. This is only applicable if `{ wait: true }`.
301
302```js
303var notifier = require('node-notifier');
304notifier.on('click', function (notificationObject, options) {
305 // options.someArbitraryData === 'foo'
306});
307notifier.notify({ wait: true, someArbitraryData: 'foo' });
308```
309
3104. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
311 Default NotificationCenter sound is Bottle. Can still use define sound on
312 Mac:
313
314```js
315var notifier = require('node-notifier');
316notifier.notify({ sound: true });
317// For mac (same as sound: true on Windows 8)
318notifier.notify({ sound: 'Morse' });
319```
320
321### `v3.4.0`
322
3231. Adds Growl as priority over Balloons
324
325### `v3.3.0`
326
3271. Adds support for native Windows 7 and earlier (through task bar balloons)
3282. Changes growl implementation. Adds better support for GNTP
329
330### `v3.2.1`
331
3321. Fixes support for notifications from folders with spaces on Windows.
333
334### `v3.2.0`
335
3361. Adds native Windows 8 support.
337
338### `v3.1.0`
339
3401. Adds Growl as fallback for Mac OS X pre 10.8.
341
342### `v3.0.6`
343
3441. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
345
346### `v3.0.5`
347
3481. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
349
350### `v3.0.4`
351
3521. Fixes expires for notify-send (Issue #13)
353
354### `v3.0.2`
355
3561. Fixes version check for Mac OS X Yosemite
357
358### `v3.0.0`
359
3601. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
3612. Removes parsing of output sent from notifier (Notification Center)