Skip to content

Commit 267342e

Browse files
chore: Release 2026-07-28 20:34 (#73)
1 parent e0c12e4 commit 267342e

5 files changed

Lines changed: 18 additions & 24 deletions

File tree

.changeset/i18n-fallback-missing-keys.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/native-framework-urls.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/web-loading-preview.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @lynx-js/go-web
22

3+
## 0.8.0
4+
5+
### Minor Changes
6+
7+
- Decouple `<Go>` chrome copy from host/Rspress i18n. ([#71](https://github.com/lynx-community/go-web/pull/71))
8+
- `go.*` strings are package-owned (`en` / `zh` via `useLang`); override with `config.i18n` only.
9+
- `rspressAdapter` no longer wires Rspress `useI18n` — site `i18n.json` does not need `go.*` keys.
10+
- Removed `GoConfig.useI18n` (breaking for custom hooks; use `i18n` + `useLang` instead).
11+
12+
- Add `GoConfig.nativeFrameworks`, per-framework overrides for the built-in native framework registry, so a site can supply the URLs this package can't own: `downloadUrl` (where to get the host app) and `learnMoreUrl` (where to send a viewer whose device can't run the bundle), plus `appName` / `deepLinkScheme`. Both URLs accept a plain string or a `{ cn, en }` pair, mirroring `explorerUrl`. `platform` is deliberately not overridable. ([#74](https://github.com/lynx-community/go-web/pull/74))
13+
14+
A deep link to an app that isn't installed fails silently. Rather than showing a download prompt next to every deep link — which reads as "this probably won't work" — the click itself is the probe: if the tab is still visible and focused ~5s after the navigation, nothing handled the scheme, and the link is replaced **in place** by `downloadUrl` (`go.deeplink.download.*`, suffixable per framework like the `open` keys). The inference is one-way — only ever "not installed", never "installed" — and a callback arriving more than 8s late is discarded, since that means the tab was suspended rather than that the app is missing. Probing is skipped entirely when no `downloadUrl` is configured. This revives the fallback mechanism designed in #60, which was superseded before it landed.
15+
16+
The can't-run-here hint (a desktop bundle opened on a phone) links to `learnMoreUrl` when one is supplied, and stays plain text otherwise — no probing there, since nothing can launch on that device anyway.
17+
18+
- Add `webLoadingScreen` (`'overlay' | 'preview'`) so the Web tab can use the Preview image/video as its loading screen while the web bundle loads concurrently, then reveal the live Web view once it paints. When omitted, auto-selects `'preview'` if `defaultTab` is `'web'` and a preview image exists; otherwise `'overlay'`. ([#72](https://github.com/lynx-community/go-web/pull/72))
19+
320
## 0.7.0
421

522
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lynx-js/go-web",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"description": "Interactive <Go> component for embedding live Lynx examples on the web. The example/ website doubles as the community example gallery.",
55
"keywords": [
66
"lynx",

0 commit comments

Comments
 (0)