Skip to content

Releases: sveltejs/cli

sv@0.15.3

08 May 09:00
c149f41

Choose a tag to compare

Patch Changes

  • fix(sveltekit-adapter): register workerd and sharp as pnpm allow-builds when the cloudflare adapter is selected (#1085)

  • fix(sv): resolve package manager before applying add-ons so pnpm-only logic in add-ons (drizzle, tailwindcss, sveltekit-adapter) actually runs. Also soften pnpm ERR_PNPM_IGNORED_BUILDS to a warning instead of failing the install. (#1085)

  • Updated dependencies [e3595a8, a991697, 2c4a157, 2917f88]:

    • @sveltejs/sv-utils@0.2.2

@sveltejs/sv-utils@0.2.2

08 May 09:00
c149f41

Choose a tag to compare

Patch Changes

  • fix: js.common.appendFromString no longer corrupts the output when called multiple times with comments (#1081)

  • fix: prevent js.exports.createNamed from crashing when the AST contains an exported function or class declaration (#1084)

  • fix: js.imports.addNamed now respects isType when merging into an existing import declaration (#1080)

  • fix: js.object.create no longer corrupts the AST when an object value contains a type property (#1082)

sv@0.15.2

29 Apr 11:30
19ed7a0

Choose a tag to compare

Patch Changes

  • fix(drizzle): don't cancel if D1 is selected without @sveltejs/adapter-cloudflare, but add info to next steps (#1071)

  • fix(sv): skip add-ons when a dependsOn dependency cancels (#1071)

  • fix(sv): scope @deprecated tag to the legacy create(cwd, options) overload only (#1064)

  • fix(playwright): move playwright install from prepare to test:e2e script (#1072)

  • feat(sv): improve vitest v3 detection (#1073)

  • fix(sv): align eslint version to 10 accross all addons (#1069)

  • Updated dependencies [d753ce6, e94734e, 65d8f01]:

    • @sveltejs/sv-utils@0.2.1

@sveltejs/sv-utils@0.2.1

29 Apr 11:30
19ed7a0

Choose a tag to compare

Patch Changes

  • add minVersion & coerceVersion from semver. Deprecate splitVersion (#1069)

  • handle pnpm@11: add pnpm.allowBuilds helper that auto-detects the installed pnpm version and writes to allowBuilds (pnpm 11+) or the legacy onlyBuiltDependencies list (pnpm 10). Deprecate pnpm.onlyBuiltDependencies (#1074)

  • improve svelte version detection (#1075)

sv@0.15.1

10 Apr 11:34
a260374

Choose a tag to compare

Patch Changes

  • fix(adapter-cloudflare): use --check flag for wrangler types in check/build scripts (#1057)

  • fix(cli): deprecated file warnings no longer trigger on object spread (#1060)

sv@0.15.0

08 Apr 06:26
6070bf3

Choose a tag to compare

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.
  • remove: devtools-json add-on as SvelteKit will silently 404 Chrome DevTools workspaces request. You can still add vite-plugin-devtools-json manually if needed. (#1047)

  • feat: replace sv.pnpmBuildDependency with sv.file + pnpm.onlyBuiltDependencies helper and file.findUp (#1037)

Patch Changes

  • feat(sv): bump all templates to use vite 8 (#1005)

  • fix(paraglide): type and lint errors (#1049)

  • feat(sv): bump all templates to use typescript 6 (#1055)

  • chore(cli): bump defaults versions (#1056)

  • Updated dependencies [baba23f, 37a701e, aead922]:

    • @sveltejs/sv-utils@0.2.0

@sveltejs/sv-utils@0.2.0

08 Apr 06:26
6070bf3

Choose a tag to compare

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)

sv@0.14.1

06 Apr 14:48
71f5d0c

Choose a tag to compare

Patch Changes

  • chore: simplify runes option (#1039)

  • fix(playwright): auto-install Playwright browsers via prepare script (#1041)

sv@0.14.0

03 Apr 18:50
916f9b7

Choose a tag to compare

Minor Changes

  • feat: community add-ons are now experimental (#1020)

Patch Changes

  • Updated dependencies [c0e5831]:
    • @sveltejs/sv-utils@0.1.0

@sveltejs/sv-utils@0.1.0

03 Apr 18:50
916f9b7

Choose a tag to compare

Minor Changes

  • feat: community add-ons are now experimental (#1020)