Skip to content

Releases: manzt/anywidget

[email protected]

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

Patch Changes

@anywidget/[email protected]

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
    }

[email protected]

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

Patch Changes

@anywidget/[email protected]

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

Patch Changes

  • fix: Support refreshing muliple contexts (#144)

@anywidget/[email protected]

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

Patch Changes

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

[email protected]

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

Patch Changes

[email protected]

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/[email protected]

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

Minor Changes

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

@anywidget/[email protected]

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.

[email protected]

08 Jun 13:55
8e58991
Compare
Choose a tag to compare

Patch Changes

  • fix: Specify UTF-8 encoding in FileContents.__str__ (#135)

    Fixes an UnicodeDecodeError observed on Windows when special characters are present in _esm or _css elements of a widget.