@backstage/plugin-scaffolder-react 2.0.1-next.0 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @backstage/plugin-scaffolder-react
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e0889a3: chore(deps): bump `qs` from 6.15.1 to 6.15.2
8
+ - 02c4e8a: Removed unused `json-schema` runtime dependency. The package was only used for TypeScript types from `@types/json-schema`; affected imports have been converted to `import type` to allow safe removal.
9
+ - Updated dependencies
10
+ - @backstage/catalog-client@1.16.0
11
+ - @backstage/plugin-catalog-react@3.1.0
12
+ - @backstage/core-components@0.18.11
13
+ - @backstage/frontend-plugin-api@0.17.2
14
+ - @backstage/ui@0.16.0
15
+ - @backstage/plugin-scaffolder-common@2.2.1
16
+ - @backstage/core-plugin-api@1.12.7
17
+ - @backstage/plugin-permission-react@0.5.2
18
+
19
+ ## 2.0.1-next.1
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @backstage/catalog-client@1.16.0-next.1
25
+ - @backstage/frontend-plugin-api@0.17.2-next.0
26
+ - @backstage/core-components@0.18.11-next.1
27
+ - @backstage/ui@0.15.1-next.0
28
+ - @backstage/core-plugin-api@1.12.7-next.0
29
+ - @backstage/plugin-catalog-react@3.0.1-next.1
30
+ - @backstage/plugin-permission-react@0.5.2-next.0
31
+
3
32
  ## 2.0.1-next.0
4
33
 
5
34
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"utils.esm.js","sources":["../src/utils.ts"],"sourcesContent":["/*\n * Copyright 2024 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 zodToJsonSchema from 'zod-to-json-schema';\nimport { JSONSchema7 } from 'json-schema';\nimport { z } from 'zod/v3';\nimport {\n CustomFieldExtensionSchema,\n FieldExtensionComponentProps,\n} from './extensions';\n\n/** @public */\nexport function makeFieldSchema<\n TReturnType extends z.ZodType,\n TUiOptions extends z.ZodType,\n>(options: {\n output: (zImpl: typeof z) => TReturnType;\n uiOptions?: (zImpl: typeof z) => TUiOptions;\n}): FieldSchema<z.output<TReturnType>, z.output<TUiOptions>> {\n const { output, uiOptions } = options;\n return {\n TProps: undefined as any,\n TOutput: undefined as any,\n schema: {\n returnValue: zodToJsonSchema(output(z)) as JSONSchema7,\n uiOptions: uiOptions && (zodToJsonSchema(uiOptions(z)) as JSONSchema7),\n },\n\n // These will be removed - just here for backwards compat whilst we're moving across\n type: undefined as any,\n uiOptionsType: undefined as any,\n };\n}\n\n/**\n * @public\n * FieldSchema encapsulates a JSONSchema7 along with the\n * matching FieldExtensionComponentProps type for a field extension.\n */\nexport interface FieldSchema<TReturn, TUiOptions> {\n /** @deprecated use TProps instead */\n readonly type: FieldExtensionComponentProps<TReturn, TUiOptions>;\n /** @deprecated will be removed */\n readonly uiOptionsType: TUiOptions;\n\n readonly schema: CustomFieldExtensionSchema;\n readonly TProps: FieldExtensionComponentProps<TReturn, TUiOptions>;\n readonly TOutput: TReturn;\n}\n"],"names":[],"mappings":";;;AAyBO,SAAS,gBAGd,OAAA,EAG2D;AAC3D,EAAA,MAAM,EAAE,MAAA,EAAQ,SAAA,EAAU,GAAI,OAAA;AAC9B,EAAA,OAAO;AAAA,IACL,MAAA,EAAQ,MAAA;AAAA,IACR,OAAA,EAAS,MAAA;AAAA,IACT,MAAA,EAAQ;AAAA,MACN,WAAA,EAAa,eAAA,CAAgB,MAAA,CAAO,CAAC,CAAC,CAAA;AAAA,MACtC,SAAA,EAAW,SAAA,IAAc,eAAA,CAAgB,SAAA,CAAU,CAAC,CAAC;AAAA,KACvD;AAAA;AAAA,IAGA,IAAA,EAAM,MAAA;AAAA,IACN,aAAA,EAAe;AAAA,GACjB;AACF;;;;"}
1
+ {"version":3,"file":"utils.esm.js","sources":["../src/utils.ts"],"sourcesContent":["/*\n * Copyright 2024 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 zodToJsonSchema from 'zod-to-json-schema';\nimport type { JSONSchema7 } from 'json-schema';\nimport { z } from 'zod/v3';\nimport {\n CustomFieldExtensionSchema,\n FieldExtensionComponentProps,\n} from './extensions';\n\n/** @public */\nexport function makeFieldSchema<\n TReturnType extends z.ZodType,\n TUiOptions extends z.ZodType,\n>(options: {\n output: (zImpl: typeof z) => TReturnType;\n uiOptions?: (zImpl: typeof z) => TUiOptions;\n}): FieldSchema<z.output<TReturnType>, z.output<TUiOptions>> {\n const { output, uiOptions } = options;\n return {\n TProps: undefined as any,\n TOutput: undefined as any,\n schema: {\n returnValue: zodToJsonSchema(output(z)) as JSONSchema7,\n uiOptions: uiOptions && (zodToJsonSchema(uiOptions(z)) as JSONSchema7),\n },\n\n // These will be removed - just here for backwards compat whilst we're moving across\n type: undefined as any,\n uiOptionsType: undefined as any,\n };\n}\n\n/**\n * @public\n * FieldSchema encapsulates a JSONSchema7 along with the\n * matching FieldExtensionComponentProps type for a field extension.\n */\nexport interface FieldSchema<TReturn, TUiOptions> {\n /** @deprecated use TProps instead */\n readonly type: FieldExtensionComponentProps<TReturn, TUiOptions>;\n /** @deprecated will be removed */\n readonly uiOptionsType: TUiOptions;\n\n readonly schema: CustomFieldExtensionSchema;\n readonly TProps: FieldExtensionComponentProps<TReturn, TUiOptions>;\n readonly TOutput: TReturn;\n}\n"],"names":[],"mappings":";;;AAyBO,SAAS,gBAGd,OAAA,EAG2D;AAC3D,EAAA,MAAM,EAAE,MAAA,EAAQ,SAAA,EAAU,GAAI,OAAA;AAC9B,EAAA,OAAO;AAAA,IACL,MAAA,EAAQ,MAAA;AAAA,IACR,OAAA,EAAS,MAAA;AAAA,IACT,MAAA,EAAQ;AAAA,MACN,WAAA,EAAa,eAAA,CAAgB,MAAA,CAAO,CAAC,CAAC,CAAA;AAAA,MACtC,SAAA,EAAW,SAAA,IAAc,eAAA,CAAgB,SAAA,CAAU,CAAC,CAAC;AAAA,KACvD;AAAA;AAAA,IAGA,IAAA,EAAM,MAAA;AAAA,IACN,aAAA,EAAe;AAAA,GACjB;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-react",
3
- "version": "2.0.1-next.0",
3
+ "version": "2.0.1",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the Scaffolder",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -74,18 +74,18 @@
74
74
  "test": "backstage-cli package test"
75
75
  },
76
76
  "dependencies": {
77
- "@backstage/catalog-client": "1.16.0-next.0",
78
- "@backstage/catalog-model": "1.9.0",
79
- "@backstage/core-components": "0.18.11-next.0",
80
- "@backstage/core-plugin-api": "1.12.6",
81
- "@backstage/frontend-plugin-api": "0.17.0",
82
- "@backstage/plugin-catalog-react": "3.0.1-next.0",
83
- "@backstage/plugin-permission-react": "0.5.1",
84
- "@backstage/plugin-scaffolder-common": "2.2.1-next.0",
85
- "@backstage/theme": "0.7.3",
86
- "@backstage/types": "1.2.2",
87
- "@backstage/ui": "0.15.0",
88
- "@backstage/version-bridge": "1.0.12",
77
+ "@backstage/catalog-client": "^1.16.0",
78
+ "@backstage/catalog-model": "^1.9.0",
79
+ "@backstage/core-components": "^0.18.11",
80
+ "@backstage/core-plugin-api": "^1.12.7",
81
+ "@backstage/frontend-plugin-api": "^0.17.2",
82
+ "@backstage/plugin-catalog-react": "^3.1.0",
83
+ "@backstage/plugin-permission-react": "^0.5.2",
84
+ "@backstage/plugin-scaffolder-common": "^2.2.1",
85
+ "@backstage/theme": "^0.7.3",
86
+ "@backstage/types": "^1.2.2",
87
+ "@backstage/ui": "^0.16.0",
88
+ "@backstage/version-bridge": "^1.0.12",
89
89
  "@material-ui/core": "^4.12.2",
90
90
  "@material-ui/icons": "^4.9.1",
91
91
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -102,7 +102,6 @@
102
102
  "flatted": "^3.4.2",
103
103
  "humanize-duration": "^3.25.1",
104
104
  "immer": "^9.0.6",
105
- "json-schema": "^0.4.0",
106
105
  "json-schema-library": "^9.0.0",
107
106
  "lodash": "^4.17.21",
108
107
  "luxon": "^3.0.0",
@@ -115,13 +114,13 @@
115
114
  "zod-to-json-schema": "^3.25.1"
116
115
  },
117
116
  "devDependencies": {
118
- "@backstage/cli": "0.36.3-next.0",
119
- "@backstage/core-app-api": "1.20.1",
120
- "@backstage/frontend-test-utils": "0.6.1-next.0",
121
- "@backstage/plugin-catalog": "2.0.6-next.0",
122
- "@backstage/plugin-catalog-common": "1.1.10",
123
- "@backstage/plugin-permission-common": "0.9.9",
124
- "@backstage/test-utils": "1.7.18",
117
+ "@backstage/cli": "^0.36.3",
118
+ "@backstage/core-app-api": "^1.20.2",
119
+ "@backstage/frontend-test-utils": "^0.6.1",
120
+ "@backstage/plugin-catalog": "^2.0.6",
121
+ "@backstage/plugin-catalog-common": "^1.1.10",
122
+ "@backstage/plugin-permission-common": "^0.9.9",
123
+ "@backstage/test-utils": "^1.7.19",
125
124
  "@testing-library/dom": "^10.0.0",
126
125
  "@testing-library/jest-dom": "^6.0.0",
127
126
  "@testing-library/react": "^16.0.0",
@@ -134,7 +133,7 @@
134
133
  "swr": "^2.0.0"
135
134
  },
136
135
  "peerDependencies": {
137
- "@backstage/frontend-test-utils": "0.6.1-next.0",
136
+ "@backstage/frontend-test-utils": "^0.6.1",
138
137
  "@types/react": "^17.0.0 || ^18.0.0",
139
138
  "react": "^17.0.0 || ^18.0.0",
140
139
  "react-dom": "^17.0.0 || ^18.0.0",