v5.4.3v5.4.2 as some dependencies has removed Node 6 which is a breaking change.v5.4.2v5.4.1v5.4.0v5.3.0notifu update.v5.2.1notifu update as it triggered Avast virus scan.v5.2.0terminal-notifier dependency to v1.7.2, fixing memory leak. But not to v1.8.0 as this breaks how icons work.notifu with new subtitle "Notification"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)
v5.1.2terminal-notifier memory leak as seen in https://github.com/facebook/jest/issues/2999 and https://github.com/julienXX/terminal-notifier/issues/173.v5.0.2Non-obligatory fail. Fixes issue with multiple actions for macOS.
v5.0.1Obligatory fail. Fixes minor issue with non-JSON output for macOS.
v5.0.0Note/TL;DR: If you are just using node-notifier with things like message, title and icon, v5 should work just as before.
notify bin when installing node-notifier. To get this do npm i [-g] node-notifier-clitoast.exe to Snoretoast. This means if you are using your custom fork, you need to change. SnoreToast has some better default implemented functionality.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.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.
}
Internal changes for those who might be interested.
lodash.deepClone). Now uses JSON serialize/deserialize instead.prettier.DEBUG env-var to true. See CONTRIBUTE.md for more details.v4.6.1v4.6.0notify callback (by @MadLittleMods)file:///xxx protocol icon paths for Windows 8.1 (by @gucong3000)v4.5.0Adds syntactic sugar for notify. Now able to just pass message:
notifier.notify('My message');
See #45 for more info.
semver dependency to support Webpacking with Electron.v4.4.0v4.3.1Obligatory patch fix:
v4.3.0Adds support for piping messages in to CLI.
(With node-notifier installed as a CLI npm i -g node-notifier)
➜ echo "Message" | notify
➜ echo "Message" | notify -t "My Title"
➜ echo "Some message" | notify -t "My Title" -s
v4.2.3v4.2.2which test to be sync, avoiding some edge cases with multiple notifications.v4.2.1v4.2.0v4.1.2v4.1.1v4.1.0v4.0.3v4.0.2wait : false)v4.0.1v4.0.0Major 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 (default false), 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 or timeout. 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' });
v3.4.0v3.3.0v3.2.1v3.2.0v3.1.0v3.0.6Gulp to Node.v3.0.5v3.0.4v3.0.2v3.0.0