Skip to content

nsh v0.8.1

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 08:59
· 414 commits to main since this release
98b97b1

A patch release on top of v0.8.0: 108 performance and bug fixes from main, with no new public API and no breaking changes.

Update with nsh update, then bump nsh.lock / Cargo.toml to 0.8.1.

Performance

  • Linux input latency: the engine's answer to an input is painted in the very next frame; gui-bench hover/click p50 drops from about 13 ms to about 7 ms (#4285). GTK shortcut eligibility checks are deferred until a trigger matches (#4081).
  • Engine: idle collections are skipped when a commit changed no nodes (#4180); unchanged overlay and hint sync is skipped per commit (#3919); cancelled image decodes leave the queue at once (#4028).
  • Lists and layout: each row keeps its layout when only its column's height changes (#4173); a deferred TextView list run is laid out as tall as its rows (#3902).
  • RichEditor: long Markdown is read in parts so reading stays linear (#3972); each key checks and reads only the changed blocks (#3983); later block positions shift lazily on edit (#4007); a long document's window is recomputed only when a top-level block moves (#4019); plugin decoration sets compare by identity (#4062).
  • macOS: a batch's text rasters are packed into shared atlas surfaces (#4106), and text surfaces nothing shows are reclaimed (#3930).
  • Memory on other platforms: Windows releases DirectWrite layouts after shaping and Direct2D/Direct3D resources when the last surface closes (#3892, #4098); Linux releases idle canvas tiles, shadow and image caches and a cleared canvas's raster (#4078, #4077); Android lets go of image bitmaps after their fade (#4076); unique RGBA buffers are evicted when their last lease drops (#4152).
  • The desktop frame clock pauses while a scroll indicator is held (#4057); nsh-base caches suggestion trigger regexes (#3970).

Bug Fixes

  • Core & engine: views in a drawn header are measured from the window, fixing tooltips offset by a sidebar's width (#4230); queued component events are delivered before the next input's handlers (#4264); a component's view is disposed before the state it reads (#4097); failed memos retry on read (#4043); scoped layout animation runs close before batch end (#4025); window content is disposed when a window closes (#4027); list cell building stops after mid-batch disposal (#4220); a JS child's row key and a bound style's named group are kept (#4164, #4157); backslashes in POSIX file URLs are percent-encoded (#4032).
  • Text: lines that fit are kept when a box is shorter than its text (#4209); a clipped nowrap line is cut with its ellipsis (#4198) and drawn past its box on Apple unless the text clips (#4210); a content-sized column is laid out again at its widened width (#4190).
  • Images & media: stale load races fixed on iOS, Android, Linux and Windows (#4204); a remote image's density is read from its file name (#4254); iOS bounds the ImageIO decode budget (#4119), plays a video from a file path (#4079) and keeps the audio session category (#3978); the Apple sound engine stops after its last voice (#3977); inline SVG ImageSrc bytes are preserved (#4174).
  • Editors & terminal: RichEditor waits for the current layout before scrolling the caret into view (#4218) and no longer marks GeometryHandle Send/Sync (#4206); Editor refreshes the caret when typing an existing closer (#4040); TextView table streaming invariants are restored (#3952); the terminal measures wide glyphs correctly and sends a software keyboard's Delete (#4034, #4127).
  • Components: Menu keeps a submenu open while the pointer heads to it, moves past the trigger on Tab, closes a phone sheet on swipe down and survives rebuilt items (#4008, #4015, #4089, #3904, #3942); Listbox tracks the active row by ElementRef, clears the pointer highlight on leave and accepts capitals and Space in typeahead (#4037, #4004, #4010); DatePicker clears only when cleanable (#4005); SplitView keeps user-resized widths (#3947); Resizable ends a drag on container resize (#4041); Dock fixes (#4168, #4090); title bar control insets use the bar's window width (#4113); scroll reveal no longer ends a held drag (#3980); selection drag stays on a shorter row (#4024); list anchoring respects the shrunk offset (#3926).
  • macOS: views made during live resize are placed at once (#4250); focus returns after an alert closes (#4184); single-line Input alignment kept while unfocused (#4169); toolbar title bar height kept (#4187); pointer ownership per window root (#4058); stale deferred blur dismissals discarded (#4055); dropped content-layer draws redrawn (#3948); row child views picked beside cell leaves (#3895); a backdrop's lone text stays above it (#3934); safe superview read (#4189).
  • Linux: GTK no longer focuses the first input when a window maps (#4267); pending input edits flush before shortcuts and presses (#3984); undrawn views take no press (#3959); a suspended window reports not visible (#4074).
  • Windows: grayscale text antialiasing (#4029); Latin monospace Input fonts kept under a Chinese charset (#3974); modal dialogs owned by the active window (#4102); RichEdit caret, modal opacity, focus inside non-focusable views, pointer captures on removed subtrees, clipboard image formats and partial-frame backdrop redraw fixed (#4095, #4083, #4006, #4112, #4084, #3986); verbatim UNC prefixes stripped for Rolldown (#4039).
  • Android: hover listeners stay balanced (#4269); a fling keeps its resting place as content grows (#4239); clipped line limits show only kept lines (#4219); pull to refresh around a sideways scroll view (#4215); backdrops start at the covering opaque group (#4044); TabBar taps under box-none (#4080); keyboard room in lifted pages (#4116).
  • iOS: the bottom bar reconciles on settled navigation transitions (#4118).
  • Web: focus returns into the dialog under a closed nested dialog (#4244) and Tab stays in an open modal (#4031); text is measured on a hidden DOM run (#4036); sideways swipes over a refreshable scroll view go to the browser (#4064); default font smoothing on macOS (#3963); provider context for function children (#3968); split runtime table slots and animation frames fixed (#3981, #3937).
  • CLI & testing: UTF-16 configs preserved when dependency commands fail (#3929); a pasted GPUI image is named by its clipboard format (#4155); manual-clock test steps no longer wait real time on stub answers (#3918).

Contributors

Thanks to @huacnlee, @M4n5ter, @madcodelife, @zsakvo, @jcdiv47, @blueberrycongee, @QianghuaSong, @Cooooooker, @zh239ns, @yuxino, @yerlytech, @teng-lin, @meritozh, @mengyinghu-sys, @lyricat, @lurenjia534, @duri-lb, @bobleer, @RebelBIrd, @LanceHuang245, @LVtomatoJ, @Joy-jinyu, @Geylnu and @BeADre.

Full Changelog: v0.8.0...v0.8.1