@effectstream/runtime 0.102.0 → 0.103.1
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 +12 -12
- package/test/reproduction/harness.ts +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectstream/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.103.1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"homepage": "https://effectstream.github.io/docs/",
|
|
6
6
|
"repository": {
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
},
|
|
14
14
|
"exports": "./src/mod.ts",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@effectstream/concise": "0.
|
|
17
|
-
"@effectstream/config": "0.
|
|
18
|
-
"@effectstream/coroutine": "0.
|
|
19
|
-
"@effectstream/crypto": "0.
|
|
20
|
-
"@effectstream/db": "0.
|
|
21
|
-
"@effectstream/event-client": "0.
|
|
22
|
-
"@effectstream/event-server": "0.
|
|
23
|
-
"@effectstream/log": "0.
|
|
24
|
-
"@effectstream/sm": "0.
|
|
25
|
-
"@effectstream/sync": "0.
|
|
26
|
-
"@effectstream/utils": "0.
|
|
16
|
+
"@effectstream/concise": "0.103.1",
|
|
17
|
+
"@effectstream/config": "0.103.1",
|
|
18
|
+
"@effectstream/coroutine": "0.103.1",
|
|
19
|
+
"@effectstream/crypto": "0.103.1",
|
|
20
|
+
"@effectstream/db": "0.103.1",
|
|
21
|
+
"@effectstream/event-client": "0.103.1",
|
|
22
|
+
"@effectstream/event-server": "0.103.1",
|
|
23
|
+
"@effectstream/log": "0.103.1",
|
|
24
|
+
"@effectstream/sm": "0.103.1",
|
|
25
|
+
"@effectstream/sync": "0.103.1",
|
|
26
|
+
"@effectstream/utils": "0.103.1",
|
|
27
27
|
"@fastify/cors": "^11.0.1",
|
|
28
28
|
"@metamask/json-rpc-engine": "^10.0.3",
|
|
29
29
|
"pg": "8.21.0",
|
|
@@ -250,7 +250,14 @@ function ensureCluster(): Promise<Cluster> {
|
|
|
250
250
|
// Write our owner marker AFTER initdb — it refuses a non-empty data dir, so
|
|
251
251
|
// this must not exist beforehand. Read later by cleanupOrphanedClusters.
|
|
252
252
|
writeFileSync(join(dataDir, "repro-owner.pid"), String(process.pid));
|
|
253
|
-
|
|
253
|
+
// Pin the socket dir to our own data dir: Debian/Ubuntu packages default
|
|
254
|
+
// unix_socket_directories to /var/run/postgresql, which is owned by the
|
|
255
|
+
// postgres user, so a cluster booted by anyone else dies at startup with
|
|
256
|
+
// "could not create lock file ...: Permission denied".
|
|
257
|
+
appendFileSync(
|
|
258
|
+
join(dataDir, "postgresql.conf"),
|
|
259
|
+
`\nport = ${port}\nunix_socket_directories = '${dataDir}'\n`,
|
|
260
|
+
);
|
|
254
261
|
execFileSync(join(bin, "pg_ctl"), [
|
|
255
262
|
"-D", dataDir,
|
|
256
263
|
"-l", join(dataDir, "server.log"),
|