Skip to content

Releases: carbon-design-system/sveld

v0.7.0

06 Feb 22:05
Compare
Choose a tag to compare
  • add a glob option to resolve Svelte files from entry file exports using fast-glob (default is false)

v0.6.1

10 Jan 01:26
Compare
Choose a tag to compare

Fixes

  • use parsed exports to determine module name, Svelte source file path

v0.6.0

09 Jan 23:55
Compare
Choose a tag to compare

Features

  • use acorn to parse/create TypeScript exports
  • use fast-glob to collect all *.svelte files from the Svelte source folder specified in package.json#svelte
  • format TS definitions using a prettier printWidth of 80 instead of 120

Breaking Changes

  • filePath in generated JSON output is relative instead of absolute (normalized using path.normalize)

v0.5.0

05 Dec 17:13
Compare
Choose a tag to compare

Features

  • generate TypeScript definitions to use SvelteComponentTyped interface instead of SvelteComponent

Breaking Changes

  • users will require Svelte version >=3.31 to consume generated TypeScript definitions

v0.4.2

25 Nov 23:20
Compare
Choose a tag to compare

Fixes

  • test colon when clamping keys

v0.4.1

25 Nov 23:15
Compare
Choose a tag to compare

Fixes

  • clamp slot/event keys in TypeScript definitions

v0.4.0

25 Nov 22:56
Compare
Choose a tag to compare

Features

  • Output format for TypeScript definitions extends SvelteComponent instead of stubbing class internals used by the Svelte Language Server

Breaking Changes

  • Requires svelte version 3.30 or greater

v0.3.0

25 Nov 17:49
Compare
Choose a tag to compare

Features

  • Export component typedefs in TypeScript definitions

v0.2.1

19 Nov 20:41
Compare
Choose a tag to compare

Fixes

  • Extend interface for empty props use case

v0.2.0

19 Nov 20:29
Compare
Choose a tag to compare

Features

  • Support @extends JSDoc syntax to extend imported component prop interfaces