@backstage/plugin-scaffolder-backend 1.21.0-next.2 → 1.21.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.
package/dist/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var router = require('./cjs/router-eac0efea.cjs.js');
5
+ var router = require('./cjs/router-f392ade6.cjs.js');
6
6
  var github = require('@backstage/plugin-scaffolder-backend-module-github');
7
7
  var gitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
8
8
  var azure = require('@backstage/plugin-scaffolder-backend-module-azure');
@@ -31,6 +31,7 @@ require('globby');
31
31
  require('isbinaryfile');
32
32
  require('isolated-vm');
33
33
  require('lodash/get');
34
+ require('@backstage/plugin-scaffolder-backend-module-gitea');
34
35
  require('uuid');
35
36
  require('zen-observable');
36
37
  require('lodash');
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/scaffolder/actions/deprecated.ts","../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport * as github from '@backstage/plugin-scaffolder-backend-module-github';\nimport * as gitlab from '@backstage/plugin-scaffolder-backend-module-gitlab';\nimport * as azure from '@backstage/plugin-scaffolder-backend-module-azure';\nimport * as bitbucket from '@backstage/plugin-scaffolder-backend-module-bitbucket';\nimport * as bitbucketCloud from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';\nimport * as bitbucketServer from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';\nimport * as gerrit from '@backstage/plugin-scaffolder-backend-module-gerrit';\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubActionsDispatchAction =\n github.createGithubActionsDispatchAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubDeployKeyAction = github.createGithubDeployKeyAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubEnvironmentAction =\n github.createGithubEnvironmentAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubIssuesLabelAction =\n github.createGithubIssuesLabelAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport type CreateGithubPullRequestActionOptions =\n github.CreateGithubPullRequestActionOptions;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubRepoCreateAction = github.createGithubRepoCreateAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubRepoPushAction = github.createGithubRepoPushAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubWebhookAction = github.createGithubWebhookAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createPublishGithubAction = github.createPublishGithubAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createPublishGithubPullRequestAction =\n github.createPublishGithubPullRequestAction;\n\n/**\n * @public @deprecated use \"createPublishBitbucketCloudAction\" from \\@backstage/plugin-scaffolder-backend-module-bitbucket-cloud or \"createPublishBitbucketServerAction\" from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketAction =\n bitbucket.createPublishBitbucketAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-bitbucket-cloud instead\n */\nexport const createPublishBitbucketCloudAction =\n bitbucketCloud.createPublishBitbucketCloudAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketServerAction =\n bitbucketServer.createPublishBitbucketServerAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketServerPullRequestAction =\n bitbucketServer.createPublishBitbucketServerPullRequestAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-azure instead\n */\nexport const createPublishAzureAction = azure.createPublishAzureAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gerrit instead\n */\nexport const createPublishGerritAction = gerrit.createPublishGerritAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gerrit instead\n */\nexport const createPublishGerritReviewAction =\n gerrit.createPublishGerritReviewAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gitlab instead\n */\nexport const createPublishGitlabAction = gitlab.createPublishGitlabAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gitlab instead\n */\nexport const createPublishGitlabMergeRequestAction =\n gitlab.createPublishGitlabMergeRequestAction;\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ActionContext as ActionContextNode,\n createTemplateAction as createTemplateActionNode,\n TaskSecrets as TaskSecretsNode,\n TemplateAction as TemplateActionNode,\n executeShellCommand as executeShellCommandNode,\n ExecuteShellCommandOptions as ExecuteShellCommandOptionsNode,\n fetchContents as fetchContentsNode,\n} from '@backstage/plugin-scaffolder-node';\nimport { JsonObject } from '@backstage/types';\nimport { ScaffolderEntitiesProcessor as ScaffolderEntitiesProcessorModule } from '@backstage/plugin-catalog-backend-module-scaffolder-entity-model';\n\n/**\n * @public\n * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead\n */\nexport type ActionContext<TInput extends JsonObject> =\n ActionContextNode<TInput>;\n\n/**\n * @public\n * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const createTemplateAction = createTemplateActionNode;\n\n/**\n * @public\n * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TaskSecrets = TaskSecretsNode;\n\n/**\n * @public\n * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TemplateAction<TInput extends JsonObject> =\n TemplateActionNode<TInput>;\n\n/**\n * Options for {@link executeShellCommand}.\n *\n * @public\n * @deprecated Use `ExecuteShellCommandOptions` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type RunCommandOptions = ExecuteShellCommandOptionsNode;\n\n/**\n * Run a command in a sub-process, normally a shell command.\n *\n * @public\n * @deprecated Use `executeShellCommand` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const executeShellCommand = executeShellCommandNode;\n\n/**\n * A helper function that reads the contents of a directory from the given URL.\n * Can be used in your own actions, and also used behind fetch:template and fetch:plain\n *\n * @public\n * @deprecated Use `fetchContents` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const fetchContents = fetchContentsNode;\n\n/**\n * Adds support for scaffolder specific entity kinds to the catalog.\n *\n * @public\n * @deprecated Import from `@backstage/plugin-catalog-backend-module-scaffolder-entity-model` instead\n */\nexport const ScaffolderEntitiesProcessor = ScaffolderEntitiesProcessorModule;\n"],"names":["github","bitbucket","bitbucketCloud","bitbucketServer","azure","gerrit","gitlab","createTemplateActionNode","executeShellCommandNode","fetchContentsNode","ScaffolderEntitiesProcessorModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAM,oCACXA,iBAAO,CAAA,kCAAA;AAKF,MAAM,8BAA8BA,iBAAO,CAAA,4BAAA;AAK3C,MAAM,gCACXA,iBAAO,CAAA,8BAAA;AAKF,MAAM,gCACXA,iBAAO,CAAA,8BAAA;AAWF,MAAM,+BAA+BA,iBAAO,CAAA,6BAAA;AAK5C,MAAM,6BAA6BA,iBAAO,CAAA,2BAAA;AAK1C,MAAM,4BAA4BA,iBAAO,CAAA,0BAAA;AAKzC,MAAM,4BAA4BA,iBAAO,CAAA,0BAAA;AAKzC,MAAM,uCACXA,iBAAO,CAAA,qCAAA;AAKF,MAAM,+BACXC,oBAAU,CAAA,6BAAA;AAKL,MAAM,oCACXC,yBAAe,CAAA,kCAAA;AAKV,MAAM,qCACXC,0BAAgB,CAAA,mCAAA;AAKX,MAAM,gDACXA,0BAAgB,CAAA,8CAAA;AAKX,MAAM,2BAA2BC,gBAAM,CAAA,yBAAA;AAKvC,MAAM,4BAA4BC,iBAAO,CAAA,0BAAA;AAKzC,MAAM,kCACXA,iBAAO,CAAA,gCAAA;AAKF,MAAM,4BAA4BC,iBAAO,CAAA,0BAAA;AAKzC,MAAM,wCACXA,iBAAO,CAAA;;ACxFF,MAAM,oBAAuB,GAAAC,0CAAA;AA6B7B,MAAM,mBAAsB,GAAAC,yCAAA;AAS5B,MAAM,aAAgB,GAAAC,mCAAA;AAQtB,MAAM,2BAA8B,GAAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/scaffolder/actions/deprecated.ts","../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport * as github from '@backstage/plugin-scaffolder-backend-module-github';\nimport * as gitlab from '@backstage/plugin-scaffolder-backend-module-gitlab';\nimport * as azure from '@backstage/plugin-scaffolder-backend-module-azure';\nimport * as bitbucket from '@backstage/plugin-scaffolder-backend-module-bitbucket';\nimport * as bitbucketCloud from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';\nimport * as bitbucketServer from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';\nimport * as gerrit from '@backstage/plugin-scaffolder-backend-module-gerrit';\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubActionsDispatchAction =\n github.createGithubActionsDispatchAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubDeployKeyAction = github.createGithubDeployKeyAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubEnvironmentAction =\n github.createGithubEnvironmentAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubIssuesLabelAction =\n github.createGithubIssuesLabelAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport type CreateGithubPullRequestActionOptions =\n github.CreateGithubPullRequestActionOptions;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubRepoCreateAction = github.createGithubRepoCreateAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubRepoPushAction = github.createGithubRepoPushAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createGithubWebhookAction = github.createGithubWebhookAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createPublishGithubAction = github.createPublishGithubAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-github instead\n */\nexport const createPublishGithubPullRequestAction =\n github.createPublishGithubPullRequestAction;\n\n/**\n * @public @deprecated use \"createPublishBitbucketCloudAction\" from \\@backstage/plugin-scaffolder-backend-module-bitbucket-cloud or \"createPublishBitbucketServerAction\" from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketAction =\n bitbucket.createPublishBitbucketAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-bitbucket-cloud instead\n */\nexport const createPublishBitbucketCloudAction =\n bitbucketCloud.createPublishBitbucketCloudAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketServerAction =\n bitbucketServer.createPublishBitbucketServerAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketServerPullRequestAction =\n bitbucketServer.createPublishBitbucketServerPullRequestAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-azure instead\n */\nexport const createPublishAzureAction = azure.createPublishAzureAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gerrit instead\n */\nexport const createPublishGerritAction = gerrit.createPublishGerritAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gerrit instead\n */\nexport const createPublishGerritReviewAction =\n gerrit.createPublishGerritReviewAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gitlab instead\n */\nexport const createPublishGitlabAction = gitlab.createPublishGitlabAction;\n\n/**\n * @public @deprecated use import from \\@backstage/plugin-scaffolder-backend-module-gitlab instead\n */\nexport const createPublishGitlabMergeRequestAction =\n gitlab.createPublishGitlabMergeRequestAction;\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ActionContext as ActionContextNode,\n createTemplateAction as createTemplateActionNode,\n TaskSecrets as TaskSecretsNode,\n TemplateAction as TemplateActionNode,\n executeShellCommand as executeShellCommandNode,\n ExecuteShellCommandOptions as ExecuteShellCommandOptionsNode,\n fetchContents as fetchContentsNode,\n} from '@backstage/plugin-scaffolder-node';\nimport { JsonObject } from '@backstage/types';\nimport { ScaffolderEntitiesProcessor as ScaffolderEntitiesProcessorModule } from '@backstage/plugin-catalog-backend-module-scaffolder-entity-model';\n\n/**\n * @public\n * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead\n */\nexport type ActionContext<TInput extends JsonObject> =\n ActionContextNode<TInput>;\n\n/**\n * @public\n * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const createTemplateAction = createTemplateActionNode;\n\n/**\n * @public\n * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TaskSecrets = TaskSecretsNode;\n\n/**\n * @public\n * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TemplateAction<TInput extends JsonObject> =\n TemplateActionNode<TInput>;\n\n/**\n * Options for {@link executeShellCommand}.\n *\n * @public\n * @deprecated Use `ExecuteShellCommandOptions` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type RunCommandOptions = ExecuteShellCommandOptionsNode;\n\n/**\n * Run a command in a sub-process, normally a shell command.\n *\n * @public\n * @deprecated Use `executeShellCommand` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const executeShellCommand = executeShellCommandNode;\n\n/**\n * A helper function that reads the contents of a directory from the given URL.\n * Can be used in your own actions, and also used behind fetch:template and fetch:plain\n *\n * @public\n * @deprecated Use `fetchContents` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const fetchContents = fetchContentsNode;\n\n/**\n * Adds support for scaffolder specific entity kinds to the catalog.\n *\n * @public\n * @deprecated Import from `@backstage/plugin-catalog-backend-module-scaffolder-entity-model` instead\n */\nexport const ScaffolderEntitiesProcessor = ScaffolderEntitiesProcessorModule;\n"],"names":["github","bitbucket","bitbucketCloud","bitbucketServer","azure","gerrit","gitlab","createTemplateActionNode","executeShellCommandNode","fetchContentsNode","ScaffolderEntitiesProcessorModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAM,oCACXA,iBAAO,CAAA,kCAAA;AAKF,MAAM,8BAA8BA,iBAAO,CAAA,4BAAA;AAK3C,MAAM,gCACXA,iBAAO,CAAA,8BAAA;AAKF,MAAM,gCACXA,iBAAO,CAAA,8BAAA;AAWF,MAAM,+BAA+BA,iBAAO,CAAA,6BAAA;AAK5C,MAAM,6BAA6BA,iBAAO,CAAA,2BAAA;AAK1C,MAAM,4BAA4BA,iBAAO,CAAA,0BAAA;AAKzC,MAAM,4BAA4BA,iBAAO,CAAA,0BAAA;AAKzC,MAAM,uCACXA,iBAAO,CAAA,qCAAA;AAKF,MAAM,+BACXC,oBAAU,CAAA,6BAAA;AAKL,MAAM,oCACXC,yBAAe,CAAA,kCAAA;AAKV,MAAM,qCACXC,0BAAgB,CAAA,mCAAA;AAKX,MAAM,gDACXA,0BAAgB,CAAA,8CAAA;AAKX,MAAM,2BAA2BC,gBAAM,CAAA,yBAAA;AAKvC,MAAM,4BAA4BC,iBAAO,CAAA,0BAAA;AAKzC,MAAM,kCACXA,iBAAO,CAAA,gCAAA;AAKF,MAAM,4BAA4BC,iBAAO,CAAA,0BAAA;AAKzC,MAAM,wCACXA,iBAAO,CAAA;;ACxFF,MAAM,oBAAuB,GAAAC,0CAAA;AA6B7B,MAAM,mBAAsB,GAAAC,yCAAA;AAS5B,MAAM,aAAgB,GAAAC,mCAAA;AAQtB,MAAM,2BAA8B,GAAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -73,17 +73,6 @@ declare function createFetchCatalogEntityAction(options: {
73
73
  entities?: any[] | undefined;
74
74
  }>;
75
75
 
76
- /**
77
- * @public
78
- * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
79
- */
80
- type TemplateFilter = TemplateFilter$1;
81
- /**
82
- * @public
83
- * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
84
- */
85
- type TemplateGlobal = TemplateGlobal$1;
86
-
87
76
  /**
88
77
  * The options passed to {@link createBuiltinActions}
89
78
  * @public
@@ -109,8 +98,8 @@ interface CreateBuiltInActionsOptions {
109
98
  * Additional custom filters that will be passed to the nunjucks template engine for use in
110
99
  * Template Manifests and also template skeleton files when using `fetch:template`.
111
100
  */
112
- additionalTemplateFilters?: Record<string, TemplateFilter>;
113
- additionalTemplateGlobals?: Record<string, TemplateGlobal>;
101
+ additionalTemplateFilters?: Record<string, TemplateFilter$1>;
102
+ additionalTemplateGlobals?: Record<string, TemplateGlobal$1>;
114
103
  }
115
104
  /**
116
105
  * A function to generate create a list of default actions that the scaffolder provides.
@@ -191,8 +180,8 @@ declare function createFetchPlainFileAction(options: {
191
180
  declare function createFetchTemplateAction(options: {
192
181
  reader: UrlReader;
193
182
  integrations: ScmIntegrations;
194
- additionalTemplateFilters?: Record<string, TemplateFilter>;
195
- additionalTemplateGlobals?: Record<string, TemplateGlobal>;
183
+ additionalTemplateFilters?: Record<string, TemplateFilter$1>;
184
+ additionalTemplateGlobals?: Record<string, TemplateGlobal$1>;
196
185
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
197
186
  url: string;
198
187
  targetPath?: string | undefined;
@@ -563,7 +552,7 @@ declare class DatabaseTaskStore implements TaskStore {
563
552
  *
564
553
  * @public
565
554
  */
566
- declare class TaskManager implements TaskContext {
555
+ declare class TaskManager implements TaskContext$1 {
567
556
  private readonly task;
568
557
  private readonly storage;
569
558
  private readonly signal;
@@ -579,7 +568,7 @@ declare class TaskManager implements TaskContext {
579
568
  getWorkspaceName(): Promise<string>;
580
569
  get done(): boolean;
581
570
  emitLog(message: string, logMetadata?: JsonObject): Promise<void>;
582
- complete(result: TaskCompletionState, metadata?: JsonObject): Promise<void>;
571
+ complete(result: TaskCompletionState$1, metadata?: JsonObject): Promise<void>;
583
572
  private startTimeout;
584
573
  }
585
574
  /**
@@ -612,12 +601,12 @@ interface CurrentClaimedTask {
612
601
  * @public
613
602
  */
614
603
  type CreateWorkerOptions = {
615
- taskBroker: TaskBroker;
604
+ taskBroker: TaskBroker$1;
616
605
  actionRegistry: TemplateActionRegistry;
617
606
  integrations: ScmIntegrations;
618
607
  workingDirectory: string;
619
608
  logger: Logger;
620
- additionalTemplateFilters?: Record<string, TemplateFilter>;
609
+ additionalTemplateFilters?: Record<string, TemplateFilter$1>;
621
610
  /**
622
611
  * The number of tasks that can be executed at the same time by the worker
623
612
  * @defaultValue 10
@@ -631,7 +620,7 @@ type CreateWorkerOptions = {
631
620
  * ```
632
621
  */
633
622
  concurrentTasksLimit?: number;
634
- additionalTemplateGlobals?: Record<string, TemplateGlobal>;
623
+ additionalTemplateGlobals?: Record<string, TemplateGlobal$1>;
635
624
  permissions?: PermissionEvaluator;
636
625
  };
637
626
  /**
@@ -650,7 +639,7 @@ declare class TaskWorker {
650
639
  start(): void;
651
640
  stop(): void;
652
641
  protected onReadyToClaimTask(): Promise<void>;
653
- runOneTask(task: TaskContext): Promise<void>;
642
+ runOneTask(task: TaskContext$1): Promise<void>;
654
643
  }
655
644
 
656
645
  /**
@@ -700,6 +689,17 @@ interface RouterOptions {
700
689
  */
701
690
  declare function createRouter(options: RouterOptions): Promise<express.Router>;
702
691
 
692
+ /**
693
+ * @public
694
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
695
+ */
696
+ type TemplateFilter = TemplateFilter$1;
697
+ /**
698
+ * @public
699
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
700
+ */
701
+ type TemplateGlobal = TemplateGlobal$1;
702
+
703
703
  /**
704
704
  * @public
705
705
  * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
3
  "description": "The Backstage backend plugin that helps you create new things",
4
- "version": "1.21.0-next.2",
4
+ "version": "1.21.0",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -44,34 +44,35 @@
44
44
  "build:assets": "node scripts/build-nunjucks.js"
45
45
  },
46
46
  "dependencies": {
47
- "@backstage/backend-common": "^0.21.0-next.2",
48
- "@backstage/backend-plugin-api": "^0.6.10-next.2",
49
- "@backstage/backend-tasks": "^0.5.15-next.2",
50
- "@backstage/catalog-client": "^1.6.0-next.1",
51
- "@backstage/catalog-model": "^1.4.4-next.0",
47
+ "@backstage/backend-common": "^0.21.0",
48
+ "@backstage/backend-plugin-api": "^0.6.10",
49
+ "@backstage/backend-tasks": "^0.5.15",
50
+ "@backstage/catalog-client": "^1.6.0",
51
+ "@backstage/catalog-model": "^1.4.4",
52
52
  "@backstage/config": "^1.1.1",
53
53
  "@backstage/errors": "^1.2.3",
54
- "@backstage/integration": "^1.9.0-next.0",
55
- "@backstage/plugin-auth-node": "^0.4.4-next.2",
56
- "@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.7-next.2",
57
- "@backstage/plugin-catalog-node": "^1.6.2-next.2",
54
+ "@backstage/integration": "^1.9.0",
55
+ "@backstage/plugin-auth-node": "^0.4.4",
56
+ "@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.7",
57
+ "@backstage/plugin-catalog-node": "^1.7.0",
58
58
  "@backstage/plugin-permission-common": "^0.7.12",
59
- "@backstage/plugin-permission-node": "^0.7.21-next.2",
60
- "@backstage/plugin-scaffolder-backend-module-azure": "^0.1.2-next.2",
61
- "@backstage/plugin-scaffolder-backend-module-bitbucket": "^0.2.0-next.2",
62
- "@backstage/plugin-scaffolder-backend-module-bitbucket-cloud": "^0.1.0-next.0",
63
- "@backstage/plugin-scaffolder-backend-module-bitbucket-server": "^0.1.0-next.0",
64
- "@backstage/plugin-scaffolder-backend-module-gerrit": "^0.1.2-next.2",
65
- "@backstage/plugin-scaffolder-backend-module-github": "^0.2.0-next.2",
66
- "@backstage/plugin-scaffolder-backend-module-gitlab": "^0.2.13-next.2",
67
- "@backstage/plugin-scaffolder-common": "^1.5.0-next.1",
68
- "@backstage/plugin-scaffolder-node": "^0.3.0-next.2",
59
+ "@backstage/plugin-permission-node": "^0.7.21",
60
+ "@backstage/plugin-scaffolder-backend-module-azure": "^0.1.2",
61
+ "@backstage/plugin-scaffolder-backend-module-bitbucket": "^0.2.0",
62
+ "@backstage/plugin-scaffolder-backend-module-bitbucket-cloud": "^0.1.0",
63
+ "@backstage/plugin-scaffolder-backend-module-bitbucket-server": "^0.1.0",
64
+ "@backstage/plugin-scaffolder-backend-module-gerrit": "^0.1.2",
65
+ "@backstage/plugin-scaffolder-backend-module-gitea": "^0.1.0",
66
+ "@backstage/plugin-scaffolder-backend-module-github": "^0.2.0",
67
+ "@backstage/plugin-scaffolder-backend-module-gitlab": "^0.2.13",
68
+ "@backstage/plugin-scaffolder-common": "^1.5.0",
69
+ "@backstage/plugin-scaffolder-node": "^0.3.0",
69
70
  "@backstage/types": "^1.1.1",
70
71
  "@types/express": "^4.17.6",
71
72
  "@types/luxon": "^3.0.0",
72
73
  "express": "^4.17.1",
73
74
  "express-promise-router": "^4.1.0",
74
- "fs-extra": "10.1.0",
75
+ "fs-extra": "^11.2.0",
75
76
  "globby": "^11.0.0",
76
77
  "isbinaryfile": "^5.0.0",
77
78
  "isolated-vm": "^4.5.0",
@@ -82,7 +83,7 @@
82
83
  "nunjucks": "^3.2.3",
83
84
  "p-limit": "^3.1.0",
84
85
  "p-queue": "^6.6.2",
85
- "prom-client": "^14.0.1",
86
+ "prom-client": "^15.0.0",
86
87
  "uuid": "^8.2.0",
87
88
  "winston": "^3.2.1",
88
89
  "yaml": "^2.0.0",
@@ -90,9 +91,9 @@
90
91
  "zod": "^3.22.4"
91
92
  },
92
93
  "devDependencies": {
93
- "@backstage/backend-test-utils": "^0.3.0-next.2",
94
- "@backstage/cli": "^0.25.2-next.2",
95
- "@types/fs-extra": "^9.0.1",
94
+ "@backstage/backend-test-utils": "^0.3.0",
95
+ "@backstage/cli": "^0.25.2",
96
+ "@types/fs-extra": "^11.0.0",
96
97
  "@types/nunjucks": "^3.1.4",
97
98
  "@types/supertest": "^2.0.8",
98
99
  "@types/zen-observable": "^0.8.0",