@hadoku/game-server 0.1.236 → 0.1.237

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.
@@ -73,6 +73,8 @@ export interface Events {
73
73
  events: number;
74
74
  forms: number;
75
75
  }>;
76
+ /** Once every change made so far is on disk, or its write has failed (logged). */
77
+ settled(): Promise<void>;
76
78
  }
77
79
  export declare function openEvents(file: string, log: (entry: Record<string, unknown>) => void, now?: () => number): Promise<Events>;
78
80
  export {};
@@ -204,5 +204,8 @@ export async function openEvents(file, log, now = Date.now) {
204
204
  throw new Error('events: the merged store was not saved');
205
205
  return { events: movedEvents, forms: movedForms };
206
206
  },
207
+ async settled() {
208
+ await writing;
209
+ },
207
210
  };
208
211
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-server",
3
- "version": "0.1.236",
4
- "gitHead": "8f448ebdc8024066b07069f72f8e82fc89dc69d7",
3
+ "version": "0.1.237",
4
+ "gitHead": "3544d2b4032de5ece7ab5a0a5799985e074cbb15",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The server parts any hosted game shares, above the kernel: the app config and edge auth, the room core (identity, seats, sessions, membership, the room list, the generic room routes), match hosting (the host contract, local and remote JVMs, placement, the start queue, recordings, the in-process and relay runtimes), streams, erase, telemetry and usage. Knows no game; Magic plugs in from apps/server. MIT; imports only node built-ins, express, socket.io, @wolffm/* and the platform packages.",
@@ -16,9 +16,9 @@
16
16
  "play/remote/"
17
17
  ],
18
18
  "dependencies": {
19
- "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.236",
20
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.236",
21
- "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.269",
19
+ "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.237",
20
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.237",
21
+ "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.270",
22
22
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.3",
23
23
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.152",
24
24
  "@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.152",