@pluv/io 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 +7 -7
- package/CHANGELOG.md +15 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +5 -5
- package/src/PluvIO.ts +6 -0
- package/src/version.generated.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/io@0.38.
|
|
2
|
+
> @pluv/io@0.38.4 build /home/runner/work/pluv/pluv/packages/io
|
|
3
3
|
> pnpm run version && tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @pluv/io@0.38.
|
|
6
|
+
> @pluv/io@0.38.4 version /home/runner/work/pluv/pluv/packages/io
|
|
7
7
|
> genversion ./src/version.generated.ts --esm
|
|
8
8
|
|
|
9
9
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
[34mCLI[39m Target: es6
|
|
13
13
|
[34mESM[39m Build start
|
|
14
14
|
[34mCJS[39m Build start
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
15
|
+
[32mCJS[39m [1mdist/index.js [22m[32m46.46 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 126ms
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m44.29 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 126ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 2648ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m30.95 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m30.95 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pluv/io
|
|
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/io 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
|
@@ -1009,7 +1009,7 @@ var IORoom = class {
|
|
|
1009
1009
|
};
|
|
1010
1010
|
|
|
1011
1011
|
// src/version.generated.ts
|
|
1012
|
-
var version = "0.38.
|
|
1012
|
+
var version = "0.38.4";
|
|
1013
1013
|
|
|
1014
1014
|
// src/PluvServer.ts
|
|
1015
1015
|
var PluvServer = class {
|
|
@@ -1250,6 +1250,10 @@ var PluvIO = class {
|
|
|
1250
1250
|
return PluvRouter.merge(...routers);
|
|
1251
1251
|
}
|
|
1252
1252
|
router(events) {
|
|
1253
|
+
const invalidName = Object.keys(events).find((name) => name.includes("$"));
|
|
1254
|
+
if (typeof invalidName === "string") {
|
|
1255
|
+
throw new Error(`Invalid event name. Event names must not contain $: "${invalidName}"`);
|
|
1256
|
+
}
|
|
1253
1257
|
return new PluvRouter(events);
|
|
1254
1258
|
}
|
|
1255
1259
|
server(config = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -967,7 +967,7 @@ var IORoom = class {
|
|
|
967
967
|
};
|
|
968
968
|
|
|
969
969
|
// src/version.generated.ts
|
|
970
|
-
var version = "0.38.
|
|
970
|
+
var version = "0.38.4";
|
|
971
971
|
|
|
972
972
|
// src/PluvServer.ts
|
|
973
973
|
var PluvServer = class {
|
|
@@ -1208,6 +1208,10 @@ var PluvIO = class {
|
|
|
1208
1208
|
return PluvRouter.merge(...routers);
|
|
1209
1209
|
}
|
|
1210
1210
|
router(events) {
|
|
1211
|
+
const invalidName = Object.keys(events).find((name) => name.includes("$"));
|
|
1212
|
+
if (typeof invalidName === "string") {
|
|
1213
|
+
throw new Error(`Invalid event name. Event names must not contain $: "${invalidName}"`);
|
|
1214
|
+
}
|
|
1211
1215
|
return new PluvRouter(events);
|
|
1212
1216
|
}
|
|
1213
1217
|
server(config = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/io",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.4",
|
|
4
4
|
"description": "@pluv/io server-side websocket manager",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"jose": "^5.10.0",
|
|
22
22
|
"kleur": "^4.1.5",
|
|
23
23
|
"wonka": "^6.3.5",
|
|
24
|
-
"@pluv/crdt": "^0.38.
|
|
25
|
-
"@pluv/types": "^0.38.
|
|
24
|
+
"@pluv/crdt": "^0.38.4",
|
|
25
|
+
"@pluv/types": "^0.38.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"eslint": "^8.57.1",
|
|
29
29
|
"genversion": "^3.2.0",
|
|
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.4",
|
|
33
|
+
"eslint-config-pluv": "^0.38.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
|
package/src/PluvIO.ts
CHANGED
|
@@ -106,6 +106,12 @@ export class PluvIO<
|
|
|
106
106
|
public router<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext>>(
|
|
107
107
|
events: TEvents,
|
|
108
108
|
): PluvRouter<TPlatform, TAuthorize, TContext, TEvents> {
|
|
109
|
+
const invalidName = Object.keys(events).find((name) => name.includes("$"));
|
|
110
|
+
|
|
111
|
+
if (typeof invalidName === "string") {
|
|
112
|
+
throw new Error(`Invalid event name. Event names must not contain $: "${invalidName}"`);
|
|
113
|
+
}
|
|
114
|
+
|
|
109
115
|
return new PluvRouter<TPlatform, TAuthorize, TContext, TEvents>(events);
|
|
110
116
|
}
|
|
111
117
|
|
package/src/version.generated.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '0.38.
|
|
2
|
+
export const version = '0.38.4'
|