github sveltejs/cli @sveltejs/sv-utils@0.2.0

latest release: sv@0.15.0
14 hours ago

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 for pnpm-workspace.yaml
    • Export YamlDocument type from parsers
    • Remove commonFilePaths, installPackages (moved internal to sv)

    sv

    • create() signature changed to create({ cwd, ...options }). The old create(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. Use sv.file() with pnpm.onlyBuiltDependencies() from @sveltejs/sv-utils instead.
    • workspace.file.prettierignore, .prettierrc, .eslintConfig, .vscodeSettings, .vscodeExtensions are 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.md snapshots (auto-generated on build) to track the public API of sv and @sveltejs/sv-utils.
    • Remove setup, createProject, startPreview, addPnpmBuildDependencies from sv/testing exports.
    • Make type exports explicit (no more export type *). Removed types that were never part of the intended public API: PackageDefinition, Scripts, TestDefinition.
  • feat: replace sv.pnpmBuildDependency with sv.file + pnpm.onlyBuiltDependencies helper and file.findUp (#1037)

Patch Changes

  • fix: svelte.addFragment now accept types (#1049)

Don't miss a new cli release

NewReleases is sending notifications on new releases.