@gjsify/http2-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,t=!1,n=null;function loadNativeHttp2(){if(t)return e;t=!0;try{let t=globalThis.imports?.gi;if(!t)return n=Error(`imports.gi not available — not running under GJS?`),null;let r=t.GjsifyHttp2;return r?(e=r,e):(n=Error(`GjsifyHttp2 typelib not found on GI_TYPELIB_PATH`),null)}catch(t){return n=t instanceof Error?t:Error(String(t)),e=null,null}}function hasNativeHttp2(){return loadNativeHttp2()!==null}function getLoadError(){return n}export{getLoadError,hasNativeHttp2,loadNativeHttp2};
1
+ import"./_virtual/_rolldown/runtime.js";import{loadOptionalNativeModule as e}from"@gjsify/utils/core";let t=null,n=!1,r=null;function loadNativeHttp2(){if(n)return t;n=!0;let{module:i,error:a}=e(`GjsifyHttp2`,[`SessionBridge`]);return t=i,r=a,t}function hasNativeHttp2(){return loadNativeHttp2()!==null}function getLoadError(){return r}export{getLoadError,hasNativeHttp2,loadNativeHttp2};
package/meson.build CHANGED
@@ -1,4 +1,10 @@
1
- project('GjsifyHttp2', ['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('GjsifyHttp2', ['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/http2-native",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Optional Vala/GObject bridge providing nghttp2 primitives unreachable through libsoup's high-level GIR API: HPACK header-block encoding (for PUSH_PROMISE / DATA frames), server-side push stream-ID allocation, and a thin nghttp2_session wrapper for future cleartext HTTP/2 (h2c) support. Used by @gjsify/http2 to back ServerHttp2Stream.pushStream() / respondWithFD() / respondWithFile() and enable createServer() over plain TCP once the full Soup ↔ nghttp2 boundary is in place.",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -64,11 +64,12 @@
64
64
  "dependencies": {
65
65
  "@girs/gjs": "5.4.0",
66
66
  "@girs/glib-2.0": "5.4.0",
67
- "@girs/gobject-2.0": "5.4.0"
67
+ "@girs/gobject-2.0": "5.4.0",
68
+ "@gjsify/utils": "^0.53.0"
68
69
  },
69
70
  "devDependencies": {
70
- "@gjsify/cli": "^0.52.0",
71
- "@gjsify/unit": "^0.52.0",
71
+ "@gjsify/cli": "^0.53.0",
72
+ "@gjsify/unit": "^0.53.0",
72
73
  "@ts-for-gir/cli": "^4.1.0",
73
74
  "@types/node": "^25.9.2",
74
75
  "typescript": "^6.0.3"
@@ -84,12 +85,12 @@
84
85
  },
85
86
  "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/node/http2-native#readme",
86
87
  "optionalDependencies": {
87
- "@gjsify/http2-native-darwin-arm64": "0.52.0",
88
- "@gjsify/http2-native-darwin-x64": "0.52.0",
89
- "@gjsify/http2-native-linux-arm64": "0.52.0",
90
- "@gjsify/http2-native-linux-ppc64": "0.52.0",
91
- "@gjsify/http2-native-linux-riscv64": "0.52.0",
92
- "@gjsify/http2-native-linux-s390x": "0.52.0",
93
- "@gjsify/http2-native-linux-x64": "0.52.0"
88
+ "@gjsify/http2-native-darwin-arm64": "0.53.0",
89
+ "@gjsify/http2-native-darwin-x64": "0.53.0",
90
+ "@gjsify/http2-native-linux-arm64": "0.53.0",
91
+ "@gjsify/http2-native-linux-ppc64": "0.53.0",
92
+ "@gjsify/http2-native-linux-riscv64": "0.53.0",
93
+ "@gjsify/http2-native-linux-s390x": "0.53.0",
94
+ "@gjsify/http2-native-linux-x64": "0.53.0"
94
95
  }
95
96
  }