@pluv/io 0.41.1 → 0.41.2

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.41.1 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@0.41.2 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.41.1 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@0.41.2 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 51.27 KB
16
- CJS ⚡️ Build success in 125ms
17
- ESM dist/index.mjs 49.09 KB
18
- ESM ⚡️ Build success in 141ms
15
+ CJS dist/index.js 51.24 KB
16
+ CJS ⚡️ Build success in 102ms
17
+ ESM dist/index.mjs 49.06 KB
18
+ ESM ⚡️ Build success in 116ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 2779ms
20
+ DTS ⚡️ Build success in 3439ms
21
21
  DTS dist/index.d.mts 31.42 KB
22
22
  DTS dist/index.d.ts 31.42 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 0.41.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/crdt@0.41.2
8
+ - @pluv/types@0.41.2
9
+
3
10
  ## 0.41.1
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1105,7 +1105,7 @@ var IORoom = class {
1105
1105
  };
1106
1106
 
1107
1107
  // src/version.generated.ts
1108
- var version = "0.41.1";
1108
+ var version = "0.41.2";
1109
1109
 
1110
1110
  // src/PluvServer.ts
1111
1111
  var PluvServer = class {
@@ -1114,7 +1114,7 @@ var PluvServer = class {
1114
1114
  this._authorize = null;
1115
1115
  this._baseRouter = new PluvRouter({
1116
1116
  $getOthers: this._procedure.sync((data, { room, session, sessions }) => {
1117
- const currentTime = (/* @__PURE__ */ new Date()).getTime();
1117
+ const currentTime = Date.now();
1118
1118
  const others = sessions.filter((wsSession) => {
1119
1119
  if (wsSession.id === (session == null ? void 0 : session.id)) return false;
1120
1120
  if (wsSession.quit) return false;
package/dist/index.mjs CHANGED
@@ -1063,7 +1063,7 @@ var IORoom = class {
1063
1063
  };
1064
1064
 
1065
1065
  // src/version.generated.ts
1066
- var version = "0.41.1";
1066
+ var version = "0.41.2";
1067
1067
 
1068
1068
  // src/PluvServer.ts
1069
1069
  var PluvServer = class {
@@ -1072,7 +1072,7 @@ var PluvServer = class {
1072
1072
  this._authorize = null;
1073
1073
  this._baseRouter = new PluvRouter({
1074
1074
  $getOthers: this._procedure.sync((data, { room, session, sessions }) => {
1075
- const currentTime = (/* @__PURE__ */ new Date()).getTime();
1075
+ const currentTime = Date.now();
1076
1076
  const others = sessions.filter((wsSession) => {
1077
1077
  if (wsSession.id === (session == null ? void 0 : session.id)) return false;
1078
1078
  if (wsSession.quit) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.41.1",
3
+ "version": "0.41.2",
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.41.1",
25
- "@pluv/types": "^0.41.1"
24
+ "@pluv/types": "^0.41.2",
25
+ "@pluv/crdt": "^0.41.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^9.25.0",
29
29
  "genversion": "^3.2.0",
30
30
  "tsup": "^8.4.0",
31
31
  "typescript": "^5.8.3",
32
- "@pluv/tsconfig": "^0.41.1",
33
- "eslint-config-pluv": "^0.41.1"
32
+ "@pluv/tsconfig": "^0.41.2",
33
+ "eslint-config-pluv": "^0.41.2"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
package/src/PluvServer.ts CHANGED
@@ -71,7 +71,7 @@ export class PluvServer<
71
71
  private readonly _authorize: TAuthorize = null as TAuthorize;
72
72
  private readonly _baseRouter: PluvRouter<TPlatform, TAuthorize, TContext, {}> = new PluvRouter({
73
73
  $getOthers: this._procedure.sync((data, { room, session, sessions }) => {
74
- const currentTime = new Date().getTime();
74
+ const currentTime = Date.now();
75
75
 
76
76
  const others = sessions
77
77
  .filter((wsSession) => {
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '0.41.1'
2
+ export const version = '0.41.2'