Skip to content

NSGo 0.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 02:51
· 1469 commits to main since this release
  • Add HarmonyOS as a preview target, whose ArkTS host runs the engine in ArkWeb and draws it with ArkUI views, in nsgo build, nsgo run and nsgo 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, when nsgo.yaml sets apple.purchases (#353 by @houko).
  • Add desktop.SetWindowWorkspaces and WindowOptions.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, with desktop.CanSetWindowWorkspaces, which says whether it takes effect (#572 by @houko).
  • Add transparent desktop windows without a frame, shadow or taskbar button, as WindowOptions.Transparent, NoShadow and SkipTaskbar, the main window's nsgo.WindowTransparent, WindowNoShadow and SkipTaskbar, and desktop.SetWindowTransparent, SetWindowShadow and SetSkipTaskbar, on macOS, Windows and Linux, with desktop.CanMakeWindowsTransparent and CanSkipTaskbar saying 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, and PanelOptions.FitContent, a panel sized to its content before it first shows and as it changes, on macOS, Windows and Linux, with desktop.Transparent saying 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, with WindowOptions.PointerEvents and PanelOptions.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, and desktop.CanReadFrontmostApp, which says where it is followed; both are held to core.AccessFrontmostApp and set in tests through nsgotest.Environment (#570 by @houko).
  • Add ImageSource.Pixels and Version, which show an image.RGBA the app draws in an Image or a Canvas with 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.CanSetWindowLevel and desktop.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.Load and the platform's Domain and Code on WebError; on Windows, Ctrl with the wheel or with + and - zooms a web view only with PinchZoom (#233 by @houko).
  • Add core.ScrollEvent.Stale, TSX's stale, which marks a report from before the platform applied a scroll from code, and terminal.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 in chat.Quota and chat.QuotaSummary what would remain had it been used evenly, so a fill short of the mark runs out before it resets.
  • Add ContentWidth to chat.Conversation and chat.FloatingConversation, which centers the transcript and the floating composer in at most that width, and fill the conversation without it, replacing the fixed 720 pt chat.ContentWidth (#719).
  • Report Video.OnError instead 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; add MediaError.Reason, MediaErrorAlphaUnsupported for these, so an app can fall back to its own decoder without matching the message (#569 by @houko).
  • Give a Select's and a DatePicker's field the height, padding and type their Style sets, as an Input's, instead of only the view around it, so a small one lines up with a SizeSmall button (#721 by @Session500).
  • Stop reporting a web view load that was stopped, replaced or turned into a download to OnError on Apple platforms and Windows (#233 by @houko).
  • Keep a view's own outer shadows and outline outside its Overflow: Hidden clip 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/terminal view 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 -open when 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 -target and nsgo.yaml's build.targets, and an arch-qualified name in nsgo test -target, so the commands take each other's target spellings (#593 by @dhruv1220).
  • Keep an engine fault's CheckCommits re-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 Data once 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).