Skip to content

Commit ea5199b

Browse files
authored
fix(notifications): use @janus-idp/plugin-notifications prefix for NPM (#1072)
Names of the notificaions plugins have changed to: - @janus-idp/plugin-notifications - @janus-idp/plugin-notifications-backend
1 parent 05ee8dc commit ea5199b

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

plugins/notifications-backend/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If PostgreSQL is used, additional configuration in the in the `app-config.yaml`
6262

6363
```
6464
cd packages/backend
65-
yarn add @backstage/plugin-notifications-backend
65+
yarn add @janus-idp/plugin-notifications-backend
6666
```
6767

6868
### Add backend-plugin
@@ -71,7 +71,7 @@ Create `packages/backend/src/plugins/notifications.ts` with following content:
7171

7272
```
7373
import { CatalogClient } from '@backstage/catalog-client';
74-
import { createRouter } from '@backstage/plugin-notifications-backend';
74+
import { createRouter } from '@janus-idp/plugin-notifications-backend';
7575
7676
import { Router } from 'express';
7777
@@ -301,4 +301,4 @@ Response: just HTTP status
301301

302302
## Building a client for the API
303303

304-
We supply an Open API spec YAML file: openapi.yaml.
304+
We supply an Open API spec YAML file: `openapi.yaml`.

plugins/notifications-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@backstage/plugin-notifications-backend",
2+
"name": "@janus-idp/plugin-notifications-backend",
33
"version": "0.1.0",
44
"main": "src/index.ts",
55
"types": "src/index.ts",

plugins/notifications/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## @backstage/plugin-notifications 1.0.0 (2024-01-16)
1+
## @janus-idp/plugin-notifications 1.0.0 (2024-01-16)
22

33

44
### Features

plugins/notifications/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ This Backstage front-end plugin provides:
1111

1212
### Prerequisities
1313

14-
Have `@backstage/plugin-notifications-backend` installed and running.
14+
Have `@janus-idp/plugin-notifications-backend` installed and running.
1515

1616
### Add NPM dependency
1717

1818
```
1919
cd packages/app
20-
yarn add @backstage/plugin-notifications
20+
yarn add @janus-idp/plugin-notifications
2121
```
2222

2323
### Add left-side menu item
2424

2525
In the `packages/app/src/components/Root/Root.tsx`:
2626

2727
```
28-
import { NotificationsSidebarItem } from '@backstage/plugin-notifications';
28+
import { NotificationsSidebarItem } from '@janus-idp/plugin-notifications';
2929
3030
...
3131
export const Root = ({ children }: PropsWithChildren<{}>) => (
@@ -48,7 +48,7 @@ export const Root = ({ children }: PropsWithChildren<{}>) => (
4848
In the `packages/app/src/App.tsx`:
4949

5050
```
51-
import { NOTIFICATIONS_ROUTE, NotificationsPage } from '@backstage/plugin-notifications';
51+
import { NOTIFICATIONS_ROUTE, NotificationsPage } from '@janus-idp/plugin-notifications';
5252
...
5353
5454
export const AppBase = () => {
@@ -60,7 +60,7 @@ export const AppBase = () => {
6060
## How to use the NotificationApi
6161

6262
```
63-
import { notificationsApiRef, Notification } from '@backstage/plugin-notifications';
63+
import { notificationsApiRef, Notification } from '@janus-idp/plugin-notifications';
6464
6565
...
6666

plugins/notifications/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@backstage/plugin-notifications",
2+
"name": "@janus-idp/plugin-notifications",
33
"description": "Frontend part of the notifications providing the Notifications API, Notifications page, left-side menu item and other REACT components.",
44
"version": "1.0.0",
55
"main": "src/index.ts",

0 commit comments

Comments
 (0)