Skip to content

chore: reduce sv API surface#1046

Merged
jycouet merged 33 commits intomainfrom
chore/coupling-v2
Apr 6, 2026
Merged

chore: reduce sv API surface#1046
jycouet merged 33 commits intomainfrom
chore/coupling-v2

Conversation

@jycouet
Copy link
Copy Markdown
Contributor

@jycouet jycouet commented Apr 5, 2026

Description

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

jycouet added 22 commits April 4, 2026 00:24
Wire generateApiSurface into each config's build:done (with a shared
counter so it runs once after all parallel builds). Add scripts/
generate-api-surface.js (strip regions, sourceMappingURL, optional JSDoc;
keep @deprecated blocks).

Made-with: Cursor
Snapshots from built .d.mts (baseline before coupling/deprecation work).

Made-with: Cursor
Made-with: Cursor
- sv-utils: add loadFile, saveFile, loadPackageJson; deprecate readFile,
  writeFile, getPackageJson; remove installPackages (logic lives in sv engine).
- sv: inline updatePackages in engine; use new helpers; drop deprecated
  workspace.file paths; addons use string literals; remove stale @deprecated
  on processors/create exports.
- Regenerate api-surface snapshots.

Made-with: Cursor
YamlDocument.get returns unknown; assert minimal shape before reading .items
so tsgo check passes.

Made-with: Cursor
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 5, 2026

🦋 Changeset detected

Latest commit: f712cde

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
sv Minor
@sveltejs/sv-utils Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 5, 2026

Open in StackBlitz

npx https://pkg.pr.new/svelte-migrate@1046
npx https://pkg.pr.new/sv@1046
npx https://pkg.pr.new/@sveltejs/sv-utils@1046

commit: f712cde

@svelte-docs-bot
Copy link
Copy Markdown

@jycouet jycouet marked this pull request as ready for review April 6, 2026 15:30
@jycouet jycouet merged commit baba23f into main Apr 6, 2026
8 checks passed
@jycouet jycouet deleted the chore/coupling-v2 branch April 6, 2026 20:45
@github-actions github-actions bot mentioned this pull request Apr 6, 2026
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.

2 participants