Skip to content

Releases: carbon-design-system/sveld

v0.8.3

29 Jul 11:46
Compare
Choose a tag to compare
  • replace backslashes with slashes on Windows when reading Svelte files using the glob method (PR #39, contributed by @berndfuhrmann)

v0.8.2

11 Jul 14:05
Compare
Choose a tag to compare
  • write constant props as accessors in the SvelteComponentTyped interface

v0.8.1

10 Jul 15:26
Compare
Choose a tag to compare
  • type function declarations as accessors in the SvelteComponentTyped interface
  • omit module name from generated TypeScript class if it's the reserved keyword "default"
  • move typescript to direct dependencies

v0.8.0

17 Jun 12:01
Compare
Choose a tag to compare

Features

  • use svelte-preprocess to preprocess TypeScript in Svelte files and remove style blocks (e8885b9, #31 contributed by @jelib3an)

Fixes

v0.7.1

20 Feb 13:10
Compare
Choose a tag to compare

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