@sveltejs/package@3.0.0

Wei-Shaw/sub2api@sveltejs/package@3.0.0Oct 1, 2026by github-actions[bot]

Upgrading?

AI Summary

A major version bump requiring Node 22 or newer, removing internal dependencies on `sade` and `kleur`, and introducing warnings for unimported server files.

Key Highlights

  • Requires Node 22 or newer
  • Removed dependencies on `sade` and `kleur`
  • Warns when using `.server.` files without importing a server-only module
  • Transforms import aliases into relative imports

Breaking Changes

  • require Node 22 or newer

New Features

  • warn when using a `.server.` file or file inside a `server` directory without importing a server-only module
  • transform import aliases into relative imports in files

Full Release Notes

### Major Changes

- breaking: require Node 22 or newer ([#12548](https://github.com/sveltejs/kit/pull/12548))

### Minor Changes

- feat: warn when using a `.server.` file or file inside a `server` directory without importing a server-only module ([#16266](https://github.com/sveltejs/kit/pull/16266))

- feat: transform import aliases into relative imports in files ([#16360](https://github.com/sveltejs/kit/pull/16360))

### Patch Changes

- chore: remove dependency on sade ([#16619](https://github.com/sveltejs/kit/pull/16619))

- chore: bump `svelte2tsx` to 0.7.59 ([#16745](https://github.com/sveltejs/kit/pull/16745))

- fix: rewrite `.ts` extensions in `import.meta.glob` patterns when `rewriteRelativeImportExtensions` is enabled ([#16776](https://github.com/sveltejs/kit/pull/16776))

- chore: replace private fs helpers with Node built-ins ([#16610](https://github.com/sveltejs/kit/pull/16610))

- chore: read the Svelte config via `@sveltejs/load-config` ([#17039](https://github.com/sveltejs/kit/pull/17039))

- chore: remove dependency on kleur ([#12548](https://github.com/sveltejs/kit/pull/12548))

- fix: import resolved peer dependencies as file URLs so project-relative resolution works on Windows ([#16618](https://github.com/sveltejs/kit/pull/16618))

- fix: emit declarations when the tsconfig lives above the package root ([#16568](https://github.com/sveltejs/kit/pull/16568))

- chore: bump `svelte2tsx` to 0.7.60 ([#16761](https://github.com/sveltejs/kit/pull/16761))

- fix: declare typescript as an optional peer dependency so svelte-package works under strict node-linkers ([#16073](https://github.com/sveltejs/kit/pull/16073))

Related Repositories