pyodide 0.25.0-alpha.2 → 0.25.0

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/ffi.d.ts CHANGED
@@ -106,53 +106,6 @@ declare class PyProxy {
106
106
  */
107
107
  default_converter?: (obj: PyProxy, convert: (obj: PyProxy) => any, cacheConversion: (obj: PyProxy, result: any) => void) => any;
108
108
  }): any;
109
- /**
110
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyProxyWithLength`.
111
- * @deprecated Use ``obj instanceof pyodide.ffi.PyProxyWithLength`` instead.
112
- */
113
- supportsLength(): this is PyProxyWithLength;
114
- /**
115
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyProxyWithGet`.
116
- * @deprecated Use ``obj instanceof pyodide.ffi.PyProxyWithGet`` instead.
117
- */
118
- supportsGet(): this is PyProxyWithGet;
119
- /**
120
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyProxyWithSet`.
121
- * @deprecated Use ``obj instanceof pyodide.ffi.PyProxyWithSet`` instead.
122
- */
123
- supportsSet(): this is PyProxyWithSet;
124
- /**
125
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyProxyWithHas`.
126
- * @deprecated Use ``obj instanceof pyodide.ffi.PyProxyWithHas`` instead.
127
- */
128
- supportsHas(): this is PyProxyWithHas;
129
- /**
130
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a
131
- * :js:class:`~pyodide.ffi.PyIterable`.
132
- * @deprecated Use ``obj instanceof pyodide.ffi.PyIterable`` instead.
133
- */
134
- isIterable(): this is PyIterable;
135
- /**
136
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a
137
- * :js:class:`~pyodide.ffi.PyIterator`
138
- * @deprecated Use ``obj instanceof pyodide.ffi.PyIterator`` instead.
139
- */
140
- isIterator(): this is PyIterator;
141
- /**
142
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyAwaitable`
143
- * @deprecated Use :js:class:`obj instanceof pyodide.ffi.PyAwaitable <pyodide.ffi.PyAwaitable>` instead.
144
- */
145
- isAwaitable(): this is PyAwaitable;
146
- /**
147
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyBuffer`.
148
- * @deprecated Use ``obj instanceof pyodide.ffi.PyBuffer`` instead.
149
- */
150
- isBuffer(): this is PyBuffer;
151
- /**
152
- * Check whether the :js:class:`~pyodide.ffi.PyProxy` is a :js:class:`~pyodide.ffi.PyCallable`.
153
- * @deprecated ``obj instanceof pyodide.ffi.PyCallable`` instead.
154
- */
155
- isCallable(): this is PyCallable;
156
109
  }
157
110
  /**
158
111
  * A :js:class:`~pyodide.ffi.PyProxy` whose proxied Python object has a :meth:`~object.__len__`
@@ -741,7 +694,36 @@ declare class PyCallableMethods {
741
694
  * object with the keyword arguments.
742
695
  */
743
696
  callKwargs(...jsargs: any): any;
697
+ /**
698
+ * Call the function with stack switching enabled. Functions called this way
699
+ * can use
700
+ * :py:meth:`PyodideFuture.syncify() <pyodide.webloop.PyodideFuture.syncify>`
701
+ * to block until a :py:class:`~asyncio.Future` or :js:class:`Promise` is
702
+ * resolved. Only works in runtimes with JS Promise integration.
703
+ *
704
+ * .. admonition:: Experimental
705
+ * :class: warning
706
+ *
707
+ * This feature is not yet stable.
708
+ *
709
+ * @experimental
710
+ */
744
711
  callSyncifying(...jsargs: any): Promise<any>;
712
+ /**
713
+ * Call the function with stack switching enabled. The last argument must be
714
+ * an object with the keyword arguments. Functions called this way can use
715
+ * :py:meth:`PyodideFuture.syncify() <pyodide.webloop.PyodideFuture.syncify>`
716
+ * to block until a :py:class:`~asyncio.Future` or :js:class:`Promise` is
717
+ * resolved. Only works in runtimes with JS Promise integration.
718
+ *
719
+ * .. admonition:: Experimental
720
+ * :class: warning
721
+ *
722
+ * This feature is not yet stable.
723
+ *
724
+ * @experimental
725
+ */
726
+ callSyncifyingKwargs(...jsargs: any): Promise<any>;
745
727
  /**
746
728
  * The ``bind()`` method creates a new function that, when called, has its
747
729
  * ``this`` keyword set to the provided value, with a given sequence of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyodide",
3
- "version": "0.25.0-alpha.2",
3
+ "version": "0.25.0",
4
4
  "description": "The Pyodide JavaScript package",
5
5
  "keywords": [
6
6
  "python",