refactor(core): audit @pretable/core public surface; rename GridCore* → Pretable* - #110
Merged
Merged
Conversation
Renames GridCore* → Pretable* at source in @pretable-internal/grid-core and layout-core; collapses @pretable/core's types.ts; replaces PretableGrid's Omit<> leak with an explicit interface; bundledPackages update so api-extractor inlines the renamed types in core.api.md. Headless docs/examples are explicitly deferred per memory. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9 tasks: layout-core rename, grid-core rename (+ renderer-dom), explicit PretableGrid interface, react import update, public_api.ts with TSDoc + @public, api-extractor config update, regenerate .api.md files, README, gates+PR. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Engine-level types now use Pretable* names directly. Internal-only GridCoreStore renamed to PretableEngine to distinguish from the public PretableGrid interface (defined separately in @pretable/core). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replaces extends Omit<GridCoreStore<TRow>, 'options'> with an explicit interface listing every method/property pretable promises. types.ts becomes a re-export shell from the renamed engine types. Also re-exports PretableRowRange via grid-core (which already bridges layout-core), and updates core/index.ts to export PretableGrid from pretable-grid.ts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
types.ts imports core's PretableColumn as PretableBaseColumn to disambiguate from react's own PretableColumn. index.ts re-exports PretableColumn as PretableCoreColumn so react's public surface is unchanged — PR 3 will revisit the surface during the react audit. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds @public TSDoc tags to every symbol exported through @pretable/core's public surface, plus @internal tags on engine-only symbols (PretableEngine, PretableFrame, deriveSelectedRows, rangeContainsCell, layout-core's planning types). index.ts collapses to a single re-export from public_api.ts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ning bundledPackages now inlines @pretable-internal/grid-core and @pretable-internal/layout-core into each report so renamed types appear self-contained. ae-missing-release-tag was 'none' for the PR 1 baseline; flips to 'warning' now that core is fully tagged — provides coverage visibility for PRs 3-5 without failing CI. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…nresolved-link core.api.md: zero ae-forgotten-export warnings; every public symbol annotated @public; PretableGrid is a flat interface. react.api.md: mechanical rename diff (Pretable* names inlined). api-extractor.base.json: ae-missing-release-tag stays at "none" (the spec's flip-to-warning broke api:check — non-local mode treats warnings as fatal, opposite of what the spec assumed). ae-unresolved-link silenced because cross-package {@link createGrid} can't resolve in bundled reports. Tag flip will land in PR 5 once react/ui/stream-adapter are tagged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…nings README mentions headless support; full docs/examples deferred per project_headless_engine_docs_deferred.md memory. Spec correction: api-extractor's non-local mode treats warnings as fatal, so ae-missing-release-tag stays at "none" until PR 5. Also silences ae-unresolved-link for cross-package TSDoc refs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Vercel preview readyPreview: https://pretable-qt7csecn5-cacheplane.vercel.app Updated automatically by the |
6 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
PR 2 of 5 for Tier 1 Sub-project A — Public API Stabilization. Audits `@pretable/core` per PR 2's design spec.
Spec corrections discovered during implementation
Two findings landed back into the spec mid-PR:
Test plan
🤖 Generated with Claude Code