Repository navigation
chore(api-report): regenerate the core and richtext API reports - #9344
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
This is ready to merge: both reports match a fresh pnpm build && pnpm api:report on this branch, and every changed row traces to a current spec claim. One follow-up belongs outside this pull request. The generator reads only FieldStatus's first overload, the deprecated variant: 'tooltip' one, so the core report now shows the whole component as @deprecated with a required variant. Having componentProps in scripts/api-report/generate.mjs read the last call signature, then regenerating, would correct those rows.
[Automated review]
| component FieldStatus @deprecated | ||
| prop message: string | ||
| prop ref?: React.Ref<HTMLDivElement> | ||
| prop type: InputStatusType | ||
| prop variant?: FieldStatusVariant = 'attached' | ||
| prop variant: FieldStatusVariant = 'attached' |
There was a problem hiding this comment.
These two rows come from FieldStatus's first overload, the deprecated variant: 'tooltip' one (FieldStatus.tsx:149-157). The signature ordinary calls resolve to is not deprecated, and its variant? stays optional. componentProps in scripts/api-report/generate.mjs reads getCallSignatures()[0], so the fix belongs in a generator follow-up, not in this file (a hand edit would fail --check).
Maintainer impact
Why. The committed API reports for
coreandrichtextwere last generated in #9241. Two later pull requests changed the public surface without regenerating them. Every pull request since then is compared against those stale reports, so its PR report shows the same 29 inherited "API changes" rows plus "report stale". Reviewers see 29 rows that are not theirs, and a real API change is easy to miss among them.Intended invariant
architecture:public-component-apiINV24: each published package has one committed report, generated bypnpm api:reportfrom its build. This pull request only re-runs that command on currentmain. No generator, workflow, or package source changes.Change
What.
pnpm build && pnpm api:reportonmain, committing the two reports that changed. The other nine published packages' reports were already current.Rows that changed since #9241, and the pull request that introduced each:
@astryxdesign/core: 8 added, 20 changed, 0 removedstatusVariant?: FieldStatusVariant→FieldStatusPlacementon ComplexSelector, DateInput, DateRangeInput, Field, FileInput, MultiSelector, NumberInput, PowerSearch, Selector, TextArea, TextInput, TimeInput, Tokenizer, Typeahead (14 rows)UseInputStatusIconOptions.statusVariant→FieldStatusPlacementFieldStatusmarked@deprecated;FieldStatus.variantnow listed as required in the component rowFieldStatusVariantMap.tooltipmarked@deprecatedFieldStatusPropsheading, + its six members (message,ref,type,variant,xstyle,inherits) now listed under Typesinterface SearchContext<T>(root entry, also re-exported from./Typeahead)SearchSource.search(query, context?: SearchContext<T>)@astryxdesign/richtext: 0 added, 1 changed, 0 removedRichTextEditor.statusVariant?: FieldStatusVariant | 'tooltip'All other published packages: no change.
Risk
Low. Two generated Markdown files change; nothing ships, builds, or runs from them. If a row is wrong, the next
pnpm api:reportcorrects it. This does not stop drift from coming back; a separate pull request changes the PR report to compare built surfaces.Evidence
node scripts/api-report/cli.mjs --checkonmainexits 1 withcoreandrichtextstale; PR reports show 29 inherited rows.--checkexits 0 for all eleven published packages.packages/core/api-report.mdandpackages/richtext/api-report.mdchange.Scope
Testing
pnpm build, thenpnpm api:report:wrotefor core and richtext,unchangedfor the other nine.node scripts/api-report/cli.mjs --changes --base 13412a4df24(the ci: each published package commits a generated public API report, with advisory API changes for the PR report #9241 merge) lists exactly the 29 rows above.git log -Son each changed name between ci: each published package commits a generated public API report, with advisory API changes for the PR report #9241 andmain.