Skip to content

Commit b1496fc

Browse files
v0.1.1 (#69)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 349d852 commit b1496fc

10 files changed

+50
-69
lines changed

.changeset/cyan-suits-share.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/fluffy-oranges-begin.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/friendly-rocks-rush.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.changeset/good-shrimps-complain.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.changeset/red-dingos-hammer.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/swift-wasps-brake.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/two-goats-hammer.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/unlucky-scissors-taste.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# anywidget
2+
3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- fix: support ipywidgets v7 and v8 in Google Colab (#52) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
8+
9+
- fix: hot CSS replacement (#65) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
10+
11+
- feat: add ESM fallback if none is specified for an `anywidget.AnyWidget` subclass (#45) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
12+
13+
```python
14+
class MyWidget(anywidget.AnyWidget):
15+
...
16+
17+
MyWidget()
18+
# Dev note: Implement an `_esm` attribute on AnyWidget subclass
19+
# `__main__.MyWidget` to customize this widget.
20+
```
21+
22+
- feat: add `FileContents` to read/watch files (#62) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
23+
24+
```python
25+
contents = FileContents("./index.js", start_thread=True)
26+
27+
contents.changed.connect
28+
def _on_change(new_contents: str):
29+
print("index.js changed:")
30+
print(new_contents)
31+
```
32+
33+
- chore: deprecate `_module` attribute for `_esm` for defining widget ESM (#66) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
34+
35+
- fix: support Python 3.7 with `from __future__ import annotations` (#44) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
36+
37+
- feat: add `MimeBundleDescriptor` pattern, for more library agnostic Python <> JS communication (#49) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))
38+
39+
```python
40+
from anywidget._descriptor import MimeBundleDescriptor
41+
42+
import traitlets
43+
44+
class Counter(traitlets.HasTraits):
45+
_repr_mimebundle_ = MimeBundleDescriptor(_esm=ESM)
46+
value = traitlets.Int(0).tag(sync=True)
47+
```
48+
49+
- feat: add support for HMR during development (#60) ([`7540ec9`](https://github.com/manzt/anywidget/commit/7540ec9df34c16acafcd01cc2af8b8de263a31d2))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "anywidget",
33
"main": "src/index.js",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"author": "Trevor Manz",
66
"license": "MIT",
77
"files": [

0 commit comments

Comments
 (0)