This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
refactor(types): deprecate PluginComponentInput in favour of ComponentInput (stage 1 of 2) - #5897
Merged
Conversation
…ntInput Stage 1 of the two-stage retirement ruled by the maintainer on 2026-08-22 (objectui#5674, item 13 = A): deprecate for a release, then remove. Since objectui#4972 converged the plugin-scoped declaration onto base.ts, `PluginComponentInput` is a second published name for the same type. Nothing is removed here -- the export still exists and still names the same type; it gains a `@deprecated` tag naming the replacement. The window is the answer to the half that cannot be measured from inside this repository. In-repo the name has zero importers, searched across every root plus the sibling framework checkout with a control; an importer on npm is not observable from here, and that is the claim that licenses deleting an export from a published package. Where the evidence is one-sided the retirement takes the reversible step first. Follows the deprecate-in-place shape already used in this package for `MenuItem`, `ActionSchema` and `MenuItemSchema`. Stage 2 is tracked as a sub-issue. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EuPCi56cnGyykygi3z9w4m
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
os-zhuang
marked this pull request as ready for review
August 23, 2026 18:43
os-steve
pushed a commit
that referenced
this pull request
Sep 27, 2026
Stage 2 (final) of the maintainer-ruled two-stage retirement (2026-08-22, item 13 = A). Stage 1 (PR #5897) marked `ComponentInput as PluginComponentInput` `@deprecated`; this deletes it. `plugin-scope.ts`'s now-dead feeder re-export (`export type { ComponentInput } from './base.js'`) goes with it, per its own docblock's instruction. The stage-1 pin test is flipped in place into a stage-2 absence pin: a source-text check (comments stripped) that the name is gone from the published entry, and a `@ts-expect-error`-enforced compile-error check that importing it fails `type-check`. Re-counted consumers on origin/main (a14fb23) first, per the triage ruling's execution note 1: zero importers, only the alias itself, its own pin, and prose. `@object-ui/types` ships `minor` (objectui#5674; this repo never declares `major`). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
os-steve
pushed a commit
that referenced
this pull request
Sep 27, 2026
Changeset: stop calling stage 1 "a prior patch release" -- no CHANGELOG entry records the deprecation, and its changeset (plugin-component-input-deprecate-5674.md) is still pending and releases alongside this one. The deprecation code did merge and reach users, but only because it rode along in the published 17.6.0 tarball, not through a release of its own. Pin header: "then named plugin-component-input-deprecation.test.ts" implied a rename that never happened -- the file was created under that name in stage 1 (PR #5897) and has never been renamed. Reworded. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 28, 2026
…jectstack-ai#10826) Fixes objectstack-ai#5674 Clause-②: no ## What Executes the triage ruling (comment [5857459542](objectstack-ai#5674 (comment)), carrying the maintainer's 「同意」): deletes the deprecated, zero-consumer published alias `PluginComponentInput` from `@object-ui/types`. This is stage 2 (final) of the two-stage retirement the maintainer ruled on 2026-08-22 (item 13 = A). Stage 1 (PR objectstack-ai#5897) marked the alias `@deprecated`, pointing at `ComponentInput`, without removing it. ## Why now, not after a further wait Stage 2 was originally filed as objectstack-ai#5892, deliberately unlabelled/unqueued and gated on "a release actually shipping the deprecation." objectstack-ai#5892 was later closed as a duplicate into a release-batch tracking card (objectui#10060) that now answers 404 — the gate had no carrier left to clear, and the on-hold card carried no `Restart-when:`. The 2026-09-27 triage ruling deletes now rather than wait on a dead gate, citing the sibling `objectstack` repository's `docs/NORTH-STAR.md` 〈阶段姿态〉: immediate retirement (no alias, no window) is the default disposition once a name has zero consumers. ## Re-measured before touching anything (execution note 1) Re-counted the consumers of `PluginComponentInput` on `origin/main` (`a14fb23b3`), excluding `dist/` and `node_modules/`, with a lit control: ``` $ git grep -n "PluginComponentInput" origin/main -- . ':!*/dist/*' ':!*/node_modules/*' ``` 18 hits, none an importer: the alias specifier itself (`index.ts:1081`), its own stage-1 pin test (import + 7 more references), docblock prose in `index.ts` (:1061), `base.ts` (:941) and `plugin-scope.ts` (:188), and three changesets (one historical, `componentinput-reexport-4972.md`; the stage-1 changeset; and `5905-componentinput-retire-constraint-keys.md`, which only cites the card number). Control (`ComponentInput`, minus the alias's own occurrences): 386 hits, including real imports — confirming the search instrument is not blind. No importer appeared, so the deletion proceeds per execution note 1's own instruction ("if any appears, stop and report here"). ## What changed - **`packages/types/src/index.ts`** — deleted the `ComponentInput as PluginComponentInput,` re-export and its attached `@deprecated` JSDoc block from the `plugin-scope.js` export group. The published entry no longer exports the name at all. The neighbouring `ComponentMeta as PluginComponentMeta` alias (a separate, still-`@deprecated`-not-yet-retired card) and `PluginEventHandler` are untouched. - **`packages/types/src/plugin-scope.ts`** — deleted `export type { ComponentInput } from './base.js'` and its docblock. This re-export existed for exactly one reason — feeding `index.ts`'s now-deleted alias — and its own docblock said so explicitly ("this line is the ONLY mention left... it goes dead the moment that alias is deleted and should be removed with it"). Verified dead first: `plugin-scope.js` had exactly one importer in the package (`index.ts`), and that importer no longer references `ComponentInput` from it. - **`packages/types/src/__tests__/plugin-component-input-deprecation.test.ts`** — flipped in place (not deleted) from a stage-1 "deprecated, still present" pin into a stage-2 "retired, no longer present" pin. It now asserts: (a) the exact stage-1 specifier and the bare name are both absent from `index.ts` source text; (b) the dead re-export is also gone from `plugin-scope.ts`; (c) importing `PluginComponentInput` from the entry point is a compile error, via a `@ts-expect-error` directive enforced by this package's `type-check` script (same pattern as `app-actions-retired-7469.test.ts`'s full-name retirement); (d) a control that `ComponentInput` and the still-deprecated `PluginComponentMeta`/`PluginEventHandler` neighbours are untouched. - **`.changeset/5674-retire-plugin-component-input.md`** — new, `@object-ui/types: minor` (this repo forbids `major`; see `AGENTS.md`'s version-alignment policy). Names `ComponentInput` as the replacement and the migration diff. Docblock sentences that would have turned false after the deletion (`plugin-scope.ts`'s "keeps naming a real export") went away with the block they were attached to, rather than being rewritten in place. `base.ts:941`'s sentence citing objectui#5674 as the precedent for an unmeasurable-external-consumer limit is historical scaffolding, not an existence claim about the alias — it stays as written. The stage-1 changeset (`plugin-component-input-deprecate-5674.md`) is left untouched as history, per this lane's rule that a pending changeset already describing a landed stage is not rewritten. ## Tests See the `os-dev-report` comment for full gate output. Summary: `@object-ui/types` build, `type-check` (both the package and its 41 dependents via `...@object-ui/types`), `pnpm test` for the package, plus the repo's changeset/control-byte/self-import/spec-symbol gates — all green. Reverse verification (re-adding the deleted alias, then the deleted re-export) turns the flipped pin's text-leg assertions red as predicted, confirming the pin actually detects the retirement it claims to. --- _Generated by [Claude Code](https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5674
Marks
PluginComponentInput@deprecatedin favour ofComponentInput. Nothing is removed — the export still exists and still names the same type.Premise, verified before implementing
The card's rationale depends on #5671 having landed; before it, the alias pointed at a genuinely different nine-key declaration. Verified against real source, not the issue tracker alone: PR #5671 merged 2026-08-22, and
packages/types/src/plugin-scope.ts:188onorigin/mainnow readsexport type { ComponentInput } from './base.js';. The alias is a pure alias today. Premise holds.The zero-consumer claim, measured with its scope and a control
The card is explicit that "no importer in this repo" and "no importer" are different claims, and only the second licenses deleting an export from a published package. This PR does not rely on the second — see Why deprecate rather than delete. The first was measured anyway, because it bounds the risk:
Roots searched (excluding
node_modules/,dist/,.turbo/,.git/):packages/apps/content/docs/skills/examples/e2e/scripts/eslint-rules/public/.changeset/, and the root*.mdfiles (READMEAGENTSROADMAPCONTRIBUTINGQUICK_REFERENCECHANGELOG). Plus the siblingobjectstackframework checkout, and both repos' installednode_modules.Result —
PluginComponentInputhas three occurrences repo-wide, none of them a consumer:packages/types/src/index.ts:922packages/types/src/plugin-scope.ts:177.changeset/componentinput-reexport-4972.md:10Framework checkout: 0. Installed packages in either repo: 0.
Control, searched identically, so a broken search could not read as a clean one:
AppMetadataPlugin— a neighbour in the sameexport type { … }block — returns 12 hits including a real cross-package import atpackages/core/src/registry/PluginSystem.ts:10. For the framework leg, whereAppMetadataPluginis legitimately absent and therefore proves nothing, the controls areSchemaRenderer(30 files) and@object-ui/types(23 files). The apparatus finds names that are there.The widening past code mattered. A name with no code importers but a docs page teaching it is not a zero-consumer name. The published skills corpus and
content/docs/**do teach this area —skills/objectui/guides/plugin-development.mddocumentsComponentInput[]and aComponentInputtype block, andcontent/docs/guide/plugin-development.mdtells authors to declareComponentInputentries. Those are precisely the pages that would teach the plugin-scoped alias if anything did. They teachComponentInput. Nothing anywhere teachesPluginComponentInput.Why deprecate rather than delete
What no search from inside this repository can see is an importer on npm. That is the unmeasurable half, and it is the half that licenses deletion. The deprecation window converts a silent break into a warned one. Deprecating is undoable; deleting a published export is not — where the evidence is one-sided, the reversible step goes first. Stage 2 is tracked in #5892 and is explicitly gated on a release actually shipping this deprecation.
Precedent followed
Not invented. This package already retires published type exports by deprecating in place with a JSDoc tag naming the replacement:
packages/types/src/app.ts:459—MenuItem:@deprecated Use `NavigationItem` instead.packages/types/src/crud.ts:85—ActionSchema:@deprecated Use `UIActionSchema` … for new code.plus a removal-is-coming sentencepackages/types/src/zod/app.zod.ts:165—MenuItemSchema:@deprecated Use NavigationItemSchema instead.One deviation from
crud.ts, deliberate: it says "removed in a future major version", which is wrong for this repo — objectui's own breaking changes ship asminorand never setmajor(they track@objectstack's). The note here saysminor.For stage 2 the precedent set is also non-empty and is recorded on #5892:
@object-ui/data-objectstackremoved published exports twice, both as aminorwith a FROM → TO breaking block and an explicit "no compile-compat stub was left" justification.ADR-0087 does not apply. Its tombstones are for authorable metadata keys in
@objectstack/spec, mirrored here by spec-parity tests.PluginComponentInputis a TypeScript type export in@object-ui/types— not an authorable key, not a spec symbol.check-spec-symbol-derivation.mjspasses and does not match it.Published surface, before → after
Shown from the emitted
.d.ts, not inferred from source.Before —
packages/types/dist/index.d.ts:140:After — the same export, now carrying the tag:
That a JSDoc block on an export specifier survives declaration emit and lands attached to that specifier was measured, not assumed — a probe tag was injected, built, and located in the emitted file. It is the reason this works at all: had the tag been dropped by
tsc, the deprecation would have existed only in source and warned nobody, and the whole window would have been cosmetic.With comments stripped and whitespace normalised, the emitted entry point is byte-identical before and after (
f191480edfbb1d39both legs) — the published type surface does not move, it only gains the notice. That gauge is reported with its control: renaming the alias perturbs the same hash, so it is not a gauge that cannot fail.Reverse verification
The diff is not a bare deletion — it adds a pin,
packages/types/src/__tests__/plugin-component-input-deprecation.test.ts, which asserts both halves of "deprecated, not removed". Ablated in both directions, from a committed state:@deprecatedtag, keep the prosegit diff --stat1 insertion 1 deletiontags that block @deprecatedred, 1 failed / 5 passedgit diff --stat1 deletiontype-checkexit 2 —error TS2724: '"../index.js"' has no exported member named 'PluginComponentInput'Both legs restored via an
EXIT INT TERMtrap, restoration confirmed by content grep and cleangit status.Worth stating because it is the interesting half: under the second ablation the type-level case passed in vitest (types erase at runtime) and was caught only by
type-check. That is why the pin has both a text leg and a type leg, and whytsconfig.test.jsonbeing chained from this package'stype-checkscript is load-bearing rather than decorative.The pin reads source text, not
dist/— same constraintpackage-exports-manifest.test.tsrecords: the per-PRtestjob runs with no build of the package under test ahead of it (turbo'stesttaskdependsOn: ["^build"], the dependency closure only), so adist/-reading test would be vacuously absent-or-red on a cold cache.Verification
All exit codes captured before any pipe; verdicts quoted from what each gate printed. Union re-run against the final commit
2f7d66c2bwith a clean working tree.check-changeset-presence.mjscheck-changeset-no-major.mjsmajorbump.check-changeset-fixed.mjscheck-control-bytes.mjscheck-spec-symbol-derivation.mjscheck-package-self-import.mjscheck-published-dist-tooling.mjspnpm --filter @object-ui/types type-checktsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json, script name echoed, noerror TSpnpm vitest run --project unit packages/types/Lint narrowing, declared. Repo-wide
eslint .was not run locally; CI runs the farm regardless. Narrowed to the three changed files, with the three pieces of evidence a narrowing needs: (1) the population came from eslint's own resolved config (--print-config), not a guess about which files count; (2) the file count came from--format json— 3 files, 0 errors, 8 warnings; (3) type-aware linting is not enabled (parserOptionsresolves to{}, noproject/projectService), so this diff cannot move the verdict on any file it does not touch. Baseline control: the same files atorigin/mainproduce the same 8no-explicit-anywarnings inplugin-scope.ts, at line numbers offset by exactly this diff's insertions (184→193, 247→256). Zero findings introduced.Also self-scanned for control bytes beyond the gate:
grep -naP '[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]'over all four changed files, no matches.Bump
patchon@object-ui/types— additive doc only, no type change, no removal. Stage 2's removal is theminor.Scope
Fenced to the alias line and what the precedent requires alongside it.
ComponentInputitself is untouched; #5671's work is not folded in. One adjacent edit is included and is not drive-by:plugin-scope.ts's doc block justified the re-export becauseindex.ts' alias "keeps naming a real export" — left as-is it would tell the next reader the alias is load-bearing on the day it became deprecated. It now records the deprecation, and flags that the re-export is a separate binding from the file'simport type(the import typesComponentMeta.inputsand stays; the re-export goes dead with the alias). The whole diff is 19 insertions, 0 deletions across the two source files.An adjacent zero-consumer export noticed during the search was filed as a separate card and deliberately left alone here — see #5893, where
ComponentMetais shown to have two published declarations already diverged bytags/description. It is not the same shape as this one: still a structural copy, not an alias, so it needs convergence before any retirement question applies.Generated by Claude Code