Version Packages

This commit is contained in:
github-actions[bot]
2026-03-17 21:39:07 +00:00
parent e704c00979
commit 5725b5fcfa
679 changed files with 6785 additions and 2555 deletions
+44
View File
@@ -1,5 +1,49 @@
# @backstage/backend-plugin-api
## 1.8.0
### Minor Changes
- cc8348e: Added optional `visibilityPermission` field to `ActionsRegistryActionOptions`, allowing actions to declare a `BasicPermission` that controls visibility and access.
```typescript
import { createPermission } from '@backstage/plugin-permission-common';
const myPermission = createPermission({
name: 'myPlugin.myAction.use',
attributes: {},
});
actionsRegistry.register({
name: 'my-action',
title: 'My Action',
description: 'An action that requires permission',
visibilityPermission: myPermission,
schema: {
input: z => z.object({ name: z.string() }),
output: z => z.object({ ok: z.boolean() }),
},
action: async ({ input }) => {
return { output: { ok: true } };
},
});
```
Actions without a `visibilityPermission` field continue to work as before.
- 015668c: Added `cancelTask` method to the `SchedulerService` interface and implementation, allowing cancellation of currently running scheduled tasks. For global tasks, the database lock is released and a periodic liveness check aborts the running task function. For local tasks, the task's abort signal is triggered directly. A new `POST /.backstage/scheduler/v1/tasks/:id/cancel` endpoint is also available.
### Patch Changes
- dee4283: Added `pluginId` field to `ActionsServiceAction` type, populated from the registering plugin's metadata.
- 1ee5b28: Adds an alpha `MetricsService` to provide a unified interface for metrics instrumentation across Backstage plugins.
- a49a40d: Updated dependency `zod` to `^3.25.76 || ^4.0.0` & migrated to `/v3` or `/v4` imports.
- Updated dependencies
- @backstage/cli-common@0.2.0
- @backstage/plugin-permission-common@0.9.7
- @backstage/plugin-permission-node@0.10.11
- @backstage/plugin-auth-node@0.6.14
## 1.8.0-next.1
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/backend-plugin-api",
"version": "1.8.0-next.1",
"version": "1.8.0",
"description": "Core API used by Backstage backend plugins",
"backstage": {
"role": "node-library"