This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
anywidget@0.9.8
Patch Changes
experimental Ensure anywidget.experimental.command is called with self (#545)
experimental Replace invoke timeout with more flexible AbortSignal (#540)
This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.
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}`;
});
},
};
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
anywidget@0.9.8
Patch Changes
experimental Ensure anywidget.experimental.command is called with self (#545)
experimental Replace invoke timeout with more flexible
AbortSignal
(#540)This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.
Updated dependencies [
a4b0ec07b2b8937111487108e9b82daf3d9be2df
]:@anywidget/react@0.0.7
Patch Changes
a4b0ec07b2b8937111487108e9b82daf3d9be2df
]:@anywidget/svelte@0.0.8
Patch Changes
a4b0ec07b2b8937111487108e9b82daf3d9be2df
]:@anywidget/types@0.1.9
Patch Changes
experimental Replace invoke timeout with more flexible
AbortSignal
(#540)This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.