unstale

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 init

@unstale/cli 0.3.1 on npm

pyodide 31424 changes

Breaking changes 4

  • Stack switching now works with Safari on iOS, but support for iOS versions 18.0 – 18.5 is dropped.

    314.0.8release notes

  • A Python int equal to Number.MAX_SAFE_INTEGER or its negative is now converted to a Number instead of a BigInt.

    314.0.8release notes

  • NodeList and HTMLCollection values are now converted to Python lists.

    314.0.8release notes

  • 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.

    314.0.5release notes

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.

    314.0.7release notes

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.

    314.0.8release notes

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").

    314.0.8release notes

Fixes and other changes 17

  • Creating a new event loop no longer silently replaces the current running loop.

    314.0.8release notes

  • Fixed a fatal error when pybind11 extensions acquire the GIL by restoring a single thread state for stack-switching tasks.

    314.0.8release notes

  • The instanceof check no longer returns true for every Python sequence, including tuple.

    314.0.8release notes

  • Fixed a SystemError caused by calling pyodide.setDebug(true).

    314.0.8release notes

  • Fixed buffer retrieval when the buffer address is larger than 2GB.

    314.0.8release notes

  • Fixed conversion of a dictionary containing a list with a circular reference to the outer dictionary.

    314.0.8release notes

  • Fixed an exception when converting a multidimensional PIL-style buffer to JavaScript.

    314.0.8release notes

  • A delay in the past no longer raises ValueError; the callback runs as soon as possible, as in CPython.

    314.0.8release notes

  • No longer raises AttributeError when a task factory is set; it passes arguments to the task factory like the default asyncio event loop.

    314.0.8release notes

  • No longer reports a loop that is not actually running from inside a function called with stack switching enabled.

    314.0.6release notes

  • When given a requirement specifier such as numpy>=1.0, it now points to micropip.install(), which accepts requirement specifiers.

    314.0.6release notes

  • Fixed a regression in the interaction between signal handling and stack switching.

    314.0.6release notes

  • Callbacks are now correctly handled when stack switching.

    314.0.6release notes

  • Top-level code no longer loses its context when suspended stacks resume in a different order than they suspended in.

    314.0.5release notes

  • Values set inside a call that suspends no longer leak into later unrelated stack switches or keep referenced objects alive forever.

    314.0.5release notes

  • 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.

    314.0.5release notes

  • Values are now consistently shared with calls that stack switch.

    314.0.5release notes