v9.0.1
v9.0.0
Breaking changes:
v8.0.2
v8.0.0
Breaking changes:
v7.0.2
v7.0.1
v7.0.0
0.7.0
with new input features (#293)v6.0.0
wait
option in that environment as it is now always on. Prepares the way for other new features added to the WindowsToaster.v5.4.4
v5.4.3
v5.4.3
v5.4.2
as some dependencies has removed Node 6 which is a breaking change.v5.4.2
v5.4.1
v5.4.0
v5.3.0
notifu
update.v5.2.1
notifu
update as it triggered Avast virus scan.v5.2.0
terminal-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.2
terminal-notifier
memory leak as seen in https://github.com/facebook/jest/issues/2999 and https://github.com/julienXX/terminal-notifier/issues/173.v5.0.2
Non-obligatory fail. Fixes issue with multiple actions for macOS.
v5.0.1
Obligatory fail. Fixes minor issue with non-JSON output for macOS.
v5.0.0
Note/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-cli
toast.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.1
v4.6.0
notify
callback (by @MadLittleMods)file:///xxx
protocol icon paths for Windows 8.1 (by @gucong3000)v4.5.0
Adds 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.0
v4.3.1
Obligatory patch fix:
v4.3.0
Adds 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.3
v4.2.2
which
test to be sync, avoiding some edge cases with multiple notifications.v4.2.1
v4.2.0
v4.1.2
v4.1.1
v4.1.0
v4.0.3
v4.0.2
wait : false
)v4.0.1
v4.0.0
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 (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.0
v3.3.0
v3.2.1
v3.2.0
v3.1.0
v3.0.6
Gulp
to Node
.v3.0.5
v3.0.4
v3.0.2
v3.0.0