@pluv/io 0.38.12 → 0.38.14

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @pluv/io@0.38.12 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@0.38.14 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.12 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@0.38.14 version /home/runner/work/pluv/pluv/packages/io
7
7
  > genversion ./src/version.generated.ts --esm
8
8
 
9
9
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CLI Target: es6
13
13
  ESM Build start
14
14
  CJS Build start
15
- CJS dist/index.js 46.46 KB
16
- CJS ⚡️ Build success in 135ms
17
15
  ESM dist/index.mjs 44.29 KB
18
- ESM ⚡️ Build success in 136ms
16
+ ESM ⚡️ Build success in 118ms
17
+ CJS dist/index.js 46.46 KB
18
+ CJS ⚡️ Build success in 132ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 2412ms
21
- DTS dist/index.d.mts 30.94 KB
22
- DTS dist/index.d.ts 30.94 KB
20
+ DTS ⚡️ Build success in 2518ms
21
+ DTS dist/index.d.mts 30.95 KB
22
+ DTS dist/index.d.ts 30.95 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 0.38.14
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/crdt@0.38.14
8
+ - @pluv/types@0.38.14
9
+
10
+ ## 0.38.13
11
+
12
+ ### Patch Changes
13
+
14
+ - 809afd3: Fix generic type default for router events.
15
+ - @pluv/crdt@0.38.13
16
+ - @pluv/types@0.38.13
17
+
3
18
  ## 0.38.12
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -472,7 +472,7 @@ declare class PluvIO<TPlatform extends AbstractPlatform<any> = AbstractPlatform<
472
472
  createToken(params: JWTEncodeParams<InferIOAuthorizeUser<TAuthorize>, TPlatform>): Promise<string>;
473
473
  mergeRouters<TRouters extends PluvRouter<TPlatform, TAuthorize, TContext, any>[]>(...routers: TRouters): MergedRouter<TRouters>;
474
474
  router<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext>>(events: TEvents): PluvRouter<TPlatform, TAuthorize, TContext, TEvents>;
475
- server<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext>>(config?: ServerConfig<TPlatform, TAuthorize, TContext, TEvents>): PluvServer<TPlatform, TAuthorize, TContext, TEvents>;
475
+ server<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext> = {}>(config?: ServerConfig<TPlatform, TAuthorize, TContext, TEvents>): PluvServer<TPlatform, TAuthorize, TContext, TEvents>;
476
476
  private _getIOAuthorize;
477
477
  }
478
478
 
package/dist/index.d.ts CHANGED
@@ -472,7 +472,7 @@ declare class PluvIO<TPlatform extends AbstractPlatform<any> = AbstractPlatform<
472
472
  createToken(params: JWTEncodeParams<InferIOAuthorizeUser<TAuthorize>, TPlatform>): Promise<string>;
473
473
  mergeRouters<TRouters extends PluvRouter<TPlatform, TAuthorize, TContext, any>[]>(...routers: TRouters): MergedRouter<TRouters>;
474
474
  router<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext>>(events: TEvents): PluvRouter<TPlatform, TAuthorize, TContext, TEvents>;
475
- server<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext>>(config?: ServerConfig<TPlatform, TAuthorize, TContext, TEvents>): PluvServer<TPlatform, TAuthorize, TContext, TEvents>;
475
+ server<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext> = {}>(config?: ServerConfig<TPlatform, TAuthorize, TContext, TEvents>): PluvServer<TPlatform, TAuthorize, TContext, TEvents>;
476
476
  private _getIOAuthorize;
477
477
  }
478
478
 
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.12";
1012
+ var version = "0.38.14";
1013
1013
 
1014
1014
  // src/PluvServer.ts
1015
1015
  var PluvServer = class {
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.12";
970
+ var version = "0.38.14";
971
971
 
972
972
  // src/PluvServer.ts
973
973
  var PluvServer = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.38.12",
3
+ "version": "0.38.14",
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.12",
25
- "@pluv/types": "^0.38.12"
24
+ "@pluv/crdt": "^0.38.14",
25
+ "@pluv/types": "^0.38.14"
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.3",
32
- "@pluv/tsconfig": "^0.38.12",
33
- "eslint-config-pluv": "^0.38.12"
32
+ "@pluv/tsconfig": "^0.38.14",
33
+ "eslint-config-pluv": "^0.38.14"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
package/src/PluvIO.ts CHANGED
@@ -115,7 +115,7 @@ export class PluvIO<
115
115
  return new PluvRouter<TPlatform, TAuthorize, TContext, TEvents>(events);
116
116
  }
117
117
 
118
- public server<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext>>(
118
+ public server<TEvents extends PluvRouterEventConfig<TPlatform, TAuthorize, TContext> = {}>(
119
119
  config: ServerConfig<TPlatform, TAuthorize, TContext, TEvents> = {} as ServerConfig<
120
120
  TPlatform,
121
121
  TAuthorize,
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '0.38.12'
2
+ export const version = '0.38.14'