![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-events-node
Advanced tools
The plugin-events-node module for @backstage/plugin-events-backend
@backstage/plugin-events-node
This package defined basic types for event-based interactions inside of Backstage.
Additionally, it provides the core event service eventsServiceRef
of type EventsService
with its default implementation that uses the DefaultEventsService
implementation.
DefaultEventsService
is a simple in-memory implementation
that requires the co-deployment of producers and consumers of events.
Add @backstage/plugin-events-node
as dependency to your plugin or plugin module package
to which you want to add event support.
Use eventsServiceRef
as a dependency at your plugin or plugin module.
Create an EventsService
instance and add it to the environment.
// packages/backend/src/plugins/events.ts
import { DefaultEventsService } from '@backstage/plugin-events-node';
// ...
function makeCreateEnv(config: Config) {
// ...
const eventsService = DefaultEventsService.create({ logger: root, config });
// ...
return (plugin: string): PluginEnvironment => {
// ...
return {
// ...
events: eventsService,
// ...
};
};
}
Use the events
from the PluginEnvironment
as desired:
// packages/backend/src/plugins/events.ts
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
// ...
env.events; // ...
// ...
}
Create your custom service factory implementation:
import { eventsServiceRef } from '@backstage/plugin-events-node';
// ...
export const customEventsServiceFactory = createServiceFactory({
service: eventsServiceRef,
deps: {
// add needed dependencies here
},
async factory({ logger }) {
// add your custom logic here
return customEventsService;
},
});
and your custom implementation:
// packages/backend/src/index.ts
+ backend.add(customEventsServiceFactory);
FAQs
The plugin-events-node module for @backstage/plugin-events-backend
The npm package @backstage/plugin-events-node receives a total of 0 weekly downloads. As such, @backstage/plugin-events-node popularity was classified as not popular.
We found that @backstage/plugin-events-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.