Skip to content

Releases: manzt/anywidget

@anywidget/types@0.1.3

26 Jun 15:35
a0ee1eb
Compare
Choose a tag to compare

Patch Changes

  • feat: Infer event payloads from model (272782b)

anywidget@0.5.3

22 Jun 17:02
db716c3
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [581e40c]:
    • @anywidget/types@0.1.2

@anywidget/types@0.1.2

22 Jun 17:02
db716c3
Compare
Choose a tag to compare

Patch Changes

  • feat: Autocomplete event names for known model events (#151)

    /**
     * @typedef Model
     * @prop {number} value - the current count
     */
    
    /** @type {import("@anywidget/types").Render<Model>} */
    export function render({ model, el }) {
      model.on("change:value", () => { /* ... */);
               // ^ auto-completed in editor
    }

anywidget@0.5.2

19 Jun 15:34
4567f30
Compare
Choose a tag to compare

Patch Changes

  • fix: re-expose model.send for custom messages (#146)

  • Updated dependencies [5a5787b, 774f139]:

    • @anywidget/vite@0.1.1
    • @anywidget/types@0.1.1

@anywidget/vite@0.1.1

19 Jun 15:34
4567f30
Compare
Choose a tag to compare

Patch Changes

  • fix: Support refreshing muliple contexts (#144)

@anywidget/types@0.1.1

19 Jun 15:34
4567f30
Compare
Choose a tag to compare

Patch Changes

  • fix: re-expose model.send for custom messages (#146)

anywidget@0.5.1

18 Jun 16:43
d955163
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [79098be]:
    • @anywidget/vite@0.1.0

anywidget@0.5.0

18 Jun 15:50
b5b98c5
Compare
Choose a tag to compare

Minor Changes

  • feat: restrict backbone model access in render context (#140)

  • feat!: Limit view fields exposed to render function (#138)

    BREAKING: The render function's argument has been refactored from a full AnyView to a simple object. This object only exposes the model and el fields to the user-provided render function. This change aims to simplify the API and reduce potential misuse. Please ensure your render function only depends on these fields.

Patch Changes

@anywidget/vite@0.1.0

18 Jun 16:43
d955163
Compare
Choose a tag to compare

Minor Changes

  • fix: Support new user render context (#142)

@anywidget/types@0.1.0

18 Jun 15:50
b5b98c5
Compare
Choose a tag to compare

Minor Changes

  • feat: restrict backbone model access in render context (#140)

  • feat!: Limit view fields exposed to render function (#138)

    BREAKING: The render function's argument has been refactored from a full AnyView to a simple object. This object only exposes the model and el fields to the user-provided render function. This change aims to simplify the API and reduce potential misuse. Please ensure your render function only depends on these fields.