(chore) bump typescript to 4.3 and support semantic tokens on js (#1032)
(fix) more robust mapping for Svelte diagnostics (#1035)
(breaking) be more strict with required props (#1030)
Breaking Change
Previously, properties that had no initializer were only required if the user was using both TypeScript and activated strict mode. This is changed now: People using TypeScript, and those using checkJs also in JavaScript files, will always see this behavior now.
The fix is to provide a default value for properties that are optional. That's either the specific value kind or undefined.
Example TS:
export let optional: string;
Becomes
export let optional: string = ''; (or just export let optional = '')
Example JS:
export let optional;
Becomes
export let optional = undefined;
If you don't have control over the code because it's from a library, ask the author of that library to adjust their code. In the meantime you can create a d.ts file where you specify the types yourself.
Example:
<script>
import { Foo } from 'package';
import Bar from 'package/File.svelte';
</script>
Create a .d.ts file:
declare module 'package' {
import { SvelteComponentTyped } from 'svelte';
export class Foo extends SvelteComponentTyped<{..props definition here..}> {}
}
declare module 'package/File.svelte' {
import { SvelteComponentTyped } from 'svelte';
export default class Bar extends SvelteComponentTyped<{..props definition here..}> {}
}
language-server-0.13.9
(perf) add cancellation support to some possibly long running operations (#1028)
(fix) remove duplicate file extension on json import (#1029)
(chore) pin version of svelte2tsx to 0.1.x
language-server-0.13.8
(fix) add new import to existing import in module script when both scripts present (#1007)
(fix) adjust organize imports mapping to not produce extra lines (#1008)
(fix) more robust language detection for syntax highlighting (#964)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps svelte-language-server from 0.13.5 to 0.14.0.
Release notes
Sourced from svelte-language-server's releases.
... (truncated)
Commits
82451d3
(fix) more robust mapping for Svelte diagnostics (#1035)ce4ba4e
(chore) bump typescript to 4.3 and support semantic tokens on js (#1032)383c9a2
(breaking) be more strict with required props (#1030)8669680
(fix) fill-rule instead of fillRule0b005e2
feat(svelte2tx): add aria jsx type declarations (#957)d39c3c0
(pref) only try to resolve on our own if filename ends with.svelte
48d6f70
Adds missing comma to completion message (#1031)cc200f8
(chore) pin version of svelte2tsx2023685
(fix) duplicate file extension on json import (#1029)a01c3f7
(chore) update lockfileDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)