mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 07:01:00 -05:00
* Deprecate py-mount attribute, with comments as to when it was deprecated * Add changelog entry for deprecation * Fix 'unused' examples that used py-mount (handtrack and mario)
4.2 KiB
4.2 KiB
Release Notes
2023.XX.X
Features
- The
py-mountattribute on HTML elements has been deprecated, and will be removed in a future release.
<py-terminal>
- Added a
dockedfield and attribute for the<py-terminal>custom element, enabled by default when the terminal is inautomode, and able to dock the terminal at the bottom of the page with auto scroll on new code execution.
<py-script>
- Restored the
outputattribute ofpy-scripttags to routesys.stdoutto a DOM element with the given ID. (#1063) - Added a
stderrattribute ofpy-scripttags to routesys.stderrto a DOM element with the given ID. (#1063)
<py-repl>
- The
outputattribute ofpy-repltags now specifies the id of the DOM element thatsys.stdout,sys.stderr, and the results of a REPL execution are written to. It no longer affects the location of calls todisplay() - Added a
stderrattribute ofpy-repltags to routesys.stderrto a DOM element with the given ID. (#1106) - Resored the
output-modeattribute ofpy-repltags. Ifoutput-mode== 'append', the DOM element where output is printed is not cleared before writing new results.
Plugins
- Plugins may now implement the
beforePyReplExec()andafterPyReplExec()hooks, which are called immediately before and after code in apy-repltag is executed. (#1106)
Bug fixes
- Fixes #1280, which describes the errors on the PyRepl tests related to having auto-gen tags that shouldn't be there.
Enhancements
- Py-REPL tests now run on both osx and non osx OSs
- migrated from rollup to esbuild to create artifacts
- updated
@codemirrordependency to its latest
Docs
- Add docs for event handlers
2023.01.1
Features
Bug fixes
- Fixed an issue where
pyscriptwould not be available when using the minified version of PyScript. (#1054) - Fixed missing closing tag when rendering an image with
display. (#1058) - Fixed a bug where Python plugins methods were being executed twice. (#1064)
Enhancements
- When adding a
py-attribute to an element but didn't added anidattribute, PyScript will now generate a random ID for the element instead of throwing an error which caused the splash screen to not shutdown. (#1122) - You can now disable the splashscreen by setting
enabled = falsein yourpy-configunder the[splashscreen]configuration section. (#1138)
Documentation
- Fixed 'Direct usage of document is deprecated' warning in the getting started guide. (#1052)
- Added reference documentation for the
py-splashscreenplugin (#1138) - Adds doc for installing tests (#1156)
- Adds docs for custom Pyscript attributes (
py-*) that allow you to add event listeners to an element (#1125)
Deprecations and Removals
- The py-config
runtimesto specify an interpreter has been deprecated. Theinterpretersconfig should be used instead. (#1082) - The attributes
pys-onClickandpys-onKeyDownhave been deprecated, but the warning was only shown in the console. An alert banner will now be shown on the page if the attributes are used. They will be removed in the next release. (#1084) - The pyscript elements
py-button,py-inputbox,py-boxandpy-titlehave now completed their deprecation cycle and have been removed. (#1084)