github longbridge/nsh v0.6.0
nsh v0.6.0

one hour ago

A large release: 457 commits since v0.5.1 from 60+ contributors. Highlights are native mobile controls (Switch, DateTimePicker, system context menus and share sheet, iOS sheet detents), spring-based style and layout animation, multilingual and channel-aware updates, a capability gate for the application and home directory, and a long list of Windows fidelity fixes.

Breaking Changes

  • Capabilities — apps that declare capabilities must now list application (main window, app menu, tray, global shortcuts, quit/restart, launch at login) and homeDir (os.homedir()). Apps without a declaration are unchanged. Closes a sandbox escape for embedded apps. (#1499)
  • Input maxLength counts characters, not UTF-16 units; nsh_core::text_edit::clip_utf16 is replaced by clip_chars. On Android, an app's value longer than maxLength is no longer cut. (#2266)
  • WebView downloads use event handles and a shared lifecycle (cancelled state, source, code, reason); native adapters move from AcceptDownload to StartDownload. Linux's webview feature needs WebKitGTK 2.42. (#1666, #1986)
  • iOS Clipboard.readText() rejects with ERR_ACCESS_DENIED when the person refuses the paste, instead of returning "". (#2004)
  • AlertDialogOptions::show returns a named type with closer(); awaiting it still works. (#2294)
  • ContextMenu listeners (Rust) take ContextMenuEvents instead of MenuEvent. (#2202)
  • Transition is #[non_exhaustive] and gains spring. (#2259)
  • ModalConfig / ModalProp (platform-facing) are no longer Copy. (#2243)
  • RichEditorEvent gains CompositionChange. (#2072)
  • DataTable selectOnModifierPress={false} now leaves cell and title selection alone too. (#2059)
  • Dev server answers 403 to hosts that reach it by a rebound name; connect by the printed address. (#2153)
  • GPUI embedding needs GPUI Fast 0.1.14+ / GPUI Kit 0.9.1+. (#2093)
  • Platform-facing additions for out-of-tree platforms: Command::Share / Environment::share, clipboard_images: Option<bool>, TextBackground vertical padding fields, macOS AppOptions::handoff. (#2198, #2164, #2215, #2150)

New Features

  • Mobile controls: Switch and DateTimePicker use the system controls (#2284, #2278); system context menus on iOS (#2202) and system menus / segmented controls (#1736); Share opens the system share sheet (#2198).
  • Sheets and dialogs: iOS sheets rest at detents with a grabber and an inner stack (#2243); bottom sheets get detents (#2194); the sheet is a named modal dialog everywhere (#2028); apps can close an alert they showed (#2294).
  • Animation: style transitions on a spring (#2259); layout springs take stiffness, damping and mass (#2227); ViewRef.animateLayout and Bezier layout curves; Collapsible reveal spring (#2233).
  • Updater: per-language release notes, one file per language (#2286); named channels (#2249); installOnQuit (#2263); shell-only updates reported (#2222).
  • Auth and desktop: open_auth_session for web sign-in (#2285, #2304); launch at login (#1884); app-named data directory (#2232); Handoff on iOS and macOS (#2150); Linux session-end save (#2213); macOS quit/close confirmation (#2050).
  • Input and events: pen pressure, tilt and pointer type (#2142); desktop hardware key events for custom views (#1590); mouse and context-menu events on any component (#1881); reactive size classes (#2081); MacBook notch as cutouts (#1981).
  • Text and rich editor: annotated code and custom inline spans in TextView (#1741); task-item presses (#2045); onContentSizeChange (#2071); TS plugins in paste (#2154); span padding (#2141, #2215).
  • Layout: SplitView adaptive columns with independent navigation stacks (#2096); overlays: "viewport" on Web (#2257); scrollsToTop (#2012).
  • Packaging: iOS launch screen color/image from nsh.json (#2293); strict Content-Security-Policy for packaged Web apps (#2155); install script progress (#2161).
  • Size: WebSocket, updater, SVG and HTTP become optional features (#1709); WebView2 and media optional on Windows (#2135); GPUI embedders can leave optional parts out (#1886).

Improvements

  • Performance: cheap updates of each for rows that stay (#2268); restyle only moved siblings (#1596); per-batch redraw decisions on macOS (#1924); startup/process-tree/size sampler for baselines (#2210).
  • Windows: TSF composition reported live (#1994), single caption-button set and system icon font (#2282, #2133), correct frame/placement and minimize restore (#2270, #2225), Windows 11 dark backdrop (#2238), shader frames shared with Direct2D (#2126), and many rendering fixes.
  • macOS / iOS: editor focus restored after dialogs (#2267), composition keys kept in hosted inputs (#2288), sharp SVG on canvas (#2272), hardware shortcuts after keyboard dismissal (#2115), accessibility roles restored (#1874), windows move from windowDrag views with a hidden title bar (#2295), new windows open at the app's default position (#2325), iOS auth session presentation anchor registered (#2310).
  • Accessibility: native components keep accessibility nodes under GPUI (#2093); menu item descriptions read by screen readers (#2043); describedBy-style element links (#1910).
  • Linux: touchpad fling velocity no longer underestimated on release (#2328).
  • Components: DataTable hovers views drawn by renderCell (#2223); List shows each row in a single cell, including spare cells (#2312).
  • Docs: minimum browsers for published web apps (#2296).
  • Testing: iOS tests can press bar buttons and choose from system menus (#2313); headless hosts run without stealing focus (#1813), Tab reaches focusable views on Windows (#2006), tests can fail opened URLs (#1869).
Contributors

@0xbentang @ahonn @akongG @Amamiya23 @antoniel @ArnoChenFx @BeADre @Blackman99 @blueberrycongee @chaxus @ClarkThan @Cooooooker @cosformula @crizant @daoleno @davo20019 @daydoing @duo @dXnSix @hexiang1993 @hexuria @hmziqrs @honsunrise @huacnlee @jcdiv47 @jesseXu @jjyr @Joy-jinyu @jsiu93 @KeepNoob @kim0 @labcoder @LeeDashan @Liguoqiang-code @linyisu @lnnduy @lurenjia534 @LVtomatoJ @madcodelife @mengyinghu-sys @mliemm @obito-t @RebelBIrd @richerfu @sekzerd @subframe7536 @sunfuze @sunli829 @t4t5 @tacshi @teng-lin @ttizze @Tzyito @villatothesea @wenlingang @williamjakfar @WillisXue @xhofe @YougLin-dev @yuezk

What's Changed
New Contributors

Full Changelog: v0.5.0...v0.6.0

Don't miss a new nsh release

NewReleases is sending notifications on new releases.