Skip to content

Commit b256dad

Browse files
os-zhuangclaude
andcommitted
chore: raise @objectstack/spec floor to ^15.1.0 (release train includes the framework#3021 fix)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent e93e132 commit b256dad

15 files changed

Lines changed: 15 additions & 15 deletions

File tree

.changeset/spec-15-ui-schema-reexports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Adopt `@objectstack/spec` 15 across the workspace and drop the value-erased `…
66

77
**Removed exports.** `packages/types` re-exported the `@objectstack/spec/ui` surface inside `export type { … }` blocks, and those blocks included the zod validators (`DndConfigSchema`, `SpecFormViewSchema`, `ThemeModeSchema`, … 84 names in total). Under `export type` a zod value is erased, so importing any of them as a value from `@object-ui/types` silently yielded `undefined` at runtime. Per the #2561 decision (option a) the schema names are removed from the public surface instead of being converted to value re-exports — consumers that need the runtime validators import them from `@objectstack/spec/ui` directly. The inferred types (`DndConfig`, `SpecFormView`, …) are unchanged, and the genuine value re-exports (`defineStack`, `ObjectStackSchema`, `SpecReportSchema`, …) keep working. `BreakpointColumnMapSchema` / `BreakpointOrderMapSchema` are dropped without a type replacement (the spec exports no companion inferred type). A guardrail test (`spec-ui-schema-reexports.test.ts`) pins the contract.
88

9-
**Spec 15.** Every workspace package now depends on `@objectstack/spec` ^15.0.1. The `/ui` export-name set is identical to 14.6; the spec-level breaking change is ADR-0089 D3a — `FormFieldSchema` / `FormSectionSchema` / `PageComponentSchema` are `.strict()` and reject undeclared keys, which the workspace test suite passes under. The floor is 15.0.1 (not 15.0.0) because D3a's `.strict().transform(…)` pipes crashed `z.toJSONSchema` over spec's lazySchema proxies (`Cannot set properties of undefined (setting 'ref')`), breaking Studio's spec-derived Page/View inspector schemas; fixed upstream in framework#3021. New `view-schema.test.ts` pins the View-inspector derivation (previously untested — it degraded silently).
9+
**Spec 15.** Every workspace package now depends on `@objectstack/spec` ^15.1.0. The `/ui` export-name set is identical to 14.6; the spec-level breaking change is ADR-0089 D3a — `FormFieldSchema` / `FormSectionSchema` / `PageComponentSchema` are `.strict()` and reject undeclared keys, which the workspace test suite passes under. The floor is 15.1.0 (not 15.0.0) because D3a's `.strict().transform(…)` pipes crashed `z.toJSONSchema` over spec's lazySchema proxies (`Cannot set properties of undefined (setting 'ref')`), breaking Studio's spec-derived Page/View inspector schemas; fixed upstream in framework#3021. New `view-schema.test.ts` pins the View-inspector derivation (previously untested — it degraded silently).

apps/console/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@object-ui/react": "workspace:*",
8989
"@object-ui/types": "workspace:*",
9090
"@objectstack/client": "^14.6.0",
91-
"@objectstack/spec": "^15.0.1",
91+
"@objectstack/spec": "^15.1.0",
9292
"@tailwindcss/postcss": "^4.3.2",
9393
"@tailwindcss/typography": "^0.5.20",
9494
"@testing-library/jest-dom": "^6.9.1",

apps/site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@object-ui/plugin-view": "workspace:*",
3232
"@object-ui/react": "workspace:*",
3333
"@object-ui/types": "workspace:*",
34-
"@objectstack/spec": "^15.0.1",
34+
"@objectstack/spec": "^15.1.0",
3535
"fumadocs-core": "16.11.3",
3636
"fumadocs-mdx": "15.0.13",
3737
"fumadocs-ui": "16.11.3",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"devDependencies": {
6262
"@changesets/cli": "^2.31.0",
6363
"@eslint/js": "^10.0.1",
64-
"@objectstack/spec": "^15.0.1",
64+
"@objectstack/spec": "^15.1.0",
6565
"@playwright/test": "^1.61.1",
6666
"@testing-library/dom": "^10.4.1",
6767
"@testing-library/jest-dom": "^6.9.1",

packages/app-shell/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@object-ui/types": "workspace:*",
5151
"@objectstack/formula": "^14.6.0",
5252
"@objectstack/lint": "^14.6.0",
53-
"@objectstack/spec": "^15.0.1",
53+
"@objectstack/spec": "^15.1.0",
5454
"@sentry/react": "^10.65.0",
5555
"jsonc-parser": "^3.3.1",
5656
"lucide-react": "^1.24.0",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@object-ui/types": "workspace:*",
3535
"@objectstack/formula": "^14.6.0",
36-
"@objectstack/spec": "^15.0.1",
36+
"@objectstack/spec": "^15.1.0",
3737
"lodash": "^4.18.1",
3838
"zod": "^4.4.3"
3939
},

packages/plugin-detail/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"dependencies": {
3434
"@object-ui/i18n": "workspace:*",
35-
"@objectstack/spec": "^15.0.1",
35+
"@objectstack/spec": "^15.1.0",
3636
"lucide-react": "^1.24.0"
3737
},
3838
"peerDependencies": {

packages/plugin-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@object-ui/permissions": "workspace:*",
2828
"@object-ui/react": "workspace:*",
2929
"@object-ui/types": "workspace:*",
30-
"@objectstack/spec": "^15.0.1",
30+
"@objectstack/spec": "^15.1.0",
3131
"lucide-react": "^1.24.0"
3232
},
3333
"peerDependencies": {

packages/plugin-gantt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@object-ui/plugin-detail": "workspace:*",
3939
"@object-ui/react": "workspace:*",
4040
"@object-ui/types": "workspace:*",
41-
"@objectstack/spec": "^15.0.1",
41+
"@objectstack/spec": "^15.1.0",
4242
"lucide-react": "^1.24.0",
4343
"qrcode": "^1.5.4",
4444
"sonner": "^2.0.7"

packages/plugin-map/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@object-ui/core": "workspace:*",
3636
"@object-ui/react": "workspace:*",
3737
"@object-ui/types": "workspace:*",
38-
"@objectstack/spec": "^15.0.1",
38+
"@objectstack/spec": "^15.1.0",
3939
"lucide-react": "^1.24.0",
4040
"maplibre-gl": "^5.24.0",
4141
"react-map-gl": "^8.1.1",

0 commit comments

Comments
 (0)