# What changed in @anywidget/types

> 4 changes in @anywidget/types 0.4 from its official release notes, upgrade guides and advisories: 3 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@anywidget/types/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @anywidget/types 0.4

### New APIs and options

- render receives a host prop with getModel for resolving a widget reference to its raw model. (0.4.0) — [release notes](https://github.com/manzt/anywidget/releases/tag/%40anywidget/types%400.4.0)
- render receives a host prop with getWidget, which resolves a child widget by reference and returns its exports and render method. (0.4.0) — [release notes](https://github.com/manzt/anywidget/releases/tag/%40anywidget/types%400.4.0)
- initialize and render props now include an AbortSignal that is aborted when the widget is destroyed or during HMR, enabling lifecycle cleanup. (0.4.0) — [release notes](https://github.com/manzt/anywidget/releases/tag/%40anywidget/types%400.4.0)

### Behavior and default changes

- initialize can return a plain object to expose a programmatic API for the widget; functions remain cleanup callbacks and void means neither. (0.4.0) — [release notes](https://github.com/manzt/anywidget/releases/tag/%40anywidget/types%400.4.0)
