@gjsify/terminal-native 0.52.0 → 0.53.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.
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";let e=null;const t=globalThis.imports?.gi;if(t)try{e=t.GjsifyTerminal}catch{}const n=e;function hasNativeTerminal(){return e!==null}export{hasNativeTerminal,n as nativeTerminal};
1
+ import"./_virtual/_rolldown/runtime.js";import{loadOptionalNativeModule as e}from"@gjsify/utils/core";const t=e(`GjsifyTerminal`,[`Terminal`,`ResizeWatcher`]),n=t.module,r=n;function hasNativeTerminal(){return n!==null}function getNativeTerminalLoadError(){return t.error}export{getNativeTerminalLoadError,hasNativeTerminal,r as nativeTerminal};
@@ -26,3 +26,9 @@ export interface GjsifyTerminalModule {
26
26
  export declare const nativeTerminal: GjsifyTerminalModule | null;
27
27
  /** Returns true when the GjsifyTerminal native library is available. */
28
28
  export declare function hasNativeTerminal(): boolean;
29
+ /**
30
+ * Why {@link nativeTerminal} is `null`: girepository's "not found" when the
31
+ * prebuild is not installed, a `NativeLibraryLoadError` naming the missing
32
+ * dependency when it is installed but its library will not open.
33
+ */
34
+ export declare function getNativeTerminalLoadError(): Error | null;
package/meson.build CHANGED
@@ -1,4 +1,10 @@
1
- project('GjsifyTerminal', ['c', 'vala'], version: '1.0')
1
+ # `buildtype=plain` = NO `-g`. ld64 emits a DEBUG MAP into any image whose objects
2
+ # carry DWARF — one `N_OSO` stab per object, holding its MTIME — so with `-g` every
3
+ # rebuild of this commit differed in bytes (plus the `LC_UUID` and the ad-hoc signature
4
+ # computed over them) and `commit-prebuilds` re-committed all 16 darwin dylibs. That map
5
+ # names intermediate `.o` files no consumer can have. Why: docs/prebuilds.md.
6
+ project('GjsifyTerminal', ['c', 'vala'], version: '1.0',
7
+ default_options: ['buildtype=plain'])
2
8
 
3
9
  root_dir = meson.current_source_dir()
4
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/terminal-native",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Optional Vala/GObject bridge providing Posix.isatty(), ioctl(TIOCGWINSZ), termios raw-mode and SIGWINCH for GJS. Enhances @gjsify/tty and @gjsify/process with correct terminal behaviour when installed.",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -61,10 +61,11 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@girs/glib-2.0": "5.4.0",
64
- "@girs/gobject-2.0": "5.4.0"
64
+ "@girs/gobject-2.0": "5.4.0",
65
+ "@gjsify/utils": "^0.53.0"
65
66
  },
66
67
  "devDependencies": {
67
- "@gjsify/cli": "^0.52.0",
68
+ "@gjsify/cli": "^0.53.0",
68
69
  "@ts-for-gir/cli": "^4.1.0",
69
70
  "@types/node": "^25.9.2",
70
71
  "typescript": "^6.0.3"
@@ -80,12 +81,12 @@
80
81
  },
81
82
  "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/node/terminal-native#readme",
82
83
  "optionalDependencies": {
83
- "@gjsify/terminal-native-darwin-arm64": "0.52.0",
84
- "@gjsify/terminal-native-darwin-x64": "0.52.0",
85
- "@gjsify/terminal-native-linux-arm64": "0.52.0",
86
- "@gjsify/terminal-native-linux-ppc64": "0.52.0",
87
- "@gjsify/terminal-native-linux-riscv64": "0.52.0",
88
- "@gjsify/terminal-native-linux-s390x": "0.52.0",
89
- "@gjsify/terminal-native-linux-x64": "0.52.0"
84
+ "@gjsify/terminal-native-darwin-arm64": "0.53.0",
85
+ "@gjsify/terminal-native-darwin-x64": "0.53.0",
86
+ "@gjsify/terminal-native-linux-arm64": "0.53.0",
87
+ "@gjsify/terminal-native-linux-ppc64": "0.53.0",
88
+ "@gjsify/terminal-native-linux-riscv64": "0.53.0",
89
+ "@gjsify/terminal-native-linux-s390x": "0.53.0",
90
+ "@gjsify/terminal-native-linux-x64": "0.53.0"
90
91
  }
91
92
  }