File tree Expand file tree Collapse file tree 6 files changed +7
-27
lines changed
Expand file tree Collapse file tree 6 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @backstage-community/plugin-nomad-backend ' : minor
3+ ---
4+
5+ Drops support for the old backend system.
Original file line number Diff line number Diff line change 11{
22 "autoVersionBump" : true ,
3- "knipReports" : false
3+ "knipReports" : false ,
4+ "listDeprecations" : true
45}
Original file line number Diff line number Diff line change 44
55``` ts
66import { BackendFeature } from ' @backstage/backend-plugin-api' ;
7- import { Config } from ' @backstage/config' ;
8- import express from ' express' ;
9- import { LoggerService } from ' @backstage/backend-plugin-api' ;
10-
11- // @public @deprecated (undocumented)
12- export function createRouter(options : RouterOptions ): Promise <express .Router >;
137
148// @public
159const nomadPlugin: BackendFeature ;
1610export default nomadPlugin ;
1711
18- // @public @deprecated (undocumented)
19- export interface RouterOptions {
20- // (undocumented)
21- config: Config ;
22- // (undocumented)
23- logger: LoggerService ;
24- }
25-
2612// (No @packageDocumentation comment for this package)
2713```
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- export * from './service/router' ;
1716export { nomadPlugin as default } from './plugin' ;
Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ export const nomadPlugin = createBackendPlugin({
3737 async init ( { logger, config, httpRouter } ) {
3838 httpRouter . use (
3939 await createRouter ( {
40- /**
41- * Logger for logging purposes
42- */
4340 logger,
4441 config,
4542 } ) ,
Original file line number Diff line number Diff line change @@ -22,19 +22,11 @@ import Router from 'express-promise-router';
2222import { LoggerService } from '@backstage/backend-plugin-api' ;
2323import { MiddlewareFactory } from '@backstage/backend-defaults/rootHttpRouter' ;
2424
25- /**
26- * @deprecated Please migrate to the new backend system as this will be removed in the future.
27- *
28- * @public */
2925export interface RouterOptions {
3026 logger : LoggerService ;
3127 config : Config ;
3228}
3329
34- /**
35- * @deprecated Please migrate to the new backend system as this will be removed in the future.
36- *
37- * @public */
3830export async function createRouter (
3931 options : RouterOptions ,
4032) : Promise < express . Router > {
You can’t perform that action at this time.
0 commit comments