Skip to content

Latest commit

 

History

History
182 lines (86 loc) · 6.61 KB

File metadata and controls

182 lines (86 loc) · 6.61 KB

@sveltejs/sv-utils

1.0.0-next.4

Patch Changes

  • fix: bump esrap to 2.3.6 to preserve generic type arguments and annotations during sveltekit-3 migrations (#1294)

1.0.0-next.3

Patch Changes

  • feat: expose isRangeWithin to check if a version range is fully covered by another (#1195)

1.0.0-next.2

Patch Changes

  • fix: ignore unknown style languages when parsing Svelte code (#1265)

1.0.0-next.1

Patch Changes

  • chore(migrate): bump svelte and esrap (#1259)

1.0.0-next.0

Major Changes

  • breaking: remove the migration-specific libSubpathImports helper (#1241)

  • breaking: remove deprecated utilities and properties (#1184)

Minor Changes

  • feat: allow js.function.call to accept AST expression nodes as arguments (#1232)

Patch Changes

  • fix: make named import helpers handle duplicate, aliased, and repeated imports correctly (#1232)

  • chore(deps): replace semver with verkit (#1186)

  • feat: add more helpers for analyzing and manipulating ASTs (#1236)

  • feat: expose the full ast from svelteConfig.read (#1138)

  • docs(svelte-config): fix incorrect documentation about default config file (#1138)

0.3.3

Patch Changes

  • feat: add SvelteKit 3 helpers - isKit3, resolveLibPrefix, libSubpathImports (#1199)

0.3.2

Patch Changes

  • fix: recognize the nub package manager (#1187)

0.3.1

Patch Changes

  • feat(env): add defineEnv().importEnv to import from the environment module ($app/env declared, $app/environment legacy) without branching on mode (#1150)

  • fix: prevent parseExpression from duplicating nearby comments (#1146)

0.3.0

Minor Changes

  • Add defineEnv helper for version-aware environment variable access ($app/env or legacy $env) (#1122)

  • Add svelteConfig helper (find, read, edit) to locate and edit the svelte config whether it lives in svelte.config.{js,ts} or the sveltekit() call in vite.config.{js,ts} (#1119)

0.2.2

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)

0.2.1

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)

0.2.0

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)

0.1.0

Minor Changes

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

0.0.5

Patch Changes

  • feat(sv-utils): all semantic colors now accept string | string[] (#1024)

0.0.4

Patch Changes

  • refactor: move files utilities to @sveltejs/sv-utils (#1002)

  • feat: add transform api to simplify add-on creation (#1001)

0.0.3

Patch Changes

  • feat: add color hidden (#966)

0.0.2

Patch Changes

  • fix: more robust handling of non-idiomatic Vite configs (#942)

  • feat: creation of @sveltejs/sv-utils to build addons (experimental) (#917)