@sveltejs/package@3.0.0
macro-inc/macro@sveltejs/package@3.0.0Oct 1, 2026by github-actions[bot]
Upgrading?
AI Summary
This is a major version bump requiring Node.js 22 or newer, accompanied by significant refactoring of internal dependencies and TypeScript handling.
Key Highlights
- Breaking change: Requires Node 22 or newer to run.
- Breaking change: TypeScript 6 is now the minimum required version.
- Removes dependency on `sade` and `kleur`.
- Transforms import aliases into relative imports.
- Declares TypeScript as an optional peer dependency.
Breaking Changes
- require Node 22 or newer
- TypeScript 6 is now the minimum required version
- remove `@sveltejs/kit/node/polyfills`
- remove deprecated CSRF `checkOrigin` option
New Features
- Warn when using `.server.` files without importing a server-only module
- transform import aliases into relative imports in files
- declare typescript as an optional peer dependency
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
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one