npm / pyodide
pyodide
What changed in pyodide 314, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
4 breaking1 new APIs and options1 behavior and defaults1 tooling17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpyodide 31424 changes
Breaking changes 4
Stack switching now works with Safari on iOS, but support for iOS versions 18.0 – 18.5 is dropped.
A Python int equal to Number.MAX_SAFE_INTEGER or its negative is now converted to a Number instead of a BigInt.
NodeList and HTMLCollection values are now converted to Python lists.
Python entry points invoked with stack switching enabled now run with a copy of the context, so their ContextVar.set() calls are not visible to the caller.
New APIs and options 1
Adds a dedent option to control whether source is dedented before execution; it defaults to True, preserving existing behavior. The option is also available on runPythonAsync and the underlying evaluation APIs.
Behavior and default changes 1
The Windows CLI handles paths across multiple drive letters by mounting referenced drives at distinct virtual roots such as /c and /d.
Tooling 1
The cross-build environment now ships Python pkg-config files, including python-3.14.pc and python3.pc, in the directory reported by sysconfig.get_config_var("LIBPC").
Fixes and other changes 17
Creating a new event loop no longer silently replaces the current running loop.
Fixed a fatal error when pybind11 extensions acquire the GIL by restoring a single thread state for stack-switching tasks.
The instanceof check no longer returns true for every Python sequence, including tuple.
Fixed a SystemError caused by calling pyodide.setDebug(true).
Fixed buffer retrieval when the buffer address is larger than 2GB.
Fixed conversion of a dictionary containing a list with a circular reference to the outer dictionary.
Fixed an exception when converting a multidimensional PIL-style buffer to JavaScript.
A delay in the past no longer raises ValueError; the callback runs as soon as possible, as in CPython.
No longer raises AttributeError when a task factory is set; it passes arguments to the task factory like the default asyncio event loop.
No longer reports a loop that is not actually running from inside a function called with stack switching enabled.
When given a requirement specifier such as
numpy>=1.0, it now points tomicropip.install(), which accepts requirement specifiers.Fixed a regression in the interaction between signal handling and stack switching.
Callbacks are now correctly handled when stack switching.
Top-level code no longer loses its context when suspended stacks resume in a different order than they suspended in.
Values set inside a call that suspends no longer leak into later unrelated stack switches or keep referenced objects alive forever.
Hooks now apply inside a call that stack switches, so async generators created there are handed to the event loop that must shut them down.
Values are now consistently shared with calls that stack switch.