@pluv/client 0.38.2 → 0.38.4
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 +15 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +5 -5
- package/src/PluvClient.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/client@0.38.
|
|
2
|
+
> @pluv/client@0.38.4 build /home/runner/work/pluv/pluv/packages/client
|
|
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
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m48.17 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 94ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m49.48 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 103ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3405ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m23.16 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m23.16 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pluv/client
|
|
2
2
|
|
|
3
|
+
## 0.38.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @pluv/crdt@0.38.4
|
|
8
|
+
- @pluv/types@0.38.4
|
|
9
|
+
|
|
10
|
+
## 0.38.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 8346273: Disallow the `# @pluv/client character in router event names.
|
|
15
|
+
- @pluv/crdt@0.38.3
|
|
16
|
+
- @pluv/types@0.38.3
|
|
17
|
+
|
|
3
18
|
## 0.38.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1265,6 +1265,10 @@ var PluvClient = class {
|
|
|
1265
1265
|
return new PluvProcedure();
|
|
1266
1266
|
}
|
|
1267
1267
|
router(events) {
|
|
1268
|
+
const invalidName = Object.keys(events).find((name) => name.includes("$"));
|
|
1269
|
+
if (typeof invalidName === "string") {
|
|
1270
|
+
throw new Error(`Invalid event name. Event names must not contain $: "${invalidName}"`);
|
|
1271
|
+
}
|
|
1268
1272
|
return new PluvRouter(events);
|
|
1269
1273
|
}
|
|
1270
1274
|
_logDebug(...data) {
|
package/dist/index.mjs
CHANGED
|
@@ -1234,6 +1234,10 @@ var PluvClient = class {
|
|
|
1234
1234
|
return new PluvProcedure();
|
|
1235
1235
|
}
|
|
1236
1236
|
router(events) {
|
|
1237
|
+
const invalidName = Object.keys(events).find((name) => name.includes("$"));
|
|
1238
|
+
if (typeof invalidName === "string") {
|
|
1239
|
+
throw new Error(`Invalid event name. Event names must not contain $: "${invalidName}"`);
|
|
1240
|
+
}
|
|
1237
1241
|
return new PluvRouter(events);
|
|
1238
1242
|
}
|
|
1239
1243
|
_logDebug(...data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/client",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.4",
|
|
4
4
|
"description": "@pluv/io frontend client",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"wonka": "^6.3.5",
|
|
21
|
-
"@pluv/
|
|
22
|
-
"@pluv/
|
|
21
|
+
"@pluv/types": "^0.38.4",
|
|
22
|
+
"@pluv/crdt": "^0.38.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "^8.57.1",
|
|
26
26
|
"tsup": "^8.4.0",
|
|
27
27
|
"typescript": "^5.8.2",
|
|
28
|
-
"@pluv/tsconfig": "^0.38.
|
|
29
|
-
"eslint-config-pluv": "^0.38.
|
|
28
|
+
"@pluv/tsconfig": "^0.38.4",
|
|
29
|
+
"eslint-config-pluv": "^0.38.4"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/PluvClient.ts
CHANGED
|
@@ -147,6 +147,12 @@ export class PluvClient<
|
|
|
147
147
|
public router<TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(
|
|
148
148
|
events: TEvents,
|
|
149
149
|
): PluvRouter<TIO, TPresence, TStorage, TEvents> {
|
|
150
|
+
const invalidName = Object.keys(events).find((name) => name.includes("$"));
|
|
151
|
+
|
|
152
|
+
if (typeof invalidName === "string") {
|
|
153
|
+
throw new Error(`Invalid event name. Event names must not contain $: "${invalidName}"`);
|
|
154
|
+
}
|
|
155
|
+
|
|
150
156
|
return new PluvRouter<TIO, TPresence, TStorage, TEvents>(events);
|
|
151
157
|
}
|
|
152
158
|
|