@backstage-community/plugin-npm-backend 1.15.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +65 -33
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @backstage-community/plugin-npm-backend
2
2
 
3
+ ## 1.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c235037: Backstage version bump to v1.47.2
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [c235037]
12
+ - @backstage-community/plugin-npm-common@1.17.0
13
+
14
+ ## 1.16.0
15
+
16
+ ### Minor Changes
17
+
18
+ - d4dad74: Backstage version bump to v1.46.2
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [d4dad74]
23
+ - @backstage-community/plugin-npm-common@1.16.0
24
+
3
25
  ## 1.15.0
4
26
 
5
27
  ### Minor Changes
package/README.md CHANGED
@@ -91,6 +91,70 @@ you must install also the backend plugin and [configure it](./registries.md).
91
91
 
92
92
  ### Frontend plugin
93
93
 
94
+ ### Load plugin via the new frontend system (alpha)
95
+
96
+ For early adaopters of the new frontend system.
97
+
98
+ Your Backstage frontend app must use that new frontend system which isn't the default at the moment.
99
+
100
+ 1. Install the frontend dependency:
101
+
102
+ ```sh
103
+ yarn workspace app-next add @backstage-community/plugin-npm
104
+ ```
105
+
106
+ 2. Add the package to your `packages/app-next/src/App.tsx`.
107
+
108
+ ```tsx
109
+ import npmPlugin from '@backstage-community/plugin-npm/alpha';
110
+ ```
111
+
112
+ And extend your createApp:
113
+
114
+ ```tsx
115
+ export const app = createApp({
116
+ features: [
117
+ // ...other plugins
118
+ npmPlugin,
119
+ ],
120
+ });
121
+ ```
122
+
123
+ 3. Optional enable translation via the `TranslationBlueprint` extension:
124
+
125
+ ```tsx
126
+ import { TranslationBlueprint } from '@backstage/plugin-app-react';
127
+
128
+ import npmPlugin, {
129
+ npmTranslations,
130
+ } from '@backstage-community/plugin-npm/alpha';
131
+ ```
132
+
133
+ ```tsx
134
+ const npmTranslation = TranslationBlueprint.make({
135
+ name: 'npmTranslation',
136
+ params: {
137
+ resource: npmTranslations,
138
+ },
139
+ });
140
+
141
+ export default createApp({
142
+ features: [
143
+ createFrontendModule({
144
+ pluginId: 'app',
145
+ extensions: [
146
+ // ...other extensions
147
+ npmTranslation,
148
+ ],
149
+ }),
150
+ // ...other plugins
151
+ npmPlugin,
152
+ ],
153
+ });
154
+ ```
155
+
156
+ ### Manual wiring the frontend plugin ("Old Frontend System")
157
+
94
158
  1. Install the frontend dependency:
95
159
 
96
160
  ```sh
@@ -140,44 +204,12 @@ you must install also the backend plugin and [configure it](./registries.md).
140
204
  </EntityLayout.Route>
141
205
  ```
142
206
 
143
- ### Alternative: Use the new frontend system (alpha)
144
-
145
- For early adaopters of the new frontend system.
146
-
147
- Your Backstage frontend app must use that new frontend system which isn't the default at the moment.
148
-
149
- 1. Install the frontend dependency:
150
-
151
- ```sh
152
- yarn workspace app-next add @backstage-community/plugin-npm
153
- ```
154
-
155
- 2. Add the package to your `packages/app[-next]/src/App.tsx`.
156
-
157
- ```tsx
158
- import npmPlugin from '@backstage-community/plugin-npm/alpha';
159
- ```
160
-
161
- And extend your createApp:
162
-
163
- ```tsx
164
- export const app = createApp({
165
- features: [
166
- catalogPlugin,
167
- catalogImportPlugin,
168
- userSettingsPlugin,
169
- npmPlugin,
170
- // ...
171
- ],
172
- });
173
- ```
174
-
175
207
  ### Optional: Backend plugin (req. for private packages or alternative registries)
176
208
 
177
209
  1. Install the backend plugin:
178
210
 
179
211
  ```sh
180
- yarn workspace backend add @backstage-community/plugin-npm
212
+ yarn workspace backend add @backstage-community/plugin-npm-backend
181
213
  ```
182
214
 
183
215
  2. Add it to `packages/backend/src/index.ts`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-npm-backend",
3
- "version": "1.15.0",
3
+ "version": "1.17.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -33,17 +33,17 @@
33
33
  "postpack": "backstage-cli package postpack"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage-community/plugin-npm-common": "^1.15.0",
37
- "@backstage/backend-defaults": "^0.13.1",
38
- "@backstage/backend-plugin-api": "^1.5.0",
36
+ "@backstage-community/plugin-npm-common": "^1.17.0",
37
+ "@backstage/backend-defaults": "^0.15.1",
38
+ "@backstage/backend-plugin-api": "^1.6.2",
39
39
  "@backstage/errors": "^1.2.7",
40
- "@backstage/plugin-catalog-node": "^1.20.0",
40
+ "@backstage/plugin-catalog-node": "^1.20.1",
41
41
  "express": "^4.17.1",
42
42
  "express-promise-router": "^4.1.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@backstage/backend-test-utils": "^1.10.0",
46
- "@backstage/cli": "^0.34.5",
45
+ "@backstage/backend-test-utils": "^1.10.4",
46
+ "@backstage/cli": "^0.35.3",
47
47
  "@types/express": "^4.17.1"
48
48
  },
49
49
  "files": [