Commitd3f331a0Recorded24 Jul 2026Repositorylantern
Release 0.1.4: URL-app origin-aware nav handler + result-returning eval
Message
- app: URL-origin apps keep their own origin in the webview instead of being externalized to the system browser on first load (the pivot's desktop-shell- onto-a-local-node path).
- webview: result-returning JS eval (webview-eval-js-result), an optional op.
Changed
RELEASES.md | 13 +++++++++++++
package.sgl | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)Diff
RELEASES.mdmodified
@@ -17,6 +17,19 @@ slug: releases
17
# Lantern Releases 18
19
+20
## 0.1.4+21
+22
Two additions for apps that render a live origin and talk back to their page. A Lantern app pointed at an `http://` or `https://` URL now stays in its own window instead of opening in the system browser, and the webview can return a JavaScript eval's value to Sigil. Existing projects build without changes.+23
+24
### URL apps stay in the window+25
+26
An app whose `assets:` is a URL, rather than a bundled `lantern://` directory, used to have its very first load treated as an external navigation, so it opened in the user's default browser instead of the app window. Lantern now keeps the app's own origin in the webview and sends only genuinely off-origin links to the browser. This is what lets a desktop shell render a local server's page as a native window (Slate's desktop shell onto its local node).+27
+28
### Result-returning JavaScript eval+29
+30
`webview-eval-js-result` returns the value (or error) of a JavaScript evaluation to Sigil, closing the fire-and-forget gap where a page's return value was dropped inside GLib. It is an optional op: backends that do not implement it return `#f`, so callers degrade gracefully.+31
+32
33
## 0.1.3 34
35
A big idle-CPU cut for every Lantern desktop app. The run loop no longer polls on a timer while nothing is happening: it blocks on the windowing system's own event descriptors and wakes only when there is real work, so an idle app costs a fraction of what it used to. Existing projects build without changes.package.sglmodified
@@ -14,7 +14,7 @@
14
15
(workspace 16
name: "lantern"−17
version: "0.1.3"+17
version: "0.1.4" 18
description: "A Sigil-native desktop wrapper for web apps" 19
url: "https://codeberg.org/sigil/lantern" 20
license: "BSD-3-Clause"