Skip to content

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 11:58
· 132 commits to master since this release
2f4f33e

Native context menus that leave the window; shortcuts that draw themselves on any keyboard layout; gamepads with rumble; real multi-touch on Windows and Wayland with scrolling, pinch and an on-screen keyboard; desktop notifications; a file system module with streams and watching; and app code that is ES modules, top-level await included.

Read the Skathi 0.10 release post

bun create skathi my-app
bun add @skathi-native/runtime@^0.10.0 && bun add -d @skathi-native/cli@^0.10.0
cargo add skathi@0.10.0

App code must be ES modules: sk build, sk run and sk publish stop on a source that uses require or module.exports. The prebuilt Windows and Linux x64 hosts need an x86-64-v3 CPU (AVX2, BMI2, FMA: Haswell, Excavator or newer). Unstyled buttons and fields now have default styles; any rule of yours overrides them. For Rust hosts, the crates use edition 2024.

Menus and shortcuts

  • SkContextMenu, SkMenuItem, SkSubmenu, SkMenuSeparator: each level is a native popup owned by the window, acrylic on Windows and a behind-window blur on macOS, with keyboard navigation and submenus that stay open while the pointer aims at them.
  • SkKbd draws a shortcut for the user's layout, and defineKeymap handles it: sequences, alternatives, mouse buttons, the wheel and controller buttons; down, up, press, click, doubleClick and hold; scope: "global" on Windows and macOS.

Gamepads

  • navigator.getGamepads() returns real controllers.
  • skathi:gamepad: buttons named by position, radial dead zones per controller, model or device, and rumble.
  • Windows: the Steam Controller (2026) through its Puck, and the Steam Input layout for an app launched from Steam.

Touch

  • Windows and Linux under Wayland: every finger is a pointer of its own, with TouchEvents for code written for phones and mouse events after a tap, as in Chrome (#81).
  • A finger scrolls, flings and lands on snap positions; two fingers pinch; a long press fires contextmenu.
  • touch-action, navigator.maxTouchPoints, and (pointer: coarse) / (hover: none) that follow the hardware plugged in.
  • The on-screen keyboard: raised by a tap in a text field, laid out by inputmode, and controlled through navigator.virtualKeyboard and virtualkeyboardpolicy="manual".
  • Infrared frames, kiosk panels and other screens report exactly what the hardware says; GPUI_TOUCH_TRACE records it.

Notifications

  • appNotifications in skathi:app: native cards with up to two actions, an inline reply, an image, groups, a silent mode, and replacing or withdrawing by id. capabilities() says what the platform supports.

Files

  • skathi:fs (#161): files by path on worker threads, the app's own folders without a permission, anything else through "permissions.fs" in sk.config.json.
  • Atomic and exclusive writes, copy, move, remove, list, stat and disk space.
  • fs.readable() and fs.writable() are web streams; fs.file() is a File that reads the disk lazily; fs.open() is a handle with reads and writes at an offset, devices included; fs.walk() goes through a tree with a glob.
  • fs.watch(): changes in batches, as events or through for await; a watch on one file survives an atomic save; an overflow arrives as rescan.

Standard library

  • FuzzyMatcher in skathi:text.
  • TaskQueue in skathi:time.
  • ImageDecoder.info() in skathi:image: size and EXIF orientation without decoding.

Modules and CSS

  • App code is ES modules in sk dev and in a packaged app: static imports, export, top-level await. __SK__.importModule(id) replaces __SK__.require(id) in the devtools console.
  • Default styles for <button>, text fields, <select> and <textarea>, light or dark from color-scheme.
  • States inside :is() and :where() work.
  • initial, unset, inherit and all: unset override what an earlier rule set.

For embedders

  • Standalone payloads are written as SkBank for a host that advertises payloadFormat 3; the extension stays .skpk.
  • LayerFrame carries picture and target_present_at.
  • macOS: entering fullscreen with a native video layer no longer stalls the window.
  • Local development builds keep only line tables for the workspace's code.

Fixes

  • Windows: a context menu's acrylic backdrop shows its blur instead of a flat grey fill.
  • A text field or textarea without a CSS width takes size or cols characters, 20 by default.
  • A submenu's first item lines up with the item that opened it.
  • RedJS is locked at the pinned version, so an AOT build no longer picks up a newer one.
  • The API reference is generated from the SDK sources.

Known

  • Rumble does not work on macOS.
  • Global shortcuts work on Windows and macOS only.
  • Notifications on Linux support a subset of the options.
  • Touch is Windows and Wayland only. A finger does not scroll inside a <textarea> or <sk-editor>.
  • fs.watch() on macOS reports a rename as removed plus created.
  • Atomic writes: #164, #166.

Full Changelog: v0.9.0...v0.10.0