@pluv/platform-pluv 0.38.7 → 0.38.8
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +9 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +6 -6
- package/src/PluvPlatform.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-pluv@0.38.
|
|
2
|
+
> @pluv/platform-pluv@0.38.8 build /home/runner/work/pluv/pluv/packages/platform-pluv
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m10.
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m12.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m10.72 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 110ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m12.26 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 113ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 5913ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.43 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.43 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @pluv/platform-pluv
|
|
2
2
|
|
|
3
|
+
## 0.38.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a39343b: Fix the `onUserDisconnected` event triggering when `onUserConnected` event triggers.
|
|
8
|
+
- @pluv/crdt@0.38.8
|
|
9
|
+
- @pluv/io@0.38.8
|
|
10
|
+
- @pluv/types@0.38.8
|
|
11
|
+
|
|
3
12
|
## 0.38.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -248,12 +248,14 @@ var PluvPlatform = class extends import_io.AbstractPlatform {
|
|
|
248
248
|
const encodedState = data.storage;
|
|
249
249
|
const user = data.user;
|
|
250
250
|
yield Promise.resolve((_f = this._listeners) == null ? void 0 : _f.onUserConnected({ context, encodedState, room, user }));
|
|
251
|
+
return c.json({ data: { ok: true } }, 200);
|
|
251
252
|
}
|
|
252
253
|
case "user-disconnected": {
|
|
253
254
|
const room = data.room;
|
|
254
255
|
const encodedState = data.storage;
|
|
255
256
|
const user = data.user;
|
|
256
257
|
yield Promise.resolve((_g = this._listeners) == null ? void 0 : _g.onUserDisconnected({ context, encodedState, room, user }));
|
|
258
|
+
return c.json({ data: { ok: true } }, 200);
|
|
257
259
|
}
|
|
258
260
|
default:
|
|
259
261
|
return c.json({ data: { ok: true } }, 200);
|
package/dist/index.mjs
CHANGED
|
@@ -220,12 +220,14 @@ var PluvPlatform = class extends AbstractPlatform {
|
|
|
220
220
|
const encodedState = data.storage;
|
|
221
221
|
const user = data.user;
|
|
222
222
|
yield Promise.resolve((_f = this._listeners) == null ? void 0 : _f.onUserConnected({ context, encodedState, room, user }));
|
|
223
|
+
return c.json({ data: { ok: true } }, 200);
|
|
223
224
|
}
|
|
224
225
|
case "user-disconnected": {
|
|
225
226
|
const room = data.room;
|
|
226
227
|
const encodedState = data.storage;
|
|
227
228
|
const user = data.user;
|
|
228
229
|
yield Promise.resolve((_g = this._listeners) == null ? void 0 : _g.onUserDisconnected({ context, encodedState, room, user }));
|
|
230
|
+
return c.json({ data: { ok: true } }, 200);
|
|
229
231
|
}
|
|
230
232
|
default:
|
|
231
233
|
return c.json({ data: { ok: true } }, 200);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-pluv",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.8",
|
|
4
4
|
"description": "@pluv/io adapter for pluv.io",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"fast-json-stable-stringify": "^2.1.0",
|
|
22
22
|
"hono": "^4.7.4",
|
|
23
23
|
"zod": "^3.24.2",
|
|
24
|
-
"@pluv/crdt": "^0.38.
|
|
25
|
-
"@pluv/io": "^0.38.
|
|
26
|
-
"@pluv/types": "^0.38.
|
|
24
|
+
"@pluv/crdt": "^0.38.8",
|
|
25
|
+
"@pluv/io": "^0.38.8",
|
|
26
|
+
"@pluv/types": "^0.38.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"eslint": "^8.57.1",
|
|
30
30
|
"tsup": "^8.4.0",
|
|
31
31
|
"typescript": "^5.8.2",
|
|
32
|
-
"@pluv/tsconfig": "^0.38.
|
|
33
|
-
"eslint-config-pluv": "^0.38.
|
|
32
|
+
"@pluv/tsconfig": "^0.38.8",
|
|
33
|
+
"eslint-config-pluv": "^0.38.8"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/PluvPlatform.ts
CHANGED
|
@@ -238,6 +238,8 @@ export class PluvPlatform<
|
|
|
238
238
|
const user = data.user as any;
|
|
239
239
|
|
|
240
240
|
await Promise.resolve(this._listeners?.onUserConnected({ context, encodedState, room, user }));
|
|
241
|
+
|
|
242
|
+
return c.json({ data: { ok: true } }, 200);
|
|
241
243
|
}
|
|
242
244
|
case "user-disconnected": {
|
|
243
245
|
const room = data.room;
|
|
@@ -245,6 +247,8 @@ export class PluvPlatform<
|
|
|
245
247
|
const user = data.user as any;
|
|
246
248
|
|
|
247
249
|
await Promise.resolve(this._listeners?.onUserDisconnected({ context, encodedState, room, user }));
|
|
250
|
+
|
|
251
|
+
return c.json({ data: { ok: true } }, 200);
|
|
248
252
|
}
|
|
249
253
|
default:
|
|
250
254
|
return c.json({ data: { ok: true } }, 200);
|