@gjsify/gtk-host 0.56.0 → 0.57.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import e from"gi://GLib?version=2.0";const t=[`Vulkan: `,`gdk_surface_thaw_updates: `];function isEnvironmentDiagnostic(e){return t.some(t=>e.startsWith(t))}let n=null;function describeLogRecord(e,t=new TextDecoder){let text=e=>e instanceof Uint8Array?t.decode(e):String(e),n=e,r=n?.MESSAGE;if(r!=null){let e=text(r);if(e!==``)return e}let i=n?Object.keys(n).filter(e=>e!==`MESSAGE`&&n[e]!==void 0&&n[e]!==null).map(e=>`${e}=${text(n[e])}`):[];return i.length>0?`<no MESSAGE field> ${i.join(` `)}`:`<a log record with no MESSAGE and no other field>`}function installDiagnosticsGate(){if(n)return n;let t=[],r=[],i=new
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import e from"gi://GLib?version=2.0";const t=[`Vulkan: `,`gdk_surface_thaw_updates: `];function isEnvironmentDiagnostic(e){return t.some(t=>e.startsWith(t))}let n=null;function describeLogRecord(e,t=new TextDecoder){let text=e=>e instanceof Uint8Array?t.decode(e):String(e),n=e,r=n?.MESSAGE;if(r!=null){let e=text(r);if(e!==``)return e}let i=n?Object.keys(n).filter(e=>e!==`MESSAGE`&&n[e]!==void 0&&n[e]!==null).map(e=>`${e}=${text(n[e])}`):[];return i.length>0?`<no MESSAGE field> ${i.join(` `)}`:`<a log record with no MESSAGE and no other field>`}function installDiagnosticsGate(){if(n)return n;let t=[],r=[],i=new Set,a=new TextDecoder,o=e.getenv(`G_MESSAGES_DEBUG`)!==null;return e.log_set_writer_func((n,s)=>{try{let c=describeLogRecord(s,a),l=n&e.LogLevelFlags.LEVEL_MASK;l<=e.LogLevelFlags.LEVEL_WARNING&&(isEnvironmentDiagnostic(c)||i.has(c)?r:t).push(c),(o||l<=e.LogLevelFlags.LEVEL_MESSAGE)&&printerr(c)}catch{printerr(`<gtk-host: a log message could not be decoded>`)}return e.LogWriterOutput.HANDLED}),n={seen:t,environment:r,allowEnvironment(e){i.add(e)},reset(){t.length=0,r.length=0},assertQuiet(e){let n=r.length;if(r.length=0,t.length===0)return;let i=t.length,a=t.join(`
|
|
2
2
|
`);t.length=0;let o=n>0?`\n (plus ${n} diagnostic(s) about the HOST's graphics stack, not the tree — see isEnvironmentDiagnostic)`:``;throw Error(`${e?e+`: `:``}GTK reported ${i} diagnostic(s) that would have passed at exit 0:\n ${a}${o}`)}},n}export{describeLogRecord,installDiagnosticsGate,isEnvironmentDiagnostic};
|
|
@@ -10,6 +10,14 @@ export interface DiagnosticsGate {
|
|
|
10
10
|
*/
|
|
11
11
|
readonly environment: readonly string[];
|
|
12
12
|
reset(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Classify one exact message as the HOST's, for a caller that knows which host it is on.
|
|
15
|
+
*
|
|
16
|
+
* The package reads the operating system nowhere (ADR 0018 would then owe it a claim), so a
|
|
17
|
+
* message that is the host's on ONE platform is declared by the spec running there, not
|
|
18
|
+
* guessed here. Exact text only: a prefix would widen the gate by a namespace.
|
|
19
|
+
*/
|
|
20
|
+
allowEnvironment(message: string): void;
|
|
13
21
|
/** Throw if anything about the tree was recorded, naming every message. */
|
|
14
22
|
assertQuiet(context?: string): void;
|
|
15
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/gtk-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Framework-agnostic GTK4/Adwaita host: the element model UI-framework renderers bind to",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"@girs/gtk-4.0": "5.4.0",
|
|
107
107
|
"@girs/pango-1.0": "5.4.0",
|
|
108
108
|
"@girs/pangocairo-1.0": "5.4.0",
|
|
109
|
-
"@gjsify/adwaita-core": "^0.
|
|
110
|
-
"@gjsify/utils": "^0.
|
|
109
|
+
"@gjsify/adwaita-core": "^0.57.0",
|
|
110
|
+
"@gjsify/utils": "^0.57.0"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@vue/runtime-core": "^3.5.0",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
|
-
"@gjsify/cli": "^0.
|
|
133
|
+
"@gjsify/cli": "^0.57.0",
|
|
134
134
|
"@vue/runtime-core": "^3.5.0",
|
|
135
135
|
"solid-js": "^1.9.0",
|
|
136
|
-
"@gjsify/unit": "^0.
|
|
136
|
+
"@gjsify/unit": "^0.57.0",
|
|
137
137
|
"@types/node": "^25.9.2",
|
|
138
138
|
"typescript": "^6.0.3",
|
|
139
139
|
"@gjsify/node-gi": "file:../../node-gi/node-gi",
|