Fixes:
- Fix custom path for windows #382
Thanks to @yoavain
Breaking changes:
Setting NSAllowsArbitraryLoads
as false for security reasons within terminal-notifier. Meaning non-https images/loads for terminal-notifier will no longer work. See #362
- fix: options.customPath doesn't work for windows toaster. See #373
- Fixes potential security issue with non-escaping input parameters for notify-send.
Breaking changes:
- Corrects mapping on snoretoast activate event. See #347.
- Fix named pipe in WSL. See #342.
- fixes possible injection issue for notify-send
- Fixes potential security issue with non-escaping input parameters for notify-send.
Breaking changes:
- 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.
- Updates dependencies
- Fixes issue with haning Windows notifications when disabled (#335)
- Fixes import of uuid, removes deprecation warnings
- NotifySend support for app-name (#299, see docs)
- All notify messages now have auto bound context to make it easier to pass as variables/arguments (#306)
- Updated snoreToast to version
0.7.0
with new input features (#293) - Breaking snoreToast: Sanitizing data now changes "timedout" to "timeout"
- Dropped support for node v6. As of v6 we currently support node versions 8, 10, and 12 (latest).
- 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.
- Update to latest version of dependencies.
- Fixes potential security issue with non-escaping input parameters for notify-send.
- Fixes potential security issue with non-escaping input parameters for notify-send.
- Reverts breaking dependency upgrades from
v5.4.2
as some dependencies has removed Node 6 which is a breaking change.
- Updates dependencies
- Reverts changes to default timeout as they are causing some issues. See #271
- Prevent Spotlight from indexing terminal-notifier.app (#238)
- Changes from legacy url.parse api
- Adds default timeout to notification center
- Adds mapping from timeout to expire time for linux
- Enables the use of WindowsToaster when using WSL (#260)
- Re-adds
notifu
update.
- Rollback
notifu
update as it triggered Avast virus scan.
-
Updates
terminal-notifier
dependency tov1.7.2
, fixing memory leak. But not tov1.8.0
as this breaks how icons work. -
Updates
notifu
with new subtitle "Notification" -
Fix: issue with
appID
by removing default empty string (see README Windows section) -
Fix: link notifier time property to notify-send expire-time flag
-
Minor change: use a more specific condition for enabling debug logging (#171)
- Adds temporary workaround for
terminal-notifier
memory leak as seen in jestjs/jest#2999 and julienXX/terminal-notifier#173. - Add appName option and hide snoreToast if not setted (#158)
Non-obligatory fail. Fixes issue with multiple actions for macOS.
Obligatory fail. Fixes minor issue with non-JSON output for macOS.
Note/TL;DR: If you are just using node-notifier
with things like message
, title
and icon
, v5 should work just as before.
- 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 installingnode-notifier
. To get this donpm i [-g] node-notifier-cli
- Changed toaster implementation from
toast.exe
to Snoretoast. This means if you are using your custom fork, you need to change. SnoreToast has some better default implemented functionality. - 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 for documentation on how to use the new features, or an example file. notify
method will now throw error if second argument is something else than function (still optional): #138.
- Now supports *BSD systems: #142.
- With the new toaster implementation you can do more! For instance customize sound and close notification. See all options:
{
title: void 0, // String. Required
message: void 0, // String. Required if remove is not defined
icon: void 0, // String. Absolute path to Icon
sound: false, // Bool | String (as defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx)
wait: false, // Bool. Wait for User Action against Notification or times out
id: void 0, // Number. ID to use for closing notification.
appID: void 0, // String. App.ID. Don't create a shortcut but use the provided app id.
remove: void 0, // Number. Refer to previously created notification to close.
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.
}
- Fixes new lines on messages on Windows: #123
Internal changes for those who might be interested.
- Dependencies bumped
- Unnecessary dependencies removed (
lodash.deepClone
). Now uses JSON serialize/deserialize instead. - Project is auto-formatted by
prettier
. - Linting is added
- Added way to better debug what is happening by setting
DEBUG
env-var totrue
. See CONTRIBUTE.md for more details.
- Adds npm ignore file, ignoring tests and examples from package.
- Fixes CI builds.
- Adds support for Icon URL in Growl (by @gucong3000)
- Adds options for passing host and port to cli tool (reported by @el-davo)
- Fixes sanitize response on
notify
callback (by @MadLittleMods) - Fixes use of new line in messages (by @gucong3000)
- Fixes use of
file:///xxx
protocol icon paths for Windows 8.1 (by @gucong3000) - Fixes non-TTY usage and piping messages (reported by @simensen)
- Updates vendor terminal-notifier version to 1.6.3 (reported by @kid-icarus)
- Adds syntactic sugar for
notify
. Now able to just pass message:
notifier.notify('My message');
See #45 for more info.
- Improvements to docs and examples
- Updates
semver
dependency to support Webpacking with Electron.
- Changes to exec terminal-notifier through execFile to allow for asar-packages
- Adds support for remote growl server
- Adds support for win7 with electron asar-package
Obligatory patch fix:
- Adds new stdin CLI options to docs
- Adds support for piping messages in to CLI.
(With
node-notifier
installed as a CLInpm i -g node-notifier
)
➜ echo "Message" | notify
➜ echo "Message" | notify -t "My Title"
➜ echo "Some message" | notify -t "My Title" -s
- Fixed input arguments to CLI to be strings where they should be strings.
- Fixed no notification when no message for the CLI. #58
- Changes
which
test to be sync, avoiding some edge cases with multiple notifications.
- Minor fix for docs in CLI usage
- Adds CLI support.
- Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR #49
- Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier) to support activate / click.
- Fixes proper error codes for balloon: #42
- Removes unused debug files: #41
- Patches differences between subtitle for notify-send: #43
- Updates terminal-notifier dependency (removing black borders) #44 #18
- Adds support for changing host and port for Growl.
- Fixes Notification center issue with multiple callback events.
- Fixes error in source code: Fixes long-spaces to proper spaces
- Fixes issue with immidiate notifu notifications (with
wait : false
) - Fixes issue with boolean flags for notifu.
- Restructures directories. Making it easier to require notifiers directly.
- Fixes issue with optional callback for notify-send
Major changes and breaking API.
- require('node-notifier') now returns an instance with fallbackable notifications.
var notifier = require('node-notifier');
notifier.notify();
- Introduced a
wait
property (defaultfalse
), to get user input for Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not for notify-send.
var notifier = require('node-notifier');
notifier.notify({ wait: true }, function (err, response) {
// response is response after user have interacted
// with the notification or the notification has timed out.
});
- All notification instances are now event emitters, emitting events
click
ortimeout
. This is only applicable if{ wait: true }
.
var notifier = require('node-notifier');
notifier.on('click', function (notificationObject, options) {
// options.someArbitraryData === 'foo'
});
notifier.notify({ wait: true, someArbitraryData: 'foo' });
- WindowsToaster and NotificationCenter now can have sounds by doing
{ sound: true }
. Default NotificationCenter sound is Bottle. Can still use define sound on Mac:
var notifier = require('node-notifier');
notifier.notify({ sound: true });
// For mac (same as sound: true on Windows 8)
notifier.notify({ sound: 'Morse' });
- Adds Growl as priority over Balloons
- Adds support for native Windows 7 and earlier (through task bar balloons)
- Changes growl implementation. Adds better support for GNTP
- Fixes support for notifications from folders with spaces on Windows.
- Adds native Windows 8 support.
- Adds Growl as fallback for Mac OS X pre 10.8.
- Fixes typo: Changes Growl app name from
Gulp
toNode
.
- Maps common options between the different notifiers. Allowing for common usage with different notifiers.
- Fixes expires for notify-send (Issue #13)
- Fixes version check for Mac OS X Yosemite
- Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
- Removes parsing of output sent from notifier (Notification Center)