- fix: bump esrap to 2.3.6 to preserve generic type arguments and annotations during sveltekit-3 migrations (#1294)
- feat: expose
isRangeWithinto check if a version range is fully covered by another (#1195)
- fix: ignore unknown style languages when parsing Svelte code (#1265)
- chore(migrate): bump
svelteandesrap(#1259)
-
breaking: remove the migration-specific
libSubpathImportshelper (#1241) -
breaking: remove deprecated utilities and properties (#1184)
- feat: allow
js.function.callto accept AST expression nodes as arguments (#1232)
-
fix: make named import helpers handle duplicate, aliased, and repeated imports correctly (#1232)
-
chore(deps): replace
semverwithverkit(#1186) -
feat: add more helpers for analyzing and manipulating ASTs (#1236)
-
feat: expose the full
astfromsvelteConfig.read(#1138) -
docs(svelte-config): fix incorrect documentation about default config file (#1138)
- feat: add SvelteKit 3 helpers -
isKit3,resolveLibPrefix,libSubpathImports(#1199)
- fix: recognize the
nubpackage manager (#1187)
-
feat(env): add
defineEnv().importEnvto import from the environment module ($app/envdeclared,$app/environmentlegacy) without branching on mode (#1150) -
fix: prevent
parseExpressionfrom duplicating nearby comments (#1146)
-
Add
defineEnvhelper for version-aware environment variable access ($app/envor legacy$env) (#1122) -
Add
svelteConfighelper (find,read,edit) to locate and edit the svelte config whether it lives insvelte.config.{js,ts}or thesveltekit()call invite.config.{js,ts}(#1119)
-
fix:
js.common.appendFromStringno longer corrupts the output when called multiple times with comments (#1081) -
fix: prevent
js.exports.createNamedfrom crashing when the AST contains an exported function or class declaration (#1084) -
fix:
js.imports.addNamednow respectsisTypewhen merging into an existing import declaration (#1080) -
fix:
js.object.createno longer corrupts the AST when an object value contains atypeproperty (#1082)
-
add
minVersion&coerceVersionfromsemver. DeprecatesplitVersion(#1069) -
handle
pnpm@11: addpnpm.allowBuildshelper that auto-detects the installed pnpm version and writes toallowBuilds(pnpm 11+) or the legacyonlyBuiltDependencieslist (pnpm 10). Deprecatepnpm.onlyBuiltDependencies(#1074) -
improve
svelteversion detection (#1075)
-
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:
-
feat: replace
sv.pnpmBuildDependencywithsv.file+pnpm.onlyBuiltDependencieshelper andfile.findUp(#1037)
- fix:
svelte.addFragmentnow accept types (#1049)
- feat: community add-ons are now experimental (#1020)
- feat(sv-utils): all semantic colors now accept
string | string[](#1024)
-
refactor: move files utilities to
@sveltejs/sv-utils(#1002) -
feat: add
transformapi to simplify add-on creation (#1001)
- feat: add color
hidden(#966)