Skip to content

2026.1.1

Choose a tag to compare

@ntoll ntoll released this 20 Jan 12:00
· 14 commits to main since this release
c3d4998
  • Minor fixes in coincident.
  • Removed WebR (for the time being) and improved packages details in polyscript.
  • Updated polyscript module to include latest coincident and latest Pyodide 0.29.1.
  • INCLUDES BREAKING CHANGES API/docstring refactor #2414
    • magic_js renamed to context (but everything should still only be referenced via the core pyscript namespace).
    • A much requested change in pyscript.web: use page["#an-id"] to get a single element by id (rather than page.find("#an-id")[0]).
    • In pyscript.web an Element's styles are a Python dict and classes a Python set (rather than custom objects with a similar API to those Python classes).
    • Explicitly use update_all with ElementCollection instances. You used to be able to do implicit changes via: my_collection.innerHTML = "foo". Feedback was this felt risky (folks thought they were mutating an element, not an element collection and they were getting strange results). Now you just: my_collection.update_all(innerHTML="foo") which also makes it more obvious what's going on.
    • Extensive rewrite of docstrings with examples. These form the basis of our new API docs.
    • Added many more tests for the purpose of coverage and testing edge-cases.