Skip to content

feat(release): гейт runtime-поверхности экспортов - #89

Merged
lemone112 merged 1 commit into
masterfrom
feat/runtime-export-surface-snapshot
Aug 24, 2026
Merged

feat(release): гейт runtime-поверхности экспортов#89
lemone112 merged 1 commit into
masterfrom
feat/runtime-export-surface-snapshot

Conversation

@lemone112

Copy link
Copy Markdown
Contributor

Закрывает остаток CONTRACT-PREP-01: d.ts snapshots не видят runtime-only экспорты после stripInternal.

  • release/export-surface.json — generated SSOT фактических sorted ESM exports для всех subpath из release/contract.json (entrypoints не дублируются вручную).
  • generator + checker: exact added/removed diff, отсутствие snapshot fail-closed, auto-update в verify нет.
  • 5 fixture tests: green, hidden runtime leak, removed export, missing snapshot, deterministic generate→check.
  • RED на живом репо: /** @internal */ export const hiddenLeak — d.ts чист, runtime export появился, checker exit 1; restore→green.

Verify exact head: 72 files / 817 tests, exit 0 (локально; авторитет — CI PR).

Снапшот release/export-surface.json фиксирует фактические ESM-экспорты
dist по entrypoints из release/contract.json. d.ts со stripInternal
скрывает @internal-утечки — runtime-модуль нет; чекер сравнивает
dynamic-import-поверхность со снапшотом точно, без автообновления.
generate:export-surface — единственный путь осознанного изменения.
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 47 minutes.

View limit details

Limit details: You’ve used the included review currently available. Your 107 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3a6229b5-7d31-4a75-8c3c-9824febfd39d

📥 Commits

Reviewing files that changed from the base of the PR and between 699fb32 and 83acbd3.

📒 Files selected for processing (6)
  • package.json
  • release/export-surface.json
  • scripts/check-export-surface.js
  • scripts/generate-export-surface.js
  • scripts/lib/export-surface.js
  • tests/check-export-surface.test.js

Comment @coderabbitai help to get the list of available commands.

@lemone112
lemone112 merged commit b5b5550 into master Aug 24, 2026
7 checks passed
@lemone112
lemone112 deleted the feat/runtime-export-surface-snapshot branch August 24, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant