Skip to content

Releases: manzt/anywidget

[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.

[email protected]

06 Jun 13:56
96e6b02
Compare
Choose a tag to compare

Patch Changes

  • fix(descriptor): forward base obj repr for text/plain mimetype (#131)

[email protected]

05 Jun 15:24
8e34282
Compare
Choose a tag to compare

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]

01 Jun 15:43
39bf909
Compare
Choose a tag to compare

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 to pydantic 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]

26 May 14:43
b635f76
Compare
Choose a tag to compare

Patch Changes

  • fix: properly cache cleanup function for HMR (#122)

[email protected]

09 May 16:48
3656bff
Compare
Choose a tag to compare

Minor Changes

  • fix: replace deprecated ipykernel.comm.Comm with comm module (#119)

Patch Changes

  • fix: revert watchfiles to optional-dependency (#118)

[email protected]

08 May 14:08
8be557c
Compare
Choose a tag to compare

Patch Changes

  • fix: add watchfiles as a direct dependency (#116)

[email protected]

20 Apr 02:01
08caec7
Compare
Choose a tag to compare

Patch Changes

  • fix: JS variable scope issue (eacc99c)

[email protected]

17 Apr 22:13
3a593ce
Compare
Choose a tag to compare

Patch Changes

  • feat: log an re-raise error on ESM import failure (#105)

v0.2.1

14 Apr 03:35
Compare
Choose a tag to compare

Patch Changes

fix: allow more flexible semver resolution for @jupyter-widgets/base (#107)