Update dependency node-notifier to v12 #8
No reviewers
Labels
No labels
bug
dependencies
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
andylockran/aws-whoami!8
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/node-notifier-12.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
8.0.1→12.1.0Release Notes
mikaelbr/node-notifier (node-notifier)
v12.1.0Compare Source
Features:
@types/node-notifieris no longer needed. Each notifier has typed options (NotificationCenterNotification,WindowsToasterNotification,WindowsBalloonNotification,NotifySendNotification,GrowlNotification), and the notifier classes can be used as types, e.g.const nc: NotificationCenter = new NotificationCenter().Migrating from
@types/node-notifier:@types/node-notifier. TypeScript uses the bundled types once they're installed and ignores it.NotificationCenter.NotificationwithNotificationCenterNotification,NotifySend.NotificationwithNotifySendNotification, andNodeNotifierwithDefaultNotifier.NotificationCallback,NotificationMetadataandNotifierOptions(DT'sOption) are exported by name.timefor notify-send) still work at runtime, but need a cast.Fixes:
WindowsBalloonwithwaitno longer throws when notifu exits without an error code.NotifySend.notifyreturns the notifier whennotify-sendisn't found, instead ofundefined.Internal:
dist/, which is what's published together withvendor/. The public entry points (node-notifierandnode-notifier/notifiers/*) are unchanged.import,requireand TypeScript.pnpm testno longer runs the linter first. Usepnpm lint.v12.0.0Compare Source
Breaking changes:
node-notifieris now ES modules only ("type": "module"). Useimport notifier from 'node-notifier', or named exports likeimport { notify, NotificationCenter } from 'node-notifier'.require('node-notifier')keeps working through Node'srequire(esm)and returns the same notifier instance as before, andrequire('node-notifier/notifiers/<name>')still returns the notifier class.exportsmap. Only the root andnode-notifier/notifiers/*can be imported; internal files such asnode-notifier/lib/utilsare no longer reachable.terminal-notifier3.0.0, which runs natively on Apple silicon (#361, #441). To migrate:withFallback: truefor Growl on older versions).wait,timeoutand theclick/timeoutevents only work withactionsorreply. Addactionsif you need to wait for the user.icon,sender,closeLabelanddropdownLabelare ignored. UsecustomPathwith your own build for a custom icon.contentImagemust be a local file.deliveredAt/activationAt.Features:
actionstoNotifySend, using the action buttons innotify-send(libnotify) 0.7.10+ (#445). The notification waits for the user, choosing an action emitsclickwith the label asmetadata.activationValue, and running out of time emitstimeout, the same as macOS.NODE_NOTIFIER_WSL_NOTIFIER=linuxto useNotifySendinstead ofWindowsToasterfor the default notifier, e.g. when running an X server with a notification daemon (#412). It must be set beforenode-notifieris imported. Unset, WSL keeps usingWindowsToaster.duration: 'short' | 'long'toWindowsToaster, passed to SnoreToast as-d, to keep a toast on screen for about 25 seconds instead of about 7 (#401, #223). Other values are dropped, andwait/timeoutare unchanged. x64 only with the bundled binary, as the bundled 32-bit SnoreToast (0.7.0) lacks-d. On other architectures it is dropped unlesscustomPathis set.transienttoNotifySend.transient: truepasses--hint=int:transient:1, so the notification isn't kept in the notification list (e.g. GNOME Shell), and can be combined withhint(#188).applicationtoWindowsToaster, passed to SnoreToast as-application, so clicking a notification after node-notifier has stopped listening (e.g. from the action center) starts your app (#430).Fixes:
iconpaths on Windows drives (/mnt/c/...) and skips other icons instead of showing an empty "SnoreToast" notification (#354).WindowsToasternow acceptsremovewithout amessage, the same asclose(#431).appID(#326, #332, #375). The binary is KDE's own build of the official release. The 32-bit binary stays on 0.7.0, as KDE publishes no 32-bit build. Note that the new binary is not code-signed.notifythrowing inclusterworker processes (#410).Internal:
EventEmitter(they can still be called withoutnew).filesallowlist instead of.npmignore, and drops the outdatednexeexample build scripts.vitestexplicitly instead of relying on globals.terminal-notifieris checked against the release checksum in CI (scripts/vendor-terminal-notifier.sh).scripts/vendor-snoretoast.sh).vendor/snoreToast/README.md(#381).Thanks to @Sebastian-Webster for the original Apple silicon work in #441, to @DuBistKomisch for finding and fixing the SnoreToast
appIDissue in #375 and upstream, and to @marmul for the originalnotify-sendactions work in #445.v11.0.0Compare Source
Even though this is a major version, there are no real breaking changes for most people.
This removes uneeded external dependencies and updates the internal dependencies to the latest versions.
But it now only checks and verifies node versions 20.x, 22.x, 24.x. So if you are on older versions, this might break.
There will be an upcoming major version that has bigger breaking changes, so this is an intermediate major version to clean up the codebase and dependencies.
Features:
clearAll()toNotificationCenterto stop waiting on active notifications, so the application can exit without waiting for their timeouts. See #210Fixes:
WindowsToasterworks under WSL. See #458Thanks to @mtsmfm
v10.0.1Compare Source
Fixes:
Thanks to @yoavain
v10.0.0Compare Source
Breaking changes:
Setting
NSAllowsArbitraryLoadsas false for security reasons within terminal-notifier. Meaning non-https images/loads for terminal-notifier will no longer work. See #362Fixes
v9.0.1Compare Source
v9.0.0Compare Source
Breaking changes:
Patches
v8.0.2Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
9e2108e8dbto2891a5fc27View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.