Skip to content

Commit fa03472

Browse files
committed
refactor(types)!: drop seven Spec-prefixed spec/ui type aliases nothing reads
SpecDashboardHeader, SpecDashboardHeaderAction, SpecFormView, SpecListColumn, SpecPageComponent, SpecPageRegion and SpecPageVariable leave the @object-ui/types entry. They were type-only aliases of @objectstack/spec/ui types with no reader in the workspace or in hotcrm; the unprefixed upstream names stay the import to use. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyZMb3aNnWtD2ukQXx
1 parent 81deb54 commit fa03472

2 files changed

Lines changed: 32 additions & 7 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@object-ui/types': patch
3+
---
4+
5+
refactor(types)!: drop seven `Spec`-prefixed spec/ui type aliases nothing reads
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none
9+
10+
<!-- adr-0087: not-required (runtime-export-retired @object-ui/types#SpecDashboardHeader, @object-ui/types#SpecDashboardHeaderAction, @object-ui/types#SpecFormView, @object-ui/types#SpecListColumn, @object-ui/types#SpecPageComponent, @object-ui/types#SpecPageRegion, @object-ui/types#SpecPageVariable) the retired operands are type-only aliases of `@objectstack/spec/ui` types that no renderer, adapter or host reads; nothing in the workspace or in hotcrm imports any of them from the package entry, they are not arms of `AnySchema`, and the spec types they aliased stay exported by `@objectstack/spec/ui` under their own names, so no stored shape, registered node type or conversion surface changes and there is nothing for `objectstack migrate meta` to rewrite -->
11+
12+
**BREAKING** for a host that imports any of these seven types from `@object-ui/types`. None had an importer anywhere in the workspace or in hotcrm, so the Console and every `@object-ui/*` package are unaffected.
13+
14+
They were type-only re-exports, so the built JavaScript is unchanged; only the entry's `.d.ts` loses them. The other `Spec`-prefixed aliases of the same "v3.0.8 Spec UI Types" section stay, among them `SpecDashboard`, `SpecDashboardWidget`, `SpecGlobalFilter`, `SpecFormSection`, `SpecFormField`, `SpecListView`, `SpecPage` and `SpecPageType`.
15+
16+
What leaves, and what to write instead (each one the same type under its upstream name):
17+
18+
- FROM `SpecDashboardHeader` TO `DashboardHeader` from `@objectstack/spec/ui`.
19+
- FROM `SpecDashboardHeaderAction` TO `DashboardHeaderAction` from `@objectstack/spec/ui`.
20+
- FROM `SpecFormView` TO `FormView` from `@objectstack/spec/ui`.
21+
- FROM `SpecListColumn` TO `ListColumn` from `@objectstack/spec/ui`.
22+
- FROM `SpecPageComponent` TO `PageComponent` from `@objectstack/spec/ui`.
23+
- FROM `SpecPageRegion` TO `PageRegion` from `@objectstack/spec/ui`.
24+
- FROM `SpecPageVariable` TO `PageVariable` from `@objectstack/spec/ui`.
25+
26+
One-line fix: `import type { FormView } from '@objectstack/spec/ui'` in place of `import type { SpecFormView } from '@object-ui/types'`, and likewise for the other six.

‎ui/packages/types/src/index.ts‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,11 +1428,15 @@ export type {
14281428
// ============================================================================
14291429
// v3.0.8 Spec UI Types — Dashboard (P1.3)
14301430
// ============================================================================
1431+
// #25921 (batch 11): seven `Spec`-prefixed aliases in this section are RETIRED,
1432+
// nothing in this workspace or in hotcrm read them: `SpecDashboardHeader`,
1433+
// `SpecDashboardHeaderAction`, `SpecFormView`, `SpecListColumn`,
1434+
// `SpecPageComponent`, `SpecPageRegion` and `SpecPageVariable`. Import the
1435+
// unprefixed name (`DashboardHeader`, `FormView`, …) from `@objectstack/spec/ui`;
1436+
// the changeset carries the FROM/TO.
14311437
export type {
14321438
Dashboard as SpecDashboard,
14331439
DashboardWidget as SpecDashboardWidget,
1434-
DashboardHeader as SpecDashboardHeader,
1435-
DashboardHeaderAction as SpecDashboardHeaderAction,
14361440
GlobalFilter as SpecGlobalFilter,
14371441
GlobalFilterOptionsFrom,
14381442
// WidgetMeasure / WidgetMeasureSchema removed in @objectstack/spec 9.0
@@ -1474,7 +1478,6 @@ export type {
14741478
// #3090 tripwire exists to force). objectstack-ai/objectstack#4171 caveat: SpecFormField is `any` today.
14751479
/* eslint-disable no-restricted-imports -- reported at the specifier line, out of -next-line reach */
14761480
export type {
1477-
FormView as SpecFormView,
14781481
FormSection as SpecFormSection,
14791482
FormField as SpecFormField,
14801483
} from '@objectstack/spec/ui';
@@ -1485,7 +1488,6 @@ export type {
14851488
// ============================================================================
14861489
export type {
14871490
ListView as SpecListView,
1488-
ListColumn as SpecListColumn,
14891491
} from '@objectstack/spec/ui';
14901492

14911493
// ============================================================================
@@ -1505,10 +1507,7 @@ export type {
15051507
// ============================================================================
15061508
export type {
15071509
Page as SpecPage,
1508-
PageComponent as SpecPageComponent,
1509-
PageRegion as SpecPageRegion,
15101510
PageType as SpecPageType,
1511-
PageVariable as SpecPageVariable,
15121511
// BlankPageLayout{,Schema,Item,ItemSchema} dropped — `blank` page type has no
15131512
// renderer; removed from @objectstack/spec PageTypeSchema (framework#2265).
15141513
} from '@objectstack/spec/ui';

0 commit comments

Comments
 (0)