@backstage/plugin-scaffolder-backend 1.5.0 → 1.6.0-next.1

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.d.ts CHANGED
@@ -264,6 +264,7 @@ export declare function createGithubRepoCreateAction(options: {
264
264
  }): TemplateAction< {
265
265
  repoUrl: string;
266
266
  description?: string | undefined;
267
+ homepage?: string | undefined;
267
268
  access?: string | undefined;
268
269
  deleteBranchOnMerge?: boolean | undefined;
269
270
  gitAuthorName?: string | undefined;
@@ -409,22 +410,6 @@ enableLFS?: boolean | undefined;
409
410
  token?: string | undefined;
410
411
  }>;
411
412
 
412
- /**
413
- * This task is useful for local development and testing of both the scaffolder
414
- * and scaffolder templates.
415
- *
416
- * @remarks
417
- *
418
- * This action is not installed by default and should not be installed in
419
- * production, as it writes the files to the local filesystem of the scaffolder.
420
- *
421
- * @public
422
- * @deprecated This action will be removed, prefer testing templates using the template editor instead.
423
- */
424
- export declare function createPublishFileAction(): TemplateAction< {
425
- path: string;
426
- }>;
427
-
428
413
  /**
429
414
  * Creates a new action that initializes a git repository of the content in the workspace
430
415
  * and publishes it to a Gerrit instance.
@@ -472,6 +457,7 @@ export declare function createPublishGithubAction(options: {
472
457
  }): TemplateAction< {
473
458
  repoUrl: string;
474
459
  description?: string | undefined;
460
+ homepage?: string | undefined;
475
461
  access?: string | undefined;
476
462
  defaultBranch?: string | undefined;
477
463
  protectDefaultBranch?: boolean | undefined;
@@ -619,6 +605,8 @@ export declare interface CurrentClaimedTask {
619
605
  export declare class DatabaseTaskStore implements TaskStore {
620
606
  private readonly db;
621
607
  static create(options: DatabaseTaskStoreOptions): Promise<DatabaseTaskStore>;
608
+ private static getClient;
609
+ private static runMigrations;
622
610
  private constructor();
623
611
  list(options: {
624
612
  createdBy?: string;
@@ -629,14 +617,14 @@ export declare class DatabaseTaskStore implements TaskStore {
629
617
  createTask(options: TaskStoreCreateTaskOptions): Promise<TaskStoreCreateTaskResult>;
630
618
  claimTask(): Promise<SerializedTask | undefined>;
631
619
  heartbeatTask(taskId: string): Promise<void>;
632
- listStaleTasks({ timeoutS }: {
620
+ listStaleTasks(options: {
633
621
  timeoutS: number;
634
622
  }): Promise<{
635
623
  tasks: {
636
624
  taskId: string;
637
625
  }[];
638
626
  }>;
639
- completeTask({ taskId, status, eventBody, }: {
627
+ completeTask(options: {
640
628
  taskId: string;
641
629
  status: TaskStatus;
642
630
  eventBody: JsonObject;
@@ -644,7 +632,7 @@ export declare class DatabaseTaskStore implements TaskStore {
644
632
  emitLogEvent(options: TaskStoreEmitOptions<{
645
633
  message: string;
646
634
  } & JsonObject>): Promise<void>;
647
- listEvents({ taskId, after, }: TaskStoreListEventsOptions): Promise<{
635
+ listEvents(options: TaskStoreListEventsOptions): Promise<{
648
636
  events: SerializedTaskEvent[];
649
637
  }>;
650
638
  }
@@ -655,7 +643,7 @@ export declare class DatabaseTaskStore implements TaskStore {
655
643
  * @public
656
644
  */
657
645
  export declare type DatabaseTaskStoreOptions = {
658
- database: Knex;
646
+ database: PluginDatabaseManager | Knex;
659
647
  };
660
648
 
661
649
  /**
@@ -671,7 +659,7 @@ export declare const executeShellCommand: (options: RunCommandOptions) => Promis
671
659
  *
672
660
  * @public
673
661
  */
674
- export declare function fetchContents({ reader, integrations, baseUrl, fetchUrl, outputPath, }: {
662
+ export declare function fetchContents(options: {
675
663
  reader: UrlReader;
676
664
  integrations: ScmIntegrations;
677
665
  baseUrl?: string;
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.5.0",
4
+ "version": "1.6.0-next.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -35,16 +35,16 @@
35
35
  "build:assets": "node scripts/build-nunjucks.js"
36
36
  },
37
37
  "dependencies": {
38
- "@backstage/backend-common": "^0.15.0",
39
- "@backstage/backend-plugin-api": "^0.1.1",
40
- "@backstage/catalog-client": "^1.0.4",
38
+ "@backstage/backend-common": "^0.15.1-next.1",
39
+ "@backstage/backend-plugin-api": "^0.1.2-next.0",
40
+ "@backstage/catalog-client": "^1.0.5-next.0",
41
41
  "@backstage/catalog-model": "^1.1.0",
42
42
  "@backstage/config": "^1.0.1",
43
43
  "@backstage/errors": "^1.1.0",
44
- "@backstage/integration": "^1.3.0",
45
- "@backstage/plugin-catalog-backend": "^1.3.1",
46
- "@backstage/plugin-catalog-node": "^1.0.1",
47
- "@backstage/plugin-scaffolder-common": "^1.1.2",
44
+ "@backstage/integration": "^1.3.1-next.0",
45
+ "@backstage/plugin-catalog-backend": "^1.4.0-next.1",
46
+ "@backstage/plugin-catalog-node": "^1.0.2-next.0",
47
+ "@backstage/plugin-scaffolder-common": "^1.2.0-next.0",
48
48
  "@backstage/types": "^1.0.0",
49
49
  "@gitbeaker/core": "^35.6.0",
50
50
  "@gitbeaker/node": "^35.1.0",
@@ -72,15 +72,15 @@
72
72
  "octokit-plugin-create-pull-request": "^3.10.0",
73
73
  "p-limit": "^3.1.0",
74
74
  "uuid": "^8.2.0",
75
- "vm2": "^3.9.6",
75
+ "vm2": "^3.9.11",
76
76
  "winston": "^3.2.1",
77
77
  "yaml": "^2.0.0",
78
78
  "zen-observable": "^0.8.15",
79
79
  "zod": "^3.11.6"
80
80
  },
81
81
  "devDependencies": {
82
- "@backstage/backend-test-utils": "^0.1.27",
83
- "@backstage/cli": "^0.18.1",
82
+ "@backstage/backend-test-utils": "^0.1.28-next.1",
83
+ "@backstage/cli": "^0.19.0-next.1",
84
84
  "@types/command-exists": "^1.2.0",
85
85
  "@types/fs-extra": "^9.0.1",
86
86
  "@types/git-url-parse": "^9.0.0",
@@ -91,7 +91,7 @@
91
91
  "esbuild": "^0.14.1",
92
92
  "jest-when": "^3.1.0",
93
93
  "mock-fs": "^5.1.0",
94
- "msw": "^0.44.0",
94
+ "msw": "^0.45.0",
95
95
  "supertest": "^6.1.3",
96
96
  "yaml": "^2.0.0"
97
97
  },
@@ -103,5 +103,5 @@
103
103
  "assets"
104
104
  ],
105
105
  "configSchema": "config.d.ts",
106
- "gitHead": "a12f6269e3bf224aa7f52475be9152bc52addeed"
106
+ "gitHead": "64f2e93089b61902a3302933dfec197deb10506c"
107
107
  }