@gjsify/rolldown-native 0.64.6 → 0.64.8

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.
Files changed (2) hide show
  1. package/meson.build +15 -1
  2. package/package.json +6 -6
package/meson.build CHANGED
@@ -29,7 +29,12 @@ host_system = host_machine.system()
29
29
  # json-glib is used by BundlerSession to peek at the hook name + request id
30
30
  # from the Rust-emitted JSON envelope before routing to the matching GObject
31
31
  # signal. The full payload is forwarded to JS unparsed.
32
- host_provided = ['glib-2.0', 'gobject-2.0', 'json-glib-1.0']
32
+ #
33
+ # GLib alone is left to `dynamic_lookup`: gjs always loads it. json-glib is not
34
+ # loaded by the host, so unrecorded it leaves `json_*` unbound; it is linked by
35
+ # path instead, which records ITS load command while GLib stays out of the link
36
+ # line.
37
+ host_provided = ['glib-2.0', 'gobject-2.0']
33
38
 
34
39
  vala_deps = []
35
40
  foreach pkg : host_provided
@@ -39,6 +44,15 @@ foreach pkg : host_provided
39
44
  : dep
40
45
  endforeach
41
46
 
47
+ json_dep = dependency('json-glib-1.0')
48
+ if host_system == 'darwin'
49
+ vala_deps += json_dep.partial_dependency(compile_args: true, includes: true)
50
+ vala_deps += cc.find_library('json-glib-1.0',
51
+ dirs: json_dep.get_variable(pkgconfig: 'libdir'))
52
+ else
53
+ vala_deps += json_dep
54
+ endif
55
+
42
56
  host_provided_link_args = host_system == 'darwin' ? ['-Wl,-undefined,dynamic_lookup'] : []
43
57
 
44
58
  # ----------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/rolldown-native",
3
- "version": "0.64.6",
3
+ "version": "0.64.8",
4
4
  "description": "Phase D-2 POC: Vala/GObject + Rust cdylib bridge to rolldown for GJS. Wraps `rolldown::Bundler::generate()` (async, tokio) in a per-call current-thread runtime so JS sees a sync `bundle()` call. JSON-encoded BundlerOptions in, JSON-encoded BundleOutput out — the boundary stays small even though rolldown's option surface is enormous. POC scope: no JS plugins (Phase B), no watch/HMR, no incremental builds. Companion to `@gjsify/lightningcss-native`; together they remove the last two Rust-crate runtime blockers from the gjsify build pipeline (Phase D-3 unblock).",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -58,7 +58,7 @@
58
58
  "@girs/gobject-2.0": "5.4.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@gjsify/cli": "^0.64.6",
61
+ "@gjsify/cli": "^0.64.8",
62
62
  "@types/node": "^25.9.2",
63
63
  "typescript": "^6.0.3"
64
64
  },
@@ -74,9 +74,9 @@
74
74
  },
75
75
  "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/infra/rolldown-native#readme",
76
76
  "optionalDependencies": {
77
- "@gjsify/rolldown-native-darwin-arm64": "0.64.6",
78
- "@gjsify/rolldown-native-darwin-x64": "0.64.6",
79
- "@gjsify/rolldown-native-linux-arm64": "0.64.6",
80
- "@gjsify/rolldown-native-linux-x64": "0.64.6"
77
+ "@gjsify/rolldown-native-darwin-arm64": "0.64.8",
78
+ "@gjsify/rolldown-native-darwin-x64": "0.64.8",
79
+ "@gjsify/rolldown-native-linux-arm64": "0.64.8",
80
+ "@gjsify/rolldown-native-linux-x64": "0.64.8"
81
81
  }
82
82
  }