Repository navigation
Releases
NSGo 0.3.4
- Let embedded Android hosts keep video playback and its callbacks running while their retained view is hidden or out of its window (#2302 by @henry-wm).
nsgo.LaunchFiles(parse)lets a Windows or Linux app decide which command-line arguments open as files, or withnilopen none (#2264 by @J4ck1e2000).- Support selecting a named template from a Go module with
nsgo init -template <module>[@version]#<name>and listing available templates with-list(#2354 by @owocc). - Install the
nsgocommand on macOS and Linux withcurl -fsSL https://nsgo.dev/install.sh | sh, which verifies the release's checksum (#2411). - Attach prebuilt
nsgobinaries for macOS, Linux and Windows on arm64 and amd64, withchecksums.txt, to every release, built from the tagged commit after every check passes (#2410). - Add
ui/terminal(View) to stylebase/terminal's default context menu and touch key bar inui's theme and appearance (#2306 by @owocc). web: show the performance panel overlay (--nsgo-fps/?nsgo-fps) and run a continuousrequestAnimationFrameclock to measure web frames, main-thread work, and batch hop latency (#2254).- A zoomable Android scroll view no longer zooms with a one-finger double tap and drag, which it did only when its content took no touches; it zooms with two-finger pinches, as on iOS (#2311 by @XiaoMengXinX).
nsgo initwrites a complete module, requiring the runningnsgoat its version, declaring it as a tool and fillinggo.sum, sonsgo devruns right after it; in an existing module it adds only therequireandtoollinesgo.modlacks, and the error for flags after the directory names the command as it was called (#2420).nsgo initnames its next command as it was called,nsgo devfrom an installednsgoandgo tool nsgo devfrom the module's tool, and the docs installnsgofirst, with Homebrew, the install script orgo install(#2413).- Keep off-target clickable Android views from stealing touches (#2310 by @J4ck1e2000).
- Let a pinch on a zoomed Android scroll view zoom out until the fingers meet, instead of stopping once they come within about 27mm of each other (#2311 by @XiaoMengXinX).
- Keep a zoomed Android scroll view's content still as a second finger lands or one of two lifts, instead of jumping by half the fingers' spread (#2301 by @XiaoMengXinX).
- Windows and Linux apps no longer open arguments after
--as files, on a first launch or one handed to a running instance (#2264 by @J4ck1e2000). - Closing a GPU resource now takes its cleanup off the scope it was created under and drops it from the device's retained lists, so recreating resources under a long-lived scope, such as render targets on resize, no longer grows them (#2339 by @owocc).
gpu: clip triangles in homogeneous clip space, clamp fragment depth to the viewport depth range, cover shared edges once with a top-left fill rule, and interpolate@interpolate(linear)varyings in screen space in the software renderer (#2344 by @owocc).msl: lay outvec3<f32>,vec3<i32>, andvec3<u32>members of uniform and storage buffer structs as packed Metal vectors with explicit WGSL padding so following scalars and array strides match WGSL on Metal (#2340 by @owocc).- WGSL: refuse uniform buffer arrays whose elements are not a multiple of 16 bytes apart, as WGSL requires, rather than reading them at other offsets on Metal (#2403).
gpu: a render pass whose depth attachment names no texture, the surface's own depth buffer, takes the surface's depth format again, so depth-tested pipelines draw in it instead of being skipped (#2395).- Fail a
tsx.Plugin.CallwithErrBudgetwhenLimits.Callcuts a slice resumed by a Go-settled promise such ashost.call, and report the cut toSandbox.OnErrorwhen the promise has no waiting call (#2390 by @owocc). - Keep the files and links a second launch hands a running Windows app when it writes and closes the pipe before the app starts listening, instead of dropping them silently (#2393 by @Laotree).
NSGo 0.3.3
v0.3.1 and v0.3.2 were tagged but not released: v0.3.1's committed Android runtime was not built from its Java (#2376), and v0.3.2 failed the Apple simulator tests that pull requests skip (#2381, #2386 to #2389). The Go module proxy serves both tags, so 0.3.3 is the first release since 0.3.0 and holds their changes. Releases now run every test before they tag (#2382).
nsgo test -json, which writesgo test's event stream to stdout for tools such asbenchstat.Encoder.Device,RenderPass.DeviceandComputePass.Device, so a rendering helper that takes only an encoder can notice a device restore and rebuild its cached resources (#2345 by @Laotree).- The
targetspackage, which lists the build targetsnsgo buildaccepts and expandsall,tui,miniprogramand a bare OS name as the tool does, so a tool that writes or checks an app'sbuild.targetsshares the tool's own table (#2259 by @Laotree). nsgotest.App.FrameAt, which runs the display frame the app waits for stamped with a given time without moving the clock, so a test can cover the displays that stamp a frame with when it shows (#2256 by @Laotree).- Record
desktop.SetFullScreenasnsgotest.WindowSetFullScreen, withOnand theDisplayIDit names, instead of a request with an empty action (#2258 by @Laotree). - Report display HDR capabilities (
HDR,HDRSupported,HDRHeadroom,SDRWhiteLevel,MaxLuminance) incore.DisplayInfoand support HDR swapchain output (ColorSpace,FormatRGB10A2Unorm,Device.SurfaceColorSpace) on macOS, Windows, and Linux (#2358 by @oneo-me). BindGroupLayoutDesc.Retained, so a bind group layout opts into recreation after device loss on its own, as the other resources do, instead of only throughViewProps.RetainResources(#2338 by @Laotree).core.ResolveImageandcore.PickImageScale, which name the file anImageSourcewithScalesorVariantsmounts at a pixel ratio, the rule core itself applies (#2272 by @Laotree).- Let TSX sandbox hosts deny access to NSGo storage (#2299 by @J4ck1e2000).
nsgotest.App.GameServicesScoreQueries, which lists eachLoadScorescall with its player scope, time scope and limit, so a test can check that a time scope reaches the platform (#2250 by @Laotree).nsgotest.Shader.Images, so a test can see which images, and which copy of a pixel buffer, reached a shader view, andcore.ShaderProgram.UniformLanes, which names a uniform's lanes inShader.Laneswithout depending on declaration order (#2251 by @Laotree).nsgotest.StatusBarConfig.Immersive, so a test can see thatmobile.Immersive, a screen's or a modal'sStatusBarasked for immersive full screen (#2255 by @Laotree).- Run remote
base/terminalsessions in Android arm64 apps with a cgo-free bionic loader and packaged Ghostty library (#1452 by @houko). - Report every repetition of a benchmark under
-count, and every repetition in the JUnit report, instead of only the first (#2273 by @Laotree). - Release physical keys with their original name and code when
nsgotest.App.BlurWindowsimulates focus loss (#2248 by @J4ck1e2000). - Release a key held with
KeyCodeDownby its name and code whennsgotest'sBlurWindowtakes the focus away, socore.KeyCodesDownempties and the focused view'sOnKeyUphears it (#2248 by @Laotree). - Skip targets with no matching Go packages in
nsgo check -target(#2267 by @J4ck1e2000). - Limit headless fuzz testing to the named package (#2268 by @J4ck1e2000).
- Give a module template's app a module path of its own when its name matches a standard library package, such as
time, and refuse a-modulevalue that names one, instead of generating an app that Go cannot build (#2270 by @Laotree). - Report both clicks of a double tap on iPadOS 26, whose double-tap interaction on every window cancelled the second tap's touches (#2387 by @houko).
- Let
ui.NumberInputaccept and display typed values independently of the increment size (#2263 by @J4ck1e2000). - Refuse a pipeline at
RenderPass.SetPipelinewhose colour targets or depth format do not fit the pass's attachments, skipping its draws instead of recording draws a strict backend rejects (#2341 by @Laotree). - Dereference a closed
BindGrouporBindGroupLayoutfrom its device's restore lists at once, so a frame that creates and closes them no longer grows the device's memory for its lifetime (#2346 by @Laotree). - Compare as WGSL and the GPU backends do on the software device: a NaN is ordered by nothing, equal to nothing and unequal to itself, and
==/!=on bools compare their values (#2335 by @Laotree). - Evaluate the shader math builtins — exponentials, logarithms, the inverse trigonometry, the hyperbolics,
sign,trunc,round,mod,distance,faceForward,refract,transpose,determinant, the matrix constructors and the bit casts — on the software GPU device, and refuse a pipeline that calls a builtin it does not implement instead of drawing zeros (#2334 by @Laotree). - Skip a draw whose vertex buffer slot or index buffer a rejected bind left without a usable buffer, instead of drawing with the buffers bound before it (#2253 by @Laotree).
- Keep the indentation a failing
Example'sgot:andwant:carry innsgo test's output, which previously lost four spaces from every line (#2262 by @Laotree). - Run an unknown command
nsgo Xas an extension: the module'sgo.modtoolXthroughgo tool, elsensgo-XonPATH, with its arguments, streams and exit status, and list the extensions found in the usage (#2366 by @houko). - Add
nsgo game, which runs the game layer's command, the module's tool or elsego runof its release, withNSGO_GAME_VERSIONto choose another (#2366 by @houko). - Run the module's pinned
go tool nsgoin place of annsgoof another version, withNSGO_NO_DELEGATE=1to opt out, and addnsgo version, which says which one ran (#2366 by @houko). - Sample hardware decoders' frames in
gpu.Viewwithout copying them, throughDevice.ImportTexture: Direct3D 11 shared textures on Windows and DMA-BUFs on Linux (#2296 by @oneo-me). - Report the window's display and its refresh rates on HarmonyOS (#1213 by @houko).
- Report physical key positions on HarmonyOS (#1242 by @houko).
- Apply
Scope.RequestOrientationon HarmonyOS (#2227 by @houko). - Receive iOS share-sheet text and files through an App Group inbox on app activation (#655 by @houko).
- Draw backdrop filters, blurs and color filters, on Linux (#2287 by @oneo-me).
- Serve
Locate, foregroundWatchLocationand the location permission on Linux through GeoClue 2 (#1404). - Ask for and learn Local Network access before an app's first LAN connection with
core.PermissionLocalNetwork, which iOS and macOS 15 answer through a Bonjour probe whose typensgo buildadds toNSBonjourServices, and which Android, Windows and Linux answer not gated (#2347). - Set a length to none over another style's with
core.ZeroinPadding,Margin,Borders,BorderWidth,CornerRadiusand the gaps, ascore.Transparentsets a color, which takes awayui.Input's padding and turnsui.Field's box off for text that reads as plain text but edits (#2243 by @oneo-me). - Press physical key positions with
nsgotest'sKeyCode,KeyCodeDownandKeyCodeUpunder-targeton macOS, Windows, Linux, the web, iOS, Android and HarmonyOS (#1242 by @houko). - Give desktop apps the user's Documents, Downloads, Desktop, Pictures, Music and Videos folders with
desktop.UserDir, from macOS's home folders, Windows' known folders and Linux's XDG user directories, andcore.ErrUserDirUnavailableelsewhere (#2284 by @oneo-me). - Localize the website (
nsgo.dev) and public docs (docs/public/) into 12 additional languages (zh-tw,ja,ko,es,fr,de,pt,ru,it,vi,id,tr), covering the home page, navigation, benchmarks, docs, live previews, and social share cards. - Serve
Locate, foregroundWatchLocationand the location permission on Windows through WinRT'sGeolocator(#1404). - Keep Android
PickDirectoriesdocument descriptors open untilCloseand exposeio.ReaderAton opened directory files acrossFolderFSbackends (#2245 by @henry-wm). - Link each platform backend's shaders, canvases, videos, web views and native components only into apps that construct one, and link Android's Go DNS resolver only into Android apps that import
net(#1536). - Redraw only what a canvas's animated values change on Windows and the web, skip Windows canvas paints that cannot change a pixel, and leave the decoration of views outside a Windows partial frame's damage unpainted (#1331 by @oneo-me).
- Place a desktop
ui.Dialognearer the window's middle the more of its height it takes, centering one that fills it (#2234 by @oneo-me). - Name a key pressed by
nsgotest'sKeyCode,KeyCodeDownandKeyCodeUpunder-targetwith the platform's current keyboard layout on macOS, Windows, Linux and the web, soKeyWiszon AZERTY, and keep a modifier held by bothKeyDownandKeyCodeDowndown until both release it (#1242 by @houko). - Clip
Overflow: Hiddenchildren inside the view's border, to its padding box as CSS does, on Apple, Android, Windows, Linux, watchOS and the terminal, so a bareui.Dialogclips in its surface with no inner view (#1362 by @oneo-me). - Build the Windows setup and its signed uninstaller with Go alone, with native Windows dialogs, so
buildno longer needs NSIS'smakensisor leaves a.nsiscript; installations, file types, URL schemes andPathentries of the earlier NSIS installers upgrade in place (#1408 by @houko). - Rebuild Go-only apps when embedded JSON or JavaScript changes in
nsgo dev(#2271 by @J4ck1e2000). - Run a
WebView's injected scripts on HarmonyOS, report the page title with its load, and answercx.SetWebCookies,cx.WebCookiesandcx.ClearWebsiteDatathere withUnavailableinstead of never calling bac...
NSGo 0.3.0
Highlights
- Sound and media on every desktop and phone.
audio.Soundandaudio.Playerplay on Windows, Linux, Android and the web as on Apple, with per-playback control, gapless loops, scheduling on the audio clock and pull-based PCM throughaudio.NewOutput; microphones record on Windows and Linux, and videos play in native Picture in Picture on macOS, tvOS, Android and the web. - Cameras, sensors and devices.
Scope.ScanCodereads codes on macOS, Windows, Linux and Android,Scope.TakePhotoshows a camera on the desktops, speech recognition reaches Android and Windows, and apps read motion in mobile browsers, network state, thermal pressure, display refresh rates, foldable hinges and local DNS-SD services. - Publishing from the tool.
nsgo publishuploads to App Store Connect for TestFlight and to Google Play with text store listings and pre-upload checks; builds write Flatpak bundles, signed MSIX packages, AppImage updates, Homebrew casks and winget manifests, universal Mac and dual-ABI Android packages, and Play Asset Delivery and Background Assets packs. - Agents and debugging.
nsgo dev -automationandnsgo mcpdrive Linux, web and mini program builds and take an app's own MCP tools;nsgo devadds-debugunder Delve,-profile,-previewand Android host rebuilds, and DevTools' overlay mounts in every window, panel, embedded view and sheet. - Terminals. NSGo apps run in terminal cells on macOS, Windows and Linux, and terminal views gain Kitty images, OSC 52 clipboard access, mouse protocols, search and remote sessions in the browser through libghostty-vt.
- Components.
ui/editor, an emoji picker,base/dragdrop, vertical sliders and progress bars, richer form rows, and Mermaid diagrams and TeX or Typst formulas in TSX. - Platform fidelity. Backdrop filters on Android and iOS, Android shader effects, Material 3 app bars and launcher widgets, Liquid Glass on the web, right-to-left mirroring of native controls on every desktop and phone, and smoother text, scrolling and input methods across the backends.
- Memory. Closed windows, removed views, overlays, navigation stacks, shaders and downloads free what they held instead of keeping it for the app's lifetime.
All changes
- Video Picture in Picture in supporting web browsers, with native state callbacks and view-owned sessions (#1479 by @houko).
- Play short sounds and stream long audio on Android through
audio.LoadSoundandaudio.Player(#1097 by @houko). - Sign in through Android Custom Tabs or the browser with app-owned callback schemes, lifecycle cancellation and PKCE/state data preserved for the app (#1397 by @houko).
- Draw
BackdropFilterson Android 12 and later: a view's blur and color filters apply to what is behind it, clipped to its rounded corners (#1605). - Add
nsgo dev -target android -android-host, which reconnects Go rebuilds to the installed Activity over adb (#661 by @houko). - Report Android mouse enter, leave and move events with view and page coordinates, modifier keys and held mouse button across hover, button-down drags and resting modifier changes while respecting
PointerEvents, modal boundaries and deleted views (#1553). - Check and request Android runtime permissions (
RECORD_AUDIO,CAMERA,READ_CALENDAR/WRITE_CALENDAR,BLUETOOTH_CONNECT/BLUETOOTH,READ_MEDIA_AUDIO/READ_EXTERNAL_STORAGE) throughcheckSelfPermission,requestPermissionsandpermissionResultwith persisted asked state, and open the app's settings page viaACTION_APPLICATION_DETAILS_SETTINGS(#1575). - Describe the NSH 0.4.0 accessibility roles (
listbox,option,combobox,group,region,navigation,tree,treeitem,toolbar,menuitemcheckbox,menuitemradio) and localizedpressedandbusystates in Android'sNsgoView, and resolve CSSfontFamilyfallback lists throughTypeface.CustomFallbackBuilderon Android API 29+ (#1547). - Stop rounded view fills under uniform solid borders on Android so fills do not bleed past rounded edges (#1558).
- Draw view and screen shader effects and transitions on Android 10 and later (#1220 by @houko).
- Report
EventSelectionChangefrom Android selection areas (Selection.java/NsgoView.java) with the selected text and the area-relative bounding box of the texts it touches when the area listens forOnTextSelection, deduplicating unchanged updates and reporting clears soDiffViewframes follow text selection on Android (#1555). - Play an Android video in native Picture in Picture with playback controls, explicit automatic entry, and state and restoration callbacks (#1478 by @houko).
- Populate
WebError.Domain("android.webkit.WebViewClient") andCodefromWebResourceError.getErrorCode()on Android web view load failures while leaving access refusals empty (#1586). - Show widget timelines in Android launchers with scheduled entries, images, native timers and links (#1469 by @houko).
- Let Go apps and libraries register scoped MCP tools for
nsgo dev -automationand call the same handlers in tests (#1285 by @houko). - Recommend an App Clip's full app with a scoped native StoreKit overlay through
mobile.ShowAppClipOverlay(#1472 by @houko). - Embed AppImage update locators and publish zsync controls for AppImageUpdate and compatible launchers (#1417 by @houko).
- Enforce CSS-style font struts on macOS and iOS so lines rendered wholly in fallback families of a
FontFamilylist keep at least the primary family's ascent, descent and leading consistently across measurement, drawing, decorations, attachments, line boxes, carets and hit testing (#305, #1550). - Let a library's own audio output hold iOS's shared audio session at a player's levels with
audio.HoldSession(#1931 by @oneo-me). - Loop individual sound playbacks and start each music repeat after the intro (#1221 by @houko).
- Add
audio.NewOutputfor pull-based PCM playback on macOS, iOS, Android and the web (#1057, #1249 by @houko). - Play pull-based PCM with
audio.NewOutputon Windows through shared-mode, event-driven WASAPI (#1251 by @houko). - Control individual sound playbacks on macOS, iOS, Linux and the web and mute audio players without pausing (#1088 by @houko).
nsgo dev -automationandnsgo mcpdrive mini programs (miniprogram_wechat,miniprogram_qq,miniprogram_alipay,miniprogram_douyin) in their developer tools' simulators, over the dev client's existing connection to the dev server (#1431 by @houko).- Download files in the background on iOS and Android and in process on macOS with progress, pause and resume, and optional certificate pinning (#452 by @houko).
- Add per-draw canvas image tinting in Go and TSX (#1111 by @houko).
- Save and restore native clipboard representations and detect clipboard changes on macOS and Windows (#264 by @houko).
- End active IME compositions before reporting
OnBluron Android (InputField) and commit uncommitted preedit text before ending composition and blurring on Linux (GtkEntryandGtkTextView) without duplicating text already committed by IBus or Fcitx (#1563). - Ship command-line programs beside desktop apps with
commands, built from Go packages, with the app's linker flags, identity and their ownldflags, signed with the app, linked into/usr/binby the Linux packages and into Homebrew'sbinby its cask, and put on the user'sPathby the Windows installer withwindows.path(#2203 by @txchen). - Preview files through Windows registered handlers and Linux's GNOME Sushi service (#1372 by @houko).
- Update Windows and Linux application menu bars in place when
SetApplicationMenuis called again and defer showing Windows and Linux windows until their first mount batch is applied, matching macOS (#1554). - Bind the
nsgo devserver to a specific address with-host(#2001). - Build mini programs with the dev client under
nsgo dev, over each platform's request API without linkingnet/http, so-devtools,-highlight,-layoutand-tracereach mini programs (#1617). - Mount DevTools' overlay (update highlights, Pick and the layout audit) in every surface of an
nsgo devbuild — includingdesktop.OpenWindowsecondary windows,desktop.OpenPanelpanels,nsgo.NewViewembedded views and iOSModalPageSheet/ModalFormSheetsheets — synchronized through a shared controller and cleanly unregistered on surface close (#1616). - Open Mermaid diagram links on press and show item tooltips while the pointer rests over them (#1435).
- Draw app-supplied SVG icons and loaded images in Mermaid diagrams (#1436 by @houko).
- Follow the app's scoped palette in Mermaid diagrams without replacing their views (#1439 by @houko).
- Report display refresh rates and follow the window's current display through
Env.Display(#1213 by @houko). - Keep panels docked to a display edge on macOS, Windows, X11 and Wayland compositors with gtk4-layer-shell support (#1377 by @houko).
- Pass unconsumed mouse wheel, trackpad gesture and momentum scroll events from an embedded macOS view up the AppKit responder chain so enclosing host scroll views scroll naturally (#1613).
- Search and choose emoji by localized names in
base.EmojiPickerand themedui.EmojiPicker, with category navigation, recent entries and skin tones (#1337 by @houko). - Set full screen explicitly on a chosen desktop display or through a web press with
desktop.SetFullScreen(#1214 by @houko). - Draw
Drawing.DrawVerticesmeshes in mini programs with the web's canvas player, not yet checked in WeChat DevTools or on a device (#1211). - Write installable Flatpak bundles in Go alongside store archives and builder manifests (#1416 by @houko).
- Add a foldable-display gallery page with explicit region placement and persistent pane counters (#1432 by @houko).
- Support leading, trailing, and automatic (
core.Env.VerticalBarEdge) vertical edge placement onmobile.TabBarandui.TabShell, with iOS vertical b...
NSGo 0.2.0
- Add HarmonyOS as a preview target, whose ArkTS host runs the engine in ArkWeb and draws it with ArkUI views, in
nsgo build,nsgo runandnsgo test -target harmonyos(#79 by @togotop). - Add in-app purchases on macOS, iOS and tvOS through StoreKit 2: the store's products and prices, purchases answering cancelled and pending apart from failed with the signed transaction, updates made outside the app, finishing, current entitlements and restoring, in Go, TSX and
nsgotest, whennsgo.yamlsetsapple.purchases(#353 by @houko). - Add
desktop.SetWindowWorkspacesandWindowOptions.Workspaces, which keep a window on every Space and over other apps' full screen spaces on macOS, at any level but the desktop's, which stays behind them, and on every virtual desktop on X11, withdesktop.CanSetWindowWorkspaces, which says whether it takes effect (#572 by @houko). - Add transparent desktop windows without a frame, shadow or taskbar button, as
WindowOptions.Transparent,NoShadowandSkipTaskbar, the main window'snsgo.WindowTransparent,WindowNoShadowandSkipTaskbar, anddesktop.SetWindowTransparent,SetWindowShadowandSetSkipTaskbar, on macOS, Windows and Linux, withdesktop.CanMakeWindowsTransparentandCanSkipTaskbarsaying where they take effect (#567 by @houko). - Add
PanelOptions.Transparent, a panel with no background, frame or shadow of its own whose content draws its corners and shadow, andPanelOptions.FitContent, a panel sized to its content before it first shows and as it changes, on macOS, Windows and Linux, withdesktop.Transparentsaying whether a transparent panel or window draws nothing of its own now (#315 by @houko). - Add
SidebarShell.Fixed, a sidebar the user cannot resize. - Add
desktop.SetWindowPointerEvents, withWindowOptions.PointerEventsandPanelOptions.PointerEvents, which lets the pointer through a window to the windows below it everywhere or wherever it draws nothing, on macOS, Windows and Linux (#568 by @houko). - Add
desktop.FrontmostApp, the application in front on the desktop with its ID, name, process ID and full screen, tracked as other apps come to the front, on macOS, Windows and X11, anddesktop.CanReadFrontmostApp, which says where it is followed; both are held tocore.AccessFrontmostAppand set in tests throughnsgotest.Environment(#570 by @houko). - Add
ImageSource.PixelsandVersion, which show animage.RGBAthe app draws in anImageor aCanvaswith its alpha, no load events and no fade, swapped in place without encoding on Apple platforms, Windows and Linux (#107 by @houko). - Add
Scope.SetWebCookies, which writes cookies, HttpOnly ones included, to the persistent store the app's web views share on Apple platforms, Windows, Linux and Android, so they can carry the sign-in of the user's own browser (#387 by @houko). - Add
desktop.CanSetWindowLevelanddesktop.CanPlaceWindows, and keep a floating window above the others on Linux under X11, so a Wayland app can tell that its window is neither stacked nor placed (#573 by @houko). - Add
WebView.PinchZoom,Ref.Loadand the platform'sDomainandCodeonWebError; on Windows, Ctrl with the wheel or with + and - zooms a web view only withPinchZoom(#233 by @houko). - Add
core.ScrollEvent.Stale, TSX'sstale, which marks a report from before the platform applied a scroll from code, andterminal.View.HideIndicator, which hides its scroll bar (#692 by @houko). - Add
chat.Composer.AutoFocus, which focuses the editor as the composer mounts. - Add
chat.QuotaRow.Pace, which marks on a limit's bar inchat.Quotaandchat.QuotaSummarywhat would remain had it been used evenly, so a fill short of the mark runs out before it resets. - Add
ContentWidthtochat.Conversationandchat.FloatingConversation, which centers the transcript and the floating composer in at most that width, and fill the conversation without it, replacing the fixed 720 ptchat.ContentWidth(#719). - Report
Video.OnErrorinstead of an opaque picture for a local video whose alpha the platform cannot keep: WebM with alpha on macOS and iOS, any clip with alpha on Windows until Media Foundation's alpha output is checked, and on Linux HEVC with alpha, or VP8 and VP9 with alpha without GStreamer's codecalpha plug-in; addMediaError.Reason,MediaErrorAlphaUnsupportedfor these, so an app can fall back to its own decoder without matching the message (#569 by @houko). - Give a
Select's and aDatePicker's field the height, padding and type theirStylesets, as anInput's, instead of only the view around it, so a small one lines up with aSizeSmallbutton (#721 by @Session500). - Stop reporting a web view load that was stopped, replaced or turned into a download to
OnErroron Apple platforms and Windows (#233 by @houko). - Keep a view's own outer shadows and outline outside its
Overflow: Hiddenclip on Apple for views, images and macOS scroll views, as CSS does (#238 by @houko). - Lay out and draw a Windows window at each size as a drag resizes it, as macOS does, instead of stretching the last frame to the window.
- Show
chat.FloatingConversation's bottom edge blur only while a composer is shown, so a transcript without one ends sharp. - Keep a
base/terminalview following output that comes faster than frames instead of leaving the end, and follow it again once scrolled back to the end (#686). - Keep a multiline
Input's scroll bar along its edges on macOS and iOS, its padding insetting the text, which scrolls under it (#701). - Keep a scroll view still as a text selection starts in it on macOS, rather than scrolling it toward where the last drag ended or the window's corner.
- Open the output directory with
nsgo build -openwhen nsgo leads its terminal's session, as in an app's terminal without a shell, instead of losing the opener as nsgo exits (#672). - Show a bundled macOS app's Dock badge without the notification permission until the app uses notifications (#190 by @houko).
- Accept a bare OS name in
nsgo check -target,nsgo build -targetandnsgo.yaml'sbuild.targets, and an arch-qualified name innsgo test -target, so the commands take each other's target spellings (#593 by @dhruv1220). - Keep an engine fault's
CheckCommitsre-panic ahead of its exit notification, so fault-isolation tests cannot mistake the notification for a swallowed panic (#703). - Stop canvases and shaders on Apple platforms and the web from drawing an earlier image for an image's inline
Dataonce the earlier buffer was freed and its address reused, by keeping a cached image's bytes alive (#715, #737, #751). - Localize the separator between Android TalkBack's state parts with the app's language, including Chinese punctuation (#704).
NSGo 0.1.0
NSGo 0.1.0 is the first release of a cross-platform native UI framework in Go, porting NSH's design: write an app once, in Go or TSX, and it runs on phones, tablets, TVs, watches, desktops and the web in each platform's own views. Its API is not stable yet.
- Every platform from one Mac. Build for macOS, iOS with App Clips, tvOS, watchOS, Windows, Linux, Android and the web with only Go and Xcode, and for WeChat, QQ, Alipay and Douyin mini programs experimentally.
- Native views. Text, input methods, scrolling, menus and accessibility are each platform's own, and what one platform has, such as Liquid Glass, the others imitate.
- Fine-grained updates. Signals update only what reads them, through flexbox and grid layout, CSS-like styles, Tailwind classes, themes and animations on the platform's frame clock.
- Components.
baseoffers unstyled components from buttons to a million-rowDataTable, charts, flow diagrams, a code editor, a rich-text editor and a terminal, anduigives them NSGo's look. - Platform services. Use navigation, notifications, permissions, pickers, sharing, haptics, widgets and Live Activities, and on desktops windows, panels, menus, tray icons and global shortcuts.
- TSX apps. Write apps in TSX as NSH does, with hot updates that keep state, and ship them as signed, sandboxed packages a Go app runs.
- Localized and embeddable. Translate with YAML catalogs, CLDR plurals and right-to-left layout, and embed NSGo in iOS, Android, Go desktop and web apps.
- The
nsgotool. Create apps, run them with hot reload and DevTools, test them withnsgotest, and package them for app stores, Flathub and direct downloads with updates. - Small and fast. A counter app packs to about 8 MB on the desktops and starts faster than NSH, MyGo and GPUI in NSGo's benchmarks.
Thanks to everyone who shaped this release with code, reports and ideas: @houko, @daodao97, @Heyana, @ayuayue, @henry-wm, @Jungley8, @togotop, @westhiker, @Laotree, @OfficialDiLi, @happyhaha1, @roamlog, @yangjuncode, @pdenapo and @monkeyWie.