@backstage/plugin-app-backend 0.3.23-next.0 → 0.3.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @backstage/plugin-app-backend
2
2
 
3
+ ## 0.3.25
4
+
5
+ ### Patch Changes
6
+
7
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
8
+ - 0107c9aa08: chore(deps): bump `helmet` from 4.4.1 to 5.0.2
9
+ - Updated dependencies
10
+ - @backstage/backend-common@0.10.8
11
+ - @backstage/config-loader@0.9.4
12
+ - @backstage/config@0.1.14
13
+ - @backstage/types@0.1.2
14
+
15
+ ## 0.3.24
16
+
17
+ ### Patch Changes
18
+
19
+ - 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
20
+
21
+ This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
22
+
23
+ - Updated dependencies
24
+ - @backstage/backend-common@0.10.7
25
+
26
+ ## 0.3.24-next.0
27
+
28
+ ### Patch Changes
29
+
30
+ - 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
31
+
32
+ This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
33
+
34
+ - Updated dependencies
35
+ - @backstage/backend-common@0.10.7-next.0
36
+
37
+ ## 0.3.23
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies
42
+ - @backstage/backend-common@0.10.6
43
+
3
44
  ## 0.3.23-next.0
4
45
 
5
46
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-app-backend",
3
3
  "description": "A Backstage backend plugin that serves the Backstage frontend app",
4
- "version": "0.3.23-next.0",
4
+ "version": "0.3.25",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -11,6 +11,9 @@
11
11
  "main": "dist/index.cjs.js",
12
12
  "types": "dist/index.d.ts"
13
13
  },
14
+ "backstage": {
15
+ "role": "backend-plugin"
16
+ },
14
17
  "homepage": "https://backstage.io",
15
18
  "repository": {
16
19
  "type": "git",
@@ -21,35 +24,35 @@
21
24
  "backstage"
22
25
  ],
23
26
  "scripts": {
24
- "start": "backstage-cli backend:dev",
25
- "build": "backstage-cli backend:build",
26
- "lint": "backstage-cli lint",
27
- "test": "backstage-cli test",
28
- "prepack": "backstage-cli prepack",
29
- "postpack": "backstage-cli postpack",
30
- "clean": "backstage-cli clean"
27
+ "start": "backstage-cli package start",
28
+ "build": "backstage-cli package build",
29
+ "lint": "backstage-cli package lint",
30
+ "test": "backstage-cli package test",
31
+ "prepack": "backstage-cli package prepack",
32
+ "postpack": "backstage-cli package postpack",
33
+ "clean": "backstage-cli package clean"
31
34
  },
32
35
  "dependencies": {
33
- "@backstage/backend-common": "^0.10.6-next.0",
34
- "@backstage/config": "^0.1.13",
35
- "@backstage/config-loader": "^0.9.3",
36
- "@backstage/types": "^0.1.1",
36
+ "@backstage/backend-common": "^0.10.8",
37
+ "@backstage/config": "^0.1.14",
38
+ "@backstage/config-loader": "^0.9.4",
39
+ "@backstage/types": "^0.1.2",
37
40
  "@types/express": "^4.17.6",
38
41
  "express": "^4.17.1",
39
42
  "express-promise-router": "^4.1.0",
40
43
  "fs-extra": "9.1.0",
41
44
  "globby": "^11.0.0",
42
- "helmet": "^4.0.0",
43
- "knex": "^0.95.1",
45
+ "helmet": "^5.0.2",
46
+ "knex": "^1.0.2",
44
47
  "lodash": "^4.17.21",
45
48
  "luxon": "^2.0.2",
46
49
  "winston": "^3.2.1",
47
50
  "yn": "^4.0.0"
48
51
  },
49
52
  "devDependencies": {
50
- "@backstage/backend-test-utils": "^0.1.16-next.1",
51
- "@backstage/cli": "^0.13.1-next.1",
52
- "@backstage/types": "^0.1.1",
53
+ "@backstage/backend-test-utils": "^0.1.18",
54
+ "@backstage/cli": "^0.14.0",
55
+ "@backstage/types": "^0.1.2",
53
56
  "@types/supertest": "^2.0.8",
54
57
  "mock-fs": "^5.1.0",
55
58
  "msw": "^0.35.0",
@@ -60,5 +63,5 @@
60
63
  "migrations/**/*.{js,d.ts}",
61
64
  "static"
62
65
  ],
63
- "gitHead": "d6da97a1edeb21fcefc682d91916987ba9f3d89a"
66
+ "gitHead": "4805c3d13ce9bfc369e53c271b1b95e722b3b4dc"
64
67
  }
package/dist/index.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import { PluginDatabaseManager } from '@backstage/backend-common';
2
- import { Config } from '@backstage/config';
3
- import express from 'express';
4
- import { Logger } from 'winston';
5
-
6
- interface RouterOptions {
7
- config: Config;
8
- logger: Logger;
9
- /**
10
- * If a database is provided it will be used to cache previously deployed static assets.
11
- *
12
- * This is a built-in alternative to using a `staticFallbackHandler`.
13
- */
14
- database?: PluginDatabaseManager;
15
- /**
16
- * The name of the app package that content should be served from. The same app package should be
17
- * added as a dependency to the backend package in order for it to be accessible at runtime.
18
- *
19
- * In a typical setup with a single app package this would be set to 'app'.
20
- */
21
- appPackageName: string;
22
- /**
23
- * A request handler to handle requests for static content that are not present in the app bundle.
24
- *
25
- * This can be used to avoid issues with clients on older deployment versions trying to access lazy
26
- * loaded content that is no longer present. Typically the requests would fall back to a long-term
27
- * object store where all recently deployed versions of the app are present.
28
- *
29
- * Another option is to provide a `database` that will take care of storing the static assets instead.
30
- *
31
- * If both `database` and `staticFallbackHandler` are provided, the `database` will attempt to serve
32
- * static assets first, and if they are not found, the `staticFallbackHandler` will be called.
33
- */
34
- staticFallbackHandler?: express.Handler;
35
- /**
36
- * Disables the configuration injection. This can be useful if you're running in an environment
37
- * with a read-only filesystem, or for some other reason don't want configuration to be injected.
38
- *
39
- * Note that this will cause the configuration used when building the app bundle to be used, unless
40
- * a separate configuration loading strategy is set up.
41
- *
42
- * This also disables configuration injection though `APP_CONFIG_` environment variables.
43
- */
44
- disableConfigInjection?: boolean;
45
- }
46
- declare function createRouter(options: RouterOptions): Promise<express.Router>;
47
-
48
- export { RouterOptions, createRouter };