@lingxia/bridge 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,7 @@ export function getDisplayLanguage() {
59
59
  *
60
60
  * Change-only, so that this composes with `useSyncExternalStore`: the listener
61
61
  * runs when the language changes, never on subscribe. Read the current value
62
- * with `getDisplayLanguage()`. Logic's `lx.app.displayLanguage.watch` differs
62
+ * with `getDisplayLanguage()`. Logic's `lx.host.displayLanguage.watch` differs
63
63
  * deliberately — it has no render loop to feed, so it delivers immediately.
64
64
  */
65
65
  export function subscribeDisplayLanguage(listener) {
@@ -109,7 +109,7 @@ export function getDisplayLanguage() {
109
109
  *
110
110
  * Change-only, so that this composes with `useSyncExternalStore`: the listener
111
111
  * runs when the language changes, never on subscribe. Read the current value
112
- * with `getDisplayLanguage()`. Logic's `lx.app.displayLanguage.watch` differs
112
+ * with `getDisplayLanguage()`. Logic's `lx.host.displayLanguage.watch` differs
113
113
  * deliberately — it has no render loop to feed, so it delivers immediately.
114
114
  */
115
115
  export function subscribeDisplayLanguage(listener) {
@@ -8,7 +8,7 @@ export declare function getDisplayLanguage(): string;
8
8
  *
9
9
  * Change-only, so that this composes with `useSyncExternalStore`: the listener
10
10
  * runs when the language changes, never on subscribe. Read the current value
11
- * with `getDisplayLanguage()`. Logic's `lx.app.displayLanguage.watch` differs
11
+ * with `getDisplayLanguage()`. Logic's `lx.host.displayLanguage.watch` differs
12
12
  * deliberately — it has no render loop to feed, so it delivers immediately.
13
13
  */
14
14
  export declare function subscribeDisplayLanguage(listener: (language: string) => void): () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxia/bridge",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "private": false,
5
5
  "description": "LingXia Web Runtime - Bridge, boot, and error handling for WebView",
6
6
  "repository": {