buildx-cli 1.8.30 → 1.8.31
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/README.md +12 -0
- package/dist/README.md +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -542,10 +542,22 @@ Field annotations (JSDoc in `types.ts`) are supported:
|
|
|
542
542
|
- `@bx.required` or `@bx.required false`
|
|
543
543
|
- `@bx.ref <collection_id_or_enum_key>`
|
|
544
544
|
- `@bx.choices value1:Label 1|value2:Label 2` (for `Choices`/`MultipleChoices`)
|
|
545
|
+
- `@bx.type <SchemaType>` (force schema field type, useful for unions)
|
|
546
|
+
- `@bx.default <json>`
|
|
547
|
+
- `@bx.format <json_or_string>`
|
|
548
|
+
- `@bx.validate <json_or_string>`
|
|
549
|
+
- `@bx.props <json-object>` (merge custom keys into `propertiesScheme`)
|
|
545
550
|
|
|
546
551
|
System-managed fields:
|
|
547
552
|
- `createdAt`, `updatedAt`, `createdBy`, `updatedBy` in `types.ts` are ignored by convert output and never synced back
|
|
548
553
|
|
|
554
|
+
Embedded object fidelity:
|
|
555
|
+
- inline object/list members are restored as structured `children` (not collapsed to `item: Text`).
|
|
556
|
+
- nested relation refs are normalized to collection IDs (for example `Partial<Workflows>` -> `workflows`).
|
|
557
|
+
- when merging with base `collections.json`, nested child metadata is preserved by child name when possible.
|
|
558
|
+
- dynamic object/list fallback stays as `BxObject` / `BxList` at type layer and `Object` / `List` in collection schema layer.
|
|
559
|
+
- temporary compatibility: `string[]` / `BxText[]` converts to `MultipleChoices` instead of generic `List`.
|
|
560
|
+
|
|
549
561
|
Example:
|
|
550
562
|
```ts
|
|
551
563
|
export type Employees = {
|
package/dist/README.md
CHANGED
|
@@ -542,10 +542,22 @@ Field annotations (JSDoc in `types.ts`) are supported:
|
|
|
542
542
|
- `@bx.required` or `@bx.required false`
|
|
543
543
|
- `@bx.ref <collection_id_or_enum_key>`
|
|
544
544
|
- `@bx.choices value1:Label 1|value2:Label 2` (for `Choices`/`MultipleChoices`)
|
|
545
|
+
- `@bx.type <SchemaType>` (force schema field type, useful for unions)
|
|
546
|
+
- `@bx.default <json>`
|
|
547
|
+
- `@bx.format <json_or_string>`
|
|
548
|
+
- `@bx.validate <json_or_string>`
|
|
549
|
+
- `@bx.props <json-object>` (merge custom keys into `propertiesScheme`)
|
|
545
550
|
|
|
546
551
|
System-managed fields:
|
|
547
552
|
- `createdAt`, `updatedAt`, `createdBy`, `updatedBy` in `types.ts` are ignored by convert output and never synced back
|
|
548
553
|
|
|
554
|
+
Embedded object fidelity:
|
|
555
|
+
- inline object/list members are restored as structured `children` (not collapsed to `item: Text`).
|
|
556
|
+
- nested relation refs are normalized to collection IDs (for example `Partial<Workflows>` -> `workflows`).
|
|
557
|
+
- when merging with base `collections.json`, nested child metadata is preserved by child name when possible.
|
|
558
|
+
- dynamic object/list fallback stays as `BxObject` / `BxList` at type layer and `Object` / `List` in collection schema layer.
|
|
559
|
+
- temporary compatibility: `string[]` / `BxText[]` converts to `MultipleChoices` instead of generic `List`.
|
|
560
|
+
|
|
549
561
|
Example:
|
|
550
562
|
```ts
|
|
551
563
|
export type Employees = {
|