create-syncular-app 0.15.26 → 0.15.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-syncular-app",
3
- "version": "0.15.26",
3
+ "version": "0.15.27",
4
4
  "description": "Scaffold a new Syncular app: `create-syncular-app`",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -49,6 +49,6 @@
49
49
  "!dist/**/*.test.d.ts"
50
50
  ],
51
51
  "devDependencies": {
52
- "@syncular/typegen": "0.15.26"
52
+ "@syncular/typegen": "0.15.27"
53
53
  }
54
54
  }
@@ -14,6 +14,7 @@
14
14
  * you plug in your real session/token check.
15
15
  */
16
16
  import {
17
+ ensureSyncServerReady,
17
18
  MemorySegmentStore,
18
19
  SqliteServerStorage,
19
20
  type SyncServerConfig,
@@ -35,5 +36,6 @@ const app = createSyncularHono({
35
36
  });
36
37
 
37
38
  const port = Number(process.env.PORT ?? 8787);
39
+ await ensureSyncServerReady(config);
38
40
  Bun.serve({ port, fetch: app.fetch });
39
41
  console.log(`sync server: http://localhost:${port}`);
@@ -20,6 +20,7 @@
20
20
  import { dirname, join } from 'node:path';
21
21
  import {
22
22
  createRealtimeHub,
23
+ ensureSyncServerReady,
23
24
  MemorySegmentStore,
24
25
  type RealtimeSession,
25
26
  SqliteServerStorage,
@@ -48,6 +49,7 @@ const config: SyncServerConfig = {
48
49
  resolveScopes,
49
50
  realtime: hub,
50
51
  };
52
+ await ensureSyncServerReady(config);
51
53
  const hono = createSyncularHono({
52
54
  config,
53
55
  // Replace with your real auth: return { actorId, partition } or null (401).
@@ -21,7 +21,7 @@ tauri = { version = "2", features = [] }
21
21
  # The syncular plugin from crates.io. `native-transport` gives the core its
22
22
  # real HTTP + WebSocket transport (ureq + tungstenite) inside the host
23
23
  # process — the webview never talks to the sync server directly.
24
- tauri-plugin-syncular = { version = "0.15.26", features = ["native-transport"] }
24
+ tauri-plugin-syncular = { version = "0.15.27", features = ["native-transport"] }
25
25
 
26
26
  [features]
27
27
  default = []
@@ -16,6 +16,7 @@
16
16
  import { dirname, join } from 'node:path';
17
17
  import {
18
18
  createRealtimeHub,
19
+ ensureSyncServerReady,
19
20
  MemorySegmentStore,
20
21
  type RealtimeSession,
21
22
  SqliteServerStorage,
@@ -44,6 +45,7 @@ const config: SyncServerConfig = {
44
45
  resolveScopes,
45
46
  realtime: hub,
46
47
  };
48
+ await ensureSyncServerReady(config);
47
49
  const hono = createSyncularHono({
48
50
  config,
49
51
  // Replace with your real auth: return { actorId, partition } or null (401).