jazz-run 0.8.21 → 0.8.23
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/dist/startSyncServer.js +1 -0
- package/dist/startSyncServer.js.map +1 -1
- package/package.json +7 -7
- package/src/startSyncServer.ts +1 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# jazz-run
|
2
2
|
|
3
|
+
## 0.8.23
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 124bf67: Enable the deletePeerStateOnClose on the Websocket peers
|
8
|
+
- Updated dependencies [6f745be]
|
9
|
+
- Updated dependencies [d348c2d]
|
10
|
+
- Updated dependencies [124bf67]
|
11
|
+
- Updated dependencies [6902b5b]
|
12
|
+
- Updated dependencies [1a0cd3d]
|
13
|
+
- cojson@0.8.23
|
14
|
+
- jazz-tools@0.8.23
|
15
|
+
- cojson-transport-ws@0.8.23
|
16
|
+
- cojson-storage-sqlite@0.8.23
|
17
|
+
|
3
18
|
## 0.8.21
|
4
19
|
|
5
20
|
### Patch Changes
|
package/dist/startSyncServer.js
CHANGED
@@ -44,6 +44,7 @@ export const startSyncServer = async ({ port, inMemory, db, }) => {
|
|
44
44
|
websocket: ws,
|
45
45
|
expectPings: false,
|
46
46
|
batchingByDefault: false,
|
47
|
+
deletePeerStateOnClose: true,
|
47
48
|
}));
|
48
49
|
ws.on("error", (e) => console.error(`Error on connection ${clientId}:`, e));
|
49
50
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startSyncServer.js","sourceRoot":"","sources":["../src/startSyncServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,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AC,GAAG,KAAK,SAAS,EAAE,CAAC;YAC1B,GAAG,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,IAAI,CAAC,EAAE;gBACnD,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEjD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"bin": "./dist/index.js",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
|
-
"version": "0.8.
|
6
|
+
"version": "0.8.23",
|
7
7
|
"dependencies": {
|
8
8
|
"@effect/cli": "^0.41.2",
|
9
9
|
"@effect/platform-node": "^0.57.2",
|
@@ -11,11 +11,11 @@
|
|
11
11
|
"@effect/printer-ansi": "^0.34.5",
|
12
12
|
"@effect/schema": "^0.71.1",
|
13
13
|
"@effect/typeclass": "^0.25.5",
|
14
|
-
"cojson": "0.8.
|
15
|
-
"cojson-storage-sqlite": "0.8.
|
16
|
-
"cojson-transport-ws": "0.8.
|
14
|
+
"cojson": "0.8.23",
|
15
|
+
"cojson-storage-sqlite": "0.8.23",
|
16
|
+
"cojson-transport-ws": "0.8.23",
|
17
17
|
"effect": "^3.6.5",
|
18
|
-
"jazz-tools": "0.8.
|
18
|
+
"jazz-tools": "0.8.23",
|
19
19
|
"ws": "^8.14.2"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"scripts": {
|
26
26
|
"format-and-lint": "biome check .",
|
27
27
|
"format-and-lint:fix": "biome check . --write",
|
28
|
-
"build": "rm -rf ./dist && tsc --sourceMap --outDir dist",
|
29
|
-
"build-and-run": "pnpm turbo build &&
|
28
|
+
"build": "rm -rf ./dist && tsc --sourceMap --outDir dist && chmod +x ./dist/index.js",
|
29
|
+
"build-and-run": "pnpm turbo build && ./dist/index.js sync --in-memory"
|
30
30
|
}
|
31
31
|
}
|