![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@backstage/plugin-notifications-node
Advanced tools
Node.js library for the notifications plugin
Welcome to the Node.js library package for the notifications plugin!
To be able to send notifications from other backend plugins, the NotificationService
must be initialized for the
environment. Add notification service to your plugin.ts
as a dependency for init
import { notificationService } from '@backstage/plugin-notifications-node';
export const myPlugin = createBackendPlugin({
pluginId: 'myPlugin',
register(env) {
env.registerInit({
deps: {
config: coreServices.rootConfig,
logger: coreServices.logger,
httpRouter: coreServices.httpRouter,
notificationService: notificationService,
},
async init({ config, logger, httpRouter, notificationService }) {
httpRouter.use(
await createRouter({
config,
logger,
permissions,
notificationService,
}),
);
},
});
},
});
You also need to set up the @backstage/plugin-notifications-backend
and @backstage/plugin-notifications
to be able to show notifications in the UI.
To send notifications from backend plugin, use the NotificationService::send
functionality. This function will
save the notification and optionally signal the frontend to show the latest status for users.
When sending notifications, you can specify the entity reference of the notification. If the entity reference is a user, the notification will be sent to only that user. If it's a group, the notification will be sent to all members of the group. If it's some other entity, the notification will be sent to the owner of that entity.
If the notification has scope
set and user already has notification with that scope, the existing notification
will be updated with the new notification values and moved to inbox as unread.
FAQs
Node.js library for the notifications plugin
The npm package @backstage/plugin-notifications-node receives a total of 0 weekly downloads. As such, @backstage/plugin-notifications-node popularity was classified as not popular.
We found that @backstage/plugin-notifications-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.