@backstage/plugin-user-settings-common 0.0.1 → 0.1.0-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage/plugin-user-settings-common
2
2
 
3
+ ## 0.1.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 104ca74: User-settings will now use DataLoader to batch consecutive calls into one API call to improve performance
8
+
3
9
  ## 0.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,7 +1,19 @@
1
+ import { JsonValue } from '@backstage/types';
2
+
1
3
  /** @public */
2
4
  type UserSettingsSignal = {
3
5
  type: 'key-changed' | 'key-deleted';
4
6
  key: string;
5
7
  };
8
+ /**
9
+ * Response type from /multiget
10
+ *
11
+ * @public
12
+ */
13
+ type MultiGetResponse = {
14
+ items: ({
15
+ value: JsonValue;
16
+ } | null)[];
17
+ };
6
18
 
7
- export type { UserSettingsSignal };
19
+ export type { MultiGetResponse, UserSettingsSignal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-user-settings-common",
3
- "version": "0.0.1",
3
+ "version": "0.1.0-next.0",
4
4
  "description": "Common functionalities for the user-settings plugin",
5
5
  "backstage": {
6
6
  "role": "common-library",
@@ -37,8 +37,18 @@
37
37
  "postpack": "backstage-cli package postpack",
38
38
  "test": "backstage-cli package test"
39
39
  },
40
+ "dependencies": {
41
+ "@backstage/types": "1.2.2"
42
+ },
40
43
  "devDependencies": {
41
- "@backstage/cli": "^0.26.7"
44
+ "@backstage/cli": "0.35.4-next.2"
45
+ },
46
+ "typesVersions": {
47
+ "*": {
48
+ "package.json": [
49
+ "package.json"
50
+ ]
51
+ }
42
52
  },
43
53
  "module": "dist/index.esm.js"
44
54
  }