js
js copied to clipboard
chore(deps): update dependency svelte-check to v4
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
svelte-check | ^3.6.0 -> ^4.0.0 |
Release Notes
sveltejs/language-tools (svelte-check)
v4.0.4
- fix: relax component constructor type (#​2524)
v4.0.3
- 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: 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)
v4.0.2
- fix: ensure components typed through Svelte 5's
Component
interface get proper intellisense
v4.0.1
- fix: remove ancient
process
augmentation from internald.ts
file
v4.0.0
- chore: bump magic-string (#​2476)
- chore: switch from fast-glob to fdir (#​2433)
- fix: detect
- 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)
v3.8.6
- fix: support Svelte 5 module script attribute (#​2473)
v3.8.5
- chore: bump html/css language service (#​2424)
- chore: better "cannot use bind:" error message (#​2429)
- fix: no implicit children prop when using slot (#​2427)
- fix: correctly handle HTML between implicit snippet props (#​2450)
- fix: correctly scope snippet declarations (#​2449)
- fix: make it possible to type snippet parameters using JSDoc (#​2449)
- fix: add legacy methods to own component shape (#​2451)
v3.8.4
- fix: ensure bindings and exports work properly for Svelte 5 + TS5.5
v3.8.3
- fix: detect root snippets correctly
- fix: prevent false positive store declarations (#​2422)
v3.8.2
- chore: reduce dependencies (#​2413) (#​2400)
- fix: handle snippets with typed arguments (#​2412)
- fix: handle optional arguments in snippets (#​2414)
v3.8.1
- fix: adjust ambient module snipping logic
- chore: speed up regex
v3.8.0
- fix: allow for whitespace in snippets declaration (#​2366)
- fix: allow
as
expressions for bindable props (#​2372) - fix: force correct semantic tokens for $props types (#​2379)
- feat: Svelte 5 component class/function interop (#​2380)
v3.7.1
- fix: rework bindable types strategy (#​2361)
v3.7.0
- feat: mark only properties as bindable that were declared using
$bindable()
in Svelte 5 runes mode (#​2336) - chore: better Svelte 5 interop (#​2336)
- fix: preserve event attribute casing in Svelte 5 (#​2347)
- fix: handle
#await
inside#snippet
(#​2348) - fix: better
bind:group
transformation (#​2349) - fix: handle boolean css var (#​2350)
v3.6.9
- fix: ensure type widening for
bind:group
- perf: improve perf in deleteUnresolvedResolutionsFromCache (#​2320)
- fix: adjust for moved compiler file in Svelte 5 (#​2327)
v3.6.8
- chore: support TypeScript 5.4 (#​2313)
- fix: allow falsy values for render tags
v3.6.7
- fix: use type instead of generic for
$props()
(#​2314)
v3.6.6
- fix: adjust render tag for latest AST version
v3.6.5
- fix: adjust $props() comment type logic (#​2294)
- fix: use Svelte 4 compiler from user when available
- fix: adjust snippet helper type to new snippet API
- fix: also take type argument into account when analyzing $props()
- fix: don't add form type to zero types when property is not typed out
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.