Releases: sveltejs/language-tools
Releases · sveltejs/language-tools
language-server-0.17.1
- breaking(svelte5): only generate function component shape in runes mode (#2517). This means you can no longer just do
Component
in type positions. Instead you need to prepend it withtypeof
. Here's how you do it:- ...when typing a component instance: Before:
let x: Component
. After:let x: ReturnType<typeof Component>
- ...when typing a component constructor/function: Before
let x: typeof Component
. Afterlet x: typeof Component
(no change)
- ...when typing a component instance: Before:
- fix: include files indirectly belonging to a project into correct project (#2488)
- fix: check project files update more aggressively before assigning service (#2518)
- chore: upgrade to chokidar 4 (#2502)
extensions-109.0.2
- breaking(svelte5): only generate function component shape in runes mode. This means you may need to do
typeof Component
instead ofComponent
in type situations (#2517) - fix: update SvelteKit trailingSlash types (#2496)
- fix: revert additional two-way-binding checks as they were causing bugs (#2508)
- fix: include files indirectly belonging to a project into correct project (#2488)
- fix: check project files update more aggressively before assigning service (#2518)
- chore: upgrade to chokidar 4 (#2502)
- perf: auto import cache for svelte-kit language service proxy (#2513)
svelte-check-4.0.2
- fix: ensure components typed through Svelte 5's
Component
interface get proper intellisense
extensions-109.0.1
- fix: ensure components typed through Svelte 5's
Component
interface get proper intellisense
svelte2tsx-0.7.19
- fix: ensure components typed through Svelte 5's
Component
interface get proper intellisense
svelte2tsx-0.7.18
- fix: remove ancient
process
augmentation from internald.ts
file
svelte-check-4.0.1
- fix: remove ancient
process
augmentation from internald.ts
file
typescript-plugin-0.3.41
- chore: slight changes to how Svelte module resolution works; .svelte files now take precedence over .svelte.js/ts files (if both exist) (#2481)
svelte-check-4.0.0
- chore: bump magic-string (#2476)
- chore: switch from fast-glob to fdir (#2433)
- fix: detect <script module> tag (#2482)
- feat: better type checking for bindings in Svelte 5 (#2477)
- feat: replace svelte-preprocess with barebones TS preprocessor (#2452)
- feat: project reference support (#2463)
Breaking changes
- require Svelte 4 or later (#2453)
- make TypeScript a peer dependency, require TS 5 or later (#2453)
- require node 18 or later (#2453)
process
augmentation (declaring aprocess.browser
field) was removed- slight changes to how files are assigned to which tsconfig.json (#1234, #2463)
- slight changes to how Svelte module resolution works;
.svelte
files now take precedence over.svelte.js/ts
files (if both exist) (#2481) - language-server now forces fewer TypeScript options. Most notably
skipLibCheck
is no longer forced totrue
, which may result ind.ts
files now being checked in your project, which they were not before, revealing type errors. Either fix those or add"skipLibCheck": true
to yourtsconfig.json
(#1976, #2463)
extensions-109.0.0
- chore: bump magic-string (#2476)
- chore: switch from fast-glob to fdir (#2433)
- fix: detect <script module> tag (#2482)
- feat: better type checking for bindings in Svelte 5 (#2477)
- feat: replace svelte-preprocess with barebones TS preprocessor (#2452)
- feat: project reference support (#2463)
- feat: allow autoImportFileExcludePatterns to ignore files outside the root (#2480)
Breaking changes
- use Svelte 4 as built-in version now (#2475)
- bump vs code ls/client version to 9 (#2475)
- require VS Code 1.82 or later (#2475)
- slight changes to how files are assigned to which tsconfig.json (#1234, #2463)
- slight changes to how Svelte module resolution works;
.svelte
files now take precedence over.svelte.js/ts
files (if both exist) (#2481) - language-server now forces fewer TypeScript options. Most notably
skipLibCheck
is no longer forced totrue
, which may result ind.ts
files now being checked in your project, which they were not before, revealing type errors. Either fix those or add"skipLibCheck": true
to yourtsconfig.json
(#1976, #2463)