Skip to content

Releases: carbon-design-system/sveld

v0.18.0

22 Oct 20:38
Compare
Choose a tag to compare

Breaking Changes

  • remove sveltekit:* attributes from type definitions (ce06f35, #96)

Features

  • support @slot tag descriptions for named slots (f2ad4aa, #100)
  • support @event tag descriptions (0f04d91, #99)

v0.17.2

13 Jun 14:59
Compare
Choose a tag to compare

Fixes

v0.17.1

03 Jun 01:20
Compare
Choose a tag to compare

Fixes

  • use correct type for forwarded cut/copy/paste events (0dc6cf8, #92)

v0.17.0

21 May 20:17
Compare
Choose a tag to compare

Breaking Changes

  • remove @required tag; directly infer if a prop is required (06997cf, #91)

    Input

    /**
      * @type {boolean}
      */
    export let prop;

    Output

    export interface InputProps {
      /**
      * @default undefined
      */
      prop: boolean;
    }

v0.16.1

20 May 15:21
Compare
Choose a tag to compare

Fixes

v0.16.0

20 May 00:53
Compare
Choose a tag to compare

Features

v0.15.3

14 May 19:32
Compare
Choose a tag to compare

Fixes

  • preserve JSDoc tags in prop comments (456e740, #87)

    Input

    /**
      * This is a comment.
      * @see https://github.com/
      * @deprecated this prop will be removed in the next major release.
      * @type {boolean | string}
      */
    export let prop = true;

    Output

    export interface InputProps {
      /**
      * This is a comment.
      * @see https://github.com/
      * @deprecated this prop will be removed in the next major release.
      * @default true
      */
      prop?: boolean | string;
    }

v0.15.2

13 May 16:29
Compare
Choose a tag to compare

Fixes

  • dispatched event type without detail should default to null, not any (2dc1d53, #86)

    Input

    dispatch("event");

    Output

    - event: CustomEvent<any>;
    + event: CustomEvent<null>;

v0.15.1

02 May 02:29
Compare
Choose a tag to compare

Fixes

  • function exported from <script context="module"> should be typed as functions, not types

    Input

    <script context="module">
      /** @type {(message: string) => void} */
      export function log(message) {
        console.log(message);
      }
    </script>

    Output (before/after)

    - export type log = (message: string) => void;
    + export declare function log(message: string): void;

    Usage

    import { log } from "./Component.svelte";
    
    // invocation
    log("message");
    
    // typing
    const logger: typeof log = (m) => console.log(m);

v0.15.0

15 Apr 03:02
Compare
Choose a tag to compare

Features

  • add jsonOptions.outDir option to emit JSON files for individual components (16c33ad, #78 contributed by @mean2me)
  • add sveltekit:reload attributes to props that extend a attributes