@stlite/desktop 0.102.1 → 0.102.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @stlite/desktop
|
|
2
2
|
|
|
3
|
+
## 0.102.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2125](https://github.com/whitphx/stlite/pull/2125) [`762f6ab`](https://github.com/whitphx/stlite/commit/762f6ab2a136e70d615e76a3b9f5fad2726bed0f) Thanks [@whitphx](https://github.com/whitphx)! - Let Streamlit commands run from a Python callback that JS invokes outside any asyncio task, such as a `pyodide.ffi.create_proxy` callback fired by `setTimeout` or a JS library's progress callback.
|
|
8
|
+
|
|
9
|
+
Stlite keys the `ScriptRunContext` off the running asyncio task, and such a callback has none, so every `st.*` call from it failed with `AttributeError: 'NoneType' object has no attribute 'get_name'`. The context now falls back to the thread object when no task is running, so the recipe Streamlit documents for worker threads, `add_script_run_ctx(threading.current_thread(), ctx)`, works from such a callback too, whether the callback attaches the context itself or the script attached it beforehand. An `async def` callback runs as its own task and has to call `add_script_run_ctx(ctx=ctx)` inside itself.
|
|
10
|
+
|
|
3
11
|
## 0.102.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stlite/desktop",
|
|
3
|
-
"version": "0.102.
|
|
3
|
+
"version": "0.102.2",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/whitphx/stlite/issues"
|
|
6
6
|
},
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@emotion/babel-plugin": "^11.13.5",
|
|
54
54
|
"@stlite/app-packager": "^0.1.1",
|
|
55
55
|
"@stlite/common": "^0.90.3",
|
|
56
|
-
"@stlite/kernel": "^0.104.
|
|
57
|
-
"@stlite/react": "^1.8.
|
|
56
|
+
"@stlite/kernel": "^0.104.1",
|
|
57
|
+
"@stlite/react": "^1.8.2",
|
|
58
58
|
"@stlite/tooling": "^0.90.1",
|
|
59
59
|
"@types/react": "^18.2.0",
|
|
60
60
|
"@types/react-dom": "^18.2.0",
|
|
Binary file
|