Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #541

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/empty-walls-know.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/three-snails-give.md

This file was deleted.

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

## 0.9.8

### Patch Changes

- **experimental** Ensure anywidget.experimental.command is called with self ([#545](https://github.com/manzt/anywidget/pull/545))

- **experimental** Replace invoke timeout with more flexible `AbortSignal` ([#540](https://github.com/manzt/anywidget/pull/540))

This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.

```js
export default {
async render({ model, el }) {
const controller = new AbortController();

// Randomly abort the request after 1 second
setTimeout(() => Math.random() < 0.5 && controller.abort(), 1000);

const signal = controller.signal;
model
.invoke("echo", "Hello, world", { signal })
.then((result) => {
el.innerHTML = result;
})
.catch((err) => {
el.innerHTML = `Error: ${err.message}`;
});
},
};
```

- Updated dependencies [[`a4b0ec07b2b8937111487108e9b82daf3d9be2df`](https://github.com/manzt/anywidget/commit/a4b0ec07b2b8937111487108e9b82daf3d9be2df)]:
- @anywidget/types@0.1.9

## 0.9.7

### 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.7",
"version": "0.9.8",
"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.7

### Patch Changes

- Updated dependencies [[`a4b0ec07b2b8937111487108e9b82daf3d9be2df`](https://github.com/manzt/anywidget/commit/a4b0ec07b2b8937111487108e9b82daf3d9be2df)]:
- @anywidget/types@0.1.9

## 0.0.6

### 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.6",
"version": "0.0.7",
"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.8

### Patch Changes

- Updated dependencies [[`a4b0ec07b2b8937111487108e9b82daf3d9be2df`](https://github.com/manzt/anywidget/commit/a4b0ec07b2b8937111487108e9b82daf3d9be2df)]:
- @anywidget/types@0.1.9

## 0.0.7

### 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.7",
"version": "0.0.8",
"description": "Svelte utilities for anywidget",
"main": "src/index.js",
"types": "dist/index.d.ts",
Expand Down
29 changes: 29 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @anywidget/types

## 0.1.9

### Patch Changes

- **experimental** Replace invoke timeout with more flexible `AbortSignal` ([#540](https://github.com/manzt/anywidget/pull/540))

This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.

```js
export default {
async render({ model, el }) {
const controller = new AbortController();

// Randomly abort the request after 1 second
setTimeout(() => Math.random() < 0.5 && controller.abort(), 1000);

const signal = controller.signal;
model
.invoke("echo", "Hello, world", { signal })
.then((result) => {
el.innerHTML = result;
})
.catch((err) => {
el.innerHTML = `Error: ${err.message}`;
});
},
};
```

## 0.1.8

### 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.8",
"version": "0.1.9",
"description": "utility types for anywidget",
"main": "./index.ts",
"types": "./index.ts",
Expand Down