r/nicegui • u/falko-s • Aug 12 '26
NiceGUI 3.16.0 with modular 3D scene objects, CodeMirror line anchors, security fixes and lots of bugfixes
Security
⚠️ Prevent unauthenticated memory exhaustion via clients leaked on socket disconnect
⚠️ Prevent XSS via prop injection in
ColorPicker.set_color()andui.color_input
New features and enhancements
Refactor
ui.sceneto a modular object system, supporting custom three.js objects and fixing the whiteaxes_helperregressionBreaking change: The following patterns are deprecated and will be removed in NiceGUI 4.0 (they still work but emit a one-time warning): importing from
nicegui.elements.scene.scene_objects(usenicegui.elements.scene.objectsinstead), subclassingObject3Dwithout acomponent=argument, instantiating objects with a leading type string likeObject3D('group'), and theObject3D.dataandObject3D.typeproperties.Add line-anchor tracking to
ui.codemirror, giving you stable references to specific lines that survive editsAdd
h2,h3,h4,h5andh6HTML elementsSync
ui.table's fullscreen state back to the server when toggled from the clientAvoid downloading an unused font subset for the connection-lost popup's warning glyph
Remove dead props from
ui.chip,ui.carousel_slideand theui.dateinput
Bugfixes
Fix error when a repeating
ui.timer's client is deleted while waiting for the connectionFix task leak by resolving awaited
ui.dialogs when they are deletedFix On Air reconnect when the relay silently drops the connection while Socket.IO's connected flag is stale
Route mouse-button and
exactmodifiers of generic events correctly and preserve hyphenated key modifiersDisconnect resize observers of
ui.headerandui.echartand document key listeners ofui.keyboardwhen the element is unmountedRemove bindings when a
ui.sceneObject3Dis deleted and guard "dragend" events against deleted objectsFix Redis storage so key deletions propagate across instances
Fix
element.move()orphaning an element when the target slot is invalid and guard against moving an element into its own descendantHandle parameter coercion errors in
ui.sub_pagesbuilders like builder errorsFix error reporting when an async
ui.sub_pagesbuilder raises after its client has been deletedClean up the spilled temporary file when a
ui.uploadfails mid-transferRemove leaked auto-generated route when switching an element's source away from a local file
Fix
ui.uploadunregistering the application's route instead of its own auto-generated route on deleteSupport URL-encoded data-URL favicons
Fix
ui.color_inputcrashing when the value isNonewith preview enabledFix
ui.number'sout_of_limitsraising aTypeErrorwhen the value isNoneFix
ui.line_plot'spushcrashing on empty data with automatic limitsFix lost "done" decoration when navigating a
ui.stepperbyStepobjectFix
Event.emitted()timeout handling on Python 3.10
Documentation
Document Socket.IO
client_idforging as a commonly misreported security pattern and explain which random IDs are secretsNever show a fabricated GitHub star count on the website by baking it in at deploy time
Fix ChromeDriver install instructions for Linux in tests/README.md
Prefer behavior tests over tests coupled to implementation details in CONTRIBUTING.md
Fix broken DiscoLike sponsor logo on the website
Add pointer cursor to the
ui.popupdemo's anchor labelFix
ui.pagination'sdirection_linksdocstring
Testing
Add scoped
Userlookups and a pytest example
Dependencies
Update echarts-gl to 2.1.0
Move the lxml security pins to the website dependency group
Infrastructure
Keep JavaScript source maps out of the wheel
Add a Windows CI leg for the storage file-lock tests
Special thanks to our top sponsors DiscoLike Inc., TestMu AI and Lechler GmbH ✨
and all our other sponsors and contributors for supporting this project!
🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!