@pluv/io 0.37.5 → 0.37.6

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.37.5 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@0.37.6 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.37.5 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@0.37.6 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
- ESM dist/index.mjs 43.66 KB
16
- ESM ⚡️ Build success in 141ms
17
- CJS dist/index.js 45.84 KB
18
- CJS ⚡️ Build success in 141ms
15
+ CJS dist/index.js 45.90 KB
16
+ CJS ⚡️ Build success in 145ms
17
+ ESM dist/index.mjs 43.72 KB
18
+ ESM ⚡️ Build success in 146ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 2685ms
21
- DTS dist/index.d.mts 30.88 KB
22
- DTS dist/index.d.ts 30.88 KB
20
+ DTS ⚡️ Build success in 2521ms
21
+ DTS dist/index.d.mts 30.92 KB
22
+ DTS dist/index.d.ts 30.92 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 0.37.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 3a874f1: Now logs errors to the console when errors on encountered on the `onUserConnected` and `onUserDisconnected` events.
8
+ - @pluv/crdt@0.37.6
9
+ - @pluv/types@0.37.6
10
+
3
11
  ## 0.37.5
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -121,6 +121,7 @@ declare class PluvRouter<TPlatform extends AbstractPlatform<any> = AbstractPlatf
121
121
 
122
122
  declare global {
123
123
  var console: {
124
+ error: (...data: any[]) => void;
124
125
  log: (...data: any[]) => void;
125
126
  };
126
127
  }
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ declare class PluvRouter<TPlatform extends AbstractPlatform<any> = AbstractPlatf
121
121
 
122
122
  declare global {
123
123
  var console: {
124
+ error: (...data: any[]) => void;
124
125
  log: (...data: any[]) => void;
125
126
  };
126
127
  }
package/dist/index.js CHANGED
@@ -618,7 +618,8 @@ var IORoom = class {
618
618
  webSocket: pluvWs.webSocket
619
619
  })
620
620
  );
621
- } catch (e) {
621
+ } catch (err) {
622
+ console.error(err);
622
623
  }
623
624
  });
624
625
  }
@@ -647,7 +648,8 @@ var IORoom = class {
647
648
  user: session.user
648
649
  })
649
650
  );
650
- } catch (e) {
651
+ } catch (err) {
652
+ console.error(err);
651
653
  }
652
654
  });
653
655
  }
@@ -998,7 +1000,7 @@ var IORoom = class {
998
1000
  };
999
1001
 
1000
1002
  // src/version.generated.ts
1001
- var version = "0.37.5";
1003
+ var version = "0.37.6";
1002
1004
 
1003
1005
  // src/PluvServer.ts
1004
1006
  var PluvServer = class {
package/dist/index.mjs CHANGED
@@ -576,7 +576,8 @@ var IORoom = class {
576
576
  webSocket: pluvWs.webSocket
577
577
  })
578
578
  );
579
- } catch (e) {
579
+ } catch (err) {
580
+ console.error(err);
580
581
  }
581
582
  });
582
583
  }
@@ -605,7 +606,8 @@ var IORoom = class {
605
606
  user: session.user
606
607
  })
607
608
  );
608
- } catch (e) {
609
+ } catch (err) {
610
+ console.error(err);
609
611
  }
610
612
  });
611
613
  }
@@ -956,7 +958,7 @@ var IORoom = class {
956
958
  };
957
959
 
958
960
  // src/version.generated.ts
959
- var version = "0.37.5";
961
+ var version = "0.37.6";
960
962
 
961
963
  // src/PluvServer.ts
962
964
  var PluvServer = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.37.5",
3
+ "version": "0.37.6",
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.37.5",
25
- "@pluv/types": "^0.37.5"
24
+ "@pluv/crdt": "^0.37.6",
25
+ "@pluv/types": "^0.37.6"
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.37.5",
33
- "eslint-config-pluv": "^0.37.5"
32
+ "@pluv/tsconfig": "^0.37.6",
33
+ "eslint-config-pluv": "^0.37.6"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
package/src/IORoom.ts CHANGED
@@ -398,7 +398,9 @@ export class IORoom<
398
398
  webSocket: pluvWs.webSocket,
399
399
  }),
400
400
  );
401
- } catch {}
401
+ } catch (err) {
402
+ console.error(err);
403
+ }
402
404
  }
403
405
 
404
406
  private _ensureDetached(): void {
@@ -430,7 +432,9 @@ export class IORoom<
430
432
  user: session.user,
431
433
  }),
432
434
  );
433
- } catch {}
435
+ } catch (err) {
436
+ console.error(err);
437
+ }
434
438
  }
435
439
 
436
440
  private _getAbstractWs(webSocket: WebSocketType<TPlatform>): AbstractWebSocket | null {
package/src/types.ts CHANGED
@@ -25,6 +25,7 @@ import type { PluvRouter, PluvRouterEventConfig } from "./PluvRouter";
25
25
 
26
26
  declare global {
27
27
  var console: {
28
+ error: (...data: any[]) => void;
28
29
  log: (...data: any[]) => void;
29
30
  };
30
31
  }
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '0.37.5'
2
+ export const version = '0.37.6'
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "extends": "@pluv/tsconfig/library.json",
3
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
3
+ "include": ["next-env.d.ts", "src/*.ts"],
4
4
  "exclude": ["node_modules"]
5
5
  }