Skip to content

Releases: manzt/anywidget

anywidget@0.8.1

13 Jan 20:30
eadc3b0
Compare
Choose a tag to compare

Patch Changes

  • fix: Skip Promise serialization for ipywidget's layout/style traits (#412)

create-anywidget@0.4.4

02 Dec 20:18
ee4dc25
Compare
Choose a tag to compare

Patch Changes

  • Bump @types/react-dom (#390)

anywidget@0.8.0

02 Dec 20:19
ee4dc25
Compare
Choose a tag to compare

Minor Changes

  • Remove re-export of @anywidget/vite from main package (#398)

    Breaking change. If using our Vite plugin, please make sure to install
    @anywidget/vite (rather than importing from anywidget main package). This
    change allows us to version the Vite plugin and anywidget's core separately.

    // vite.config.mjs
    import { defineConfig } from "vite";
    -- import anywidget from "anywidget/vite";
    ++ import anywidget from "@anywidget/vite";

    If you are already using @anywidget/vite, there are no changes necessary.

Patch Changes

@anywidget/vite@0.1.2

02 Dec 20:18
ee4dc25
Compare
Choose a tag to compare

Patch Changes

  • Support Vite v5 (#389)

create-anywidget@0.4.3

07 Nov 13:20
2600bd8
Compare
Choose a tag to compare

Patch Changes

  • Update React dependency version (#370)

create-anywidget@0.4.2

01 Nov 20:34
Compare
Choose a tag to compare

Patch Changes

@anywidget/deno@0.0.5

01 Nov 20:34
Compare
Choose a tag to compare

Patch Changes

  • feat: Allow Deno to check if display in widget (603b9e1)

anywidget@0.7.1

24 Oct 14:20
7a39f08
Compare
Choose a tag to compare

Patch Changes

  • feat: Raise Python error when file is missing (#345)

@anywidget/deno@0.0.4

12 Oct 11:36
b4ce3b6
Compare
Choose a tag to compare

Patch Changes

  • Bump anywidget version to 0.7.0 (525e3c8)

anywidget@0.7.0

10 Oct 21:18
2764f1a
Compare
Choose a tag to compare

Minor Changes

  • feat(experimental)!: Require include in _get_anywidget_state signature (#317)

    Allows implementors to avoid re-serializing fields which aren't needed to send
    to the front end. This is a BREAKING change because it requires implementors
    of _get_anywidget_state to account for include in the function signature.

    from dataclasses import dataclass, asdict
    from io import BytesIO
    
    import polars as pl
    import psygnal
    
    @psygnal.evented
    @dataclass
    class Foo:
      value: int
      df: pl.DataFrame
    
      def _get_anywidget_state(self, include: set[str] | None):
        data = asdict(self)
        if include and "df" in include:
          with BytesIO() as f:
            self.df.write_ipc(f)
            data["df"] = f.getvalue()
        else:
          del data["df"] # don't serialize df to bytes
        return data