sublimelsp / LSP-svelte

Convenience plugin for Svelte Language Tools
MIT License
16 stars 0 forks source link

Chore: Bump svelte-language-server from 0.13.5 to 0.14.0 in /server #50

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps svelte-language-server from 0.13.5 to 0.14.0.

Release notes

Sourced from svelte-language-server's releases.

language-server-0.14.0

  • (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)
  • (fix) better css error diagnostics (#1009)
  • (fix) better import completion locations (#1011)

... (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 fillRule
  • 0b005e2 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 svelte2tsx
  • 2023685 (fix) duplicate file extension on json import (#1029)
  • a01c3f7 (chore) update lockfile
  • Additional commits viewable in compare view


Dependabot compatibility score

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)
dependabot[bot] commented 3 years ago

Superseded by #51.