Releases: carbon-design-system/sveld
Releases · carbon-design-system/sveld
v0.8.3
- replace backslashes with slashes on Windows when reading Svelte files using the glob method (PR #39, contributed by @berndfuhrmann)
v0.8.2
- write constant props as accessors in the
SvelteComponentTyped
interface
v0.8.1
- 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
Features
- use
svelte-preprocess
to preprocess TypeScript in Svelte files and remove style
blocks (e8885b9, #31 contributed by @jelib3an)
Fixes
v0.7.0
- add a
glob
option to resolve Svelte files from entry file exports using fast-glob
(default is false
)
v0.6.1
Fixes
- use parsed exports to determine module name, Svelte source file path
v0.6.0
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
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
Fixes
- test colon when clamping keys