unstale

npm / @anywidget/types

@anywidget/types

What changed in @anywidget/types 0.4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

3 new APIs and options1 behavior and defaults

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@anywidget/types 0.44 changes

New APIs and options 3

  • render receives a host prop with getModel for resolving a widget reference to its raw model.

    0.4.0release notes

  • render receives a host prop with getWidget, which resolves a child widget by reference and returns its exports and render method.

    0.4.0release notes

  • initialize and render props now include an AbortSignal that is aborted when the widget is destroyed or during HMR, enabling lifecycle cleanup.

    0.4.0release notes

Behavior and default changes 1

  • initialize can return a plain object to expose a programmatic API for the widget; functions remain cleanup callbacks and void means neither.

    0.4.0release notes