Releases: manzt/anywidget
Releases · manzt/anywidget
[email protected]
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.
[email protected]
Patch Changes
- fix(descriptor): forward base obj repr for text/plain mimetype (#131)
[email protected]
Patch Changes
-
feat: Add
anywidget.experimental
with simple decorator (#126)import dataclasses import psygnal from anywidget.experimental import widget @widget(esm="index.js") @psygnal.evented @dataclasses.dataclass class Counter: value: int = 0
[email protected]
Minor Changes
-
feat: Add support for evented msgspec.Struct objects (#64)
Our experimental descriptor API can now work with
msgspec
, a fast and efficient serialization library, similar topydantic
but with a stronger emphasis on ser/de, and less on runtime casting of Python types.from anywidget._descriptor import MimeBundleDescriptor import psygnal import msgspec @psygnal.evented class Counter(msgspec.Struct, weakref=True): value: int = 0 _repr_mimebundle_: ClassVar = MimeBundleDescriptor(_esm="index.js", autodetect_observer=False)
[email protected]
Patch Changes
- fix: properly cache cleanup function for HMR (#122)
[email protected]
[email protected]
Patch Changes
- fix: add
watchfiles
as a direct dependency (#116)
[email protected]
Patch Changes
- fix: JS variable scope issue (
eacc99c
)
[email protected]
Patch Changes
- feat: log an re-raise error on ESM import failure (#105)