Skip to content

Commit

Permalink
Version Packages (#517)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Apr 1, 2024
1 parent 777fc26 commit 6a55c1e
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 32 deletions.
28 changes: 0 additions & 28 deletions .changeset/nervous-goats-rescue.md

This file was deleted.

31 changes: 31 additions & 0 deletions packages/anywidget/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# anywidget

## 0.9.4

### Patch Changes

- Add experimental `invoke` API to call Python functions from the front end and ([#453](https://github.com/manzt/anywidget/pull/453))
await the response.

This removes a lot of boilerplate required for this pattern. The API is
experimental and opt-in only. Subclasses must use the `command` to register
functions.

```py
class Widget(anywidget.AnyWidget):
_esm = """
export default {
async render({ model, el, experimental }) {
let [msg, buffers] = await experimental.invoke("_echo", "hello, world");
console.log(msg); // "HELLO, WORLD"
},
};
"""

@anywidget.experimental.command
def _echo(self, msg, buffers):
# upper case the message
return msg.upper(), buffers
```

- Updated dependencies [[`777fc268ee06fcf13e48a1c00cfdf90c14d786dc`](https://github.com/manzt/anywidget/commit/777fc268ee06fcf13e48a1c00cfdf90c14d786dc)]:
- @anywidget/types@0.1.7

## 0.9.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/anywidget/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "anywidget",
"type": "module",
"version": "0.9.3",
"version": "0.9.4",
"author": "Trevor Manz",
"license": "MIT",
"main": "dist/index.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @anywidget/react

## 0.0.5

### Patch Changes

- Updated dependencies [[`777fc268ee06fcf13e48a1c00cfdf90c14d786dc`](https://github.com/manzt/anywidget/commit/777fc268ee06fcf13e48a1c00cfdf90c14d786dc)]:
- @anywidget/types@0.1.7

## 0.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@anywidget/react",
"type": "module",
"version": "0.0.4",
"version": "0.0.5",
"description": "React utilities for anywidget",
"main": "index.js",
"types": "dist/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @anywidget/svelte

## 0.0.6

### Patch Changes

- Updated dependencies [[`777fc268ee06fcf13e48a1c00cfdf90c14d786dc`](https://github.com/manzt/anywidget/commit/777fc268ee06fcf13e48a1c00cfdf90c14d786dc)]:
- @anywidget/types@0.1.7

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@anywidget/svelte",
"type": "module",
"version": "0.0.5",
"version": "0.0.6",
"description": "Svelte utilities for anywidget",
"main": "src/index.js",
"types": "dist/index.d.ts",
Expand Down
28 changes: 28 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @anywidget/types

## 0.1.7

### Patch Changes

- Add experimental `invoke` API to call Python functions from the front end and ([#453](https://github.com/manzt/anywidget/pull/453))
await the response.

This removes a lot of boilerplate required for this pattern. The API is
experimental and opt-in only. Subclasses must use the `command` to register
functions.

```py
class Widget(anywidget.AnyWidget):
_esm = """
export default {
async render({ model, el, experimental }) {
let [msg, buffers] = await experimental.invoke("_echo", "hello, world");
console.log(msg); // "HELLO, WORLD"
},
};
"""

@anywidget.experimental.command
def _echo(self, msg, buffers):
# upper case the message
return msg.upper(), buffers
```

## 0.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@anywidget/types",
"type": "module",
"version": "0.1.6",
"version": "0.1.7",
"description": "utility types for anywidget",
"main": "./index.ts",
"types": "./index.ts",
Expand Down

0 comments on commit 6a55c1e

Please sign in to comment.