@zap-js/client 0.1.4 → 0.1.5
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.
|
@@ -96,6 +96,12 @@ async function runProductionServer(binPath, options, workDir, prodConfig) {
|
|
|
96
96
|
const ipcServer = new IpcServer(socketPath);
|
|
97
97
|
await ipcServer.start();
|
|
98
98
|
cliLogger.succeedSpinner('ipc', 'IPC server started');
|
|
99
|
+
// Initialize RPC client for bidirectional IPC communication
|
|
100
|
+
// This allows TypeScript route handlers to call Rust functions via rpc.call()
|
|
101
|
+
cliLogger.spinner('rpc', 'Initializing RPC client...');
|
|
102
|
+
const { initRpcClient } = await import('../../runtime/rpc-client.js');
|
|
103
|
+
await initRpcClient(socketPath + '.rpc');
|
|
104
|
+
cliLogger.succeedSpinner('rpc', 'RPC client initialized');
|
|
99
105
|
// Load and register route handlers
|
|
100
106
|
const routes = await loadRouteHandlers(ipcServer, workDir);
|
|
101
107
|
// Build Rust server configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zap-js/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "High-performance fullstack React framework - Client package",
|
|
5
5
|
"homepage": "https://github.com/saint0x/zapjs",
|
|
6
6
|
"repository": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"ws": "^8.16.0"
|
|
75
75
|
},
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@zap-js/darwin-arm64": "0.1.
|
|
78
|
-
"@zap-js/darwin-x64": "0.1.
|
|
79
|
-
"@zap-js/linux-x64": "0.1.
|
|
77
|
+
"@zap-js/darwin-arm64": "0.1.5",
|
|
78
|
+
"@zap-js/darwin-x64": "0.1.5",
|
|
79
|
+
"@zap-js/linux-x64": "0.1.5"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"react": "^18.0.0",
|