Minor Changes
-
feat: decouple sv / sv-utils, explicit public API, deprecation pass (#1046)
@sveltejs/sv-utils- Rename file helpers:
readFile->loadFile,writeFile->saveFile,getPackageJson->loadPackageJson - Add
pnpm.onlyBuiltDependencies()transform forpnpm-workspace.yaml - Export
YamlDocumenttype from parsers - Remove
commonFilePaths,installPackages(moved internal tosv)
svcreate()signature changed tocreate({ cwd, ...options }). The oldcreate(cwd, options)is deprecated and will be removed in the next major release.sv.pnpmBuildDependency()is deprecated and will be removed in the next major release. Usesv.file()withpnpm.onlyBuiltDependencies()from@sveltejs/sv-utilsinstead.workspace.file.prettierignore,.prettierrc,.eslintConfig,.vscodeSettings,.vscodeExtensionsare deprecated and will be removed in the next major release. Use the raw strings directly (e.g.'.prettierignore').- Add
workspace.file.findUp()to locate files by walking up the directory tree. - Add
api-surface.mdsnapshots (auto-generated on build) to track the public API ofsvand@sveltejs/sv-utils. - Remove
setup,createProject,startPreview,addPnpmBuildDependenciesfromsv/testingexports. - Make type exports explicit (no more
export type *). Removed types that were never part of the intended public API:PackageDefinition,Scripts,TestDefinition.
- Rename file helpers:
-
remove:
devtools-jsonadd-on as SvelteKit will silently 404 Chrome DevTools workspaces request. You can still addvite-plugin-devtools-jsonmanually if needed. (#1047) -
feat: replace
sv.pnpmBuildDependencywithsv.file+pnpm.onlyBuiltDependencieshelper andfile.findUp(#1037)