Skip to content

Commit 27a70af

Browse files
committed
no longer export router
Signed-off-by: Kurt King <[email protected]>
1 parent adfea13 commit 27a70af

File tree

6 files changed

+7
-27
lines changed

6 files changed

+7
-27
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@backstage-community/plugin-nomad-backend': minor
3+
---
4+
5+
Drops support for the old backend system.

workspaces/nomad/bcp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"autoVersionBump": true,
3-
"knipReports": false
3+
"knipReports": false,
4+
"listDeprecations": true
45
}

workspaces/nomad/plugins/nomad-backend/report.api.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,10 @@
44
55
```ts
66
import { 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
159
const nomadPlugin: BackendFeature;
1610
export 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
```

workspaces/nomad/plugins/nomad-backend/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
export * from './service/router';
1716
export { nomadPlugin as default } from './plugin';

workspaces/nomad/plugins/nomad-backend/src/plugin.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}),

workspaces/nomad/plugins/nomad-backend/src/service/router.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,11 @@ import Router from 'express-promise-router';
2222
import { LoggerService } from '@backstage/backend-plugin-api';
2323
import { 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 */
2925
export 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 */
3830
export async function createRouter(
3931
options: RouterOptions,
4032
): Promise<express.Router> {

0 commit comments

Comments
 (0)