@pluv/io 0.25.0 → 0.25.1

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.25.0 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@0.25.1 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.25.0 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@0.25.1 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 41.55 KB
16
- CJS ⚡️ Build success in 147ms
17
- ESM dist/index.mjs 39.41 KB
18
- ESM ⚡️ Build success in 148ms
15
+ ESM dist/index.mjs 39.43 KB
16
+ ESM ⚡️ Build success in 121ms
17
+ CJS dist/index.js 41.57 KB
18
+ CJS ⚡️ Build success in 121ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 2276ms
20
+ DTS ⚡️ Build success in 2430ms
21
21
  DTS dist/index.d.mts 25.78 KB
22
22
  DTS dist/index.d.ts 25.78 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 0.25.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3925f7c: Update internal accessor.
8
+ - @pluv/crdt@0.25.1
9
+ - @pluv/types@0.25.1
10
+
3
11
  ## 0.25.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -224,9 +224,9 @@ declare abstract class AbstractPlatform<TWebSocket extends AbstractWebSocket = A
224
224
  private _initialized;
225
225
  persistence: AbstractPersistence;
226
226
  pubSub: AbstractPubSub;
227
- readonly _meta: any;
228
227
  abstract readonly _registrationMode: WebSocketRegistrationMode;
229
228
  constructor(config?: AbstractPlatformConfig<TPlatformContext, TRoomContext>);
229
+ get _meta(): any;
230
230
  abstract acceptWebSocket(webSocket: AbstractWebSocket): Promise<void>;
231
231
  abstract convertWebSocket(webSocket: InferWebSocketSource<TWebSocket>, config: ConvertWebSocketConfig): AbstractWebSocket;
232
232
  abstract getLastPing(webSocket: AbstractWebSocket): number | null;
package/dist/index.d.ts CHANGED
@@ -224,9 +224,9 @@ declare abstract class AbstractPlatform<TWebSocket extends AbstractWebSocket = A
224
224
  private _initialized;
225
225
  persistence: AbstractPersistence;
226
226
  pubSub: AbstractPubSub;
227
- readonly _meta: any;
228
227
  abstract readonly _registrationMode: WebSocketRegistrationMode;
229
228
  constructor(config?: AbstractPlatformConfig<TPlatformContext, TRoomContext>);
229
+ get _meta(): any;
230
230
  abstract acceptWebSocket(webSocket: AbstractWebSocket): Promise<void>;
231
231
  abstract convertWebSocket(webSocket: InferWebSocketSource<TWebSocket>, config: ConvertWebSocketConfig): AbstractWebSocket;
232
232
  abstract getLastPing(webSocket: AbstractWebSocket): number | null;
package/dist/index.js CHANGED
@@ -217,13 +217,15 @@ var PubSub = class extends AbstractPubSub {
217
217
  var AbstractPlatform = class {
218
218
  constructor(config = {}) {
219
219
  this._initialized = false;
220
- this._meta = void 0;
221
220
  const { context, persistence, pubSub } = config;
222
221
  context && (this._ioContext = context);
223
222
  context && (this._roomContext = context);
224
223
  this.persistence = persistence != null ? persistence : new Persistence();
225
224
  this.pubSub = pubSub != null ? pubSub : new PubSub();
226
225
  }
226
+ get _meta() {
227
+ return void 0;
228
+ }
227
229
  _initialize() {
228
230
  if (this._initialized) throw new Error("Platform is already initialized");
229
231
  this._initialized = true;
@@ -914,7 +916,7 @@ var IORoom = class {
914
916
  };
915
917
 
916
918
  // src/version.generated.ts
917
- var version = "0.25.0";
919
+ var version = "0.25.1";
918
920
 
919
921
  // src/PluvServer.ts
920
922
  var PluvServer = class {
package/dist/index.mjs CHANGED
@@ -176,13 +176,15 @@ var PubSub = class extends AbstractPubSub {
176
176
  var AbstractPlatform = class {
177
177
  constructor(config = {}) {
178
178
  this._initialized = false;
179
- this._meta = void 0;
180
179
  const { context, persistence, pubSub } = config;
181
180
  context && (this._ioContext = context);
182
181
  context && (this._roomContext = context);
183
182
  this.persistence = persistence != null ? persistence : new Persistence();
184
183
  this.pubSub = pubSub != null ? pubSub : new PubSub();
185
184
  }
185
+ get _meta() {
186
+ return void 0;
187
+ }
186
188
  _initialize() {
187
189
  if (this._initialized) throw new Error("Platform is already initialized");
188
190
  this._initialized = true;
@@ -873,7 +875,7 @@ var IORoom = class {
873
875
  };
874
876
 
875
877
  // src/version.generated.ts
876
- var version = "0.25.0";
878
+ var version = "0.25.1";
877
879
 
878
880
  // src/PluvServer.ts
879
881
  var PluvServer = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
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.7.0",
22
22
  "kleur": "^4.1.5",
23
23
  "wonka": "^6.3.4",
24
- "@pluv/crdt": "^0.25.0",
25
- "@pluv/types": "^0.25.0"
24
+ "@pluv/crdt": "^0.25.1",
25
+ "@pluv/types": "^0.25.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^8.57.0",
29
29
  "genversion": "^3.2.0",
30
30
  "tsup": "^8.2.4",
31
31
  "typescript": "^5.5.4",
32
- "@pluv/tsconfig": "^0.25.0",
33
- "eslint-config-pluv": "^0.25.0"
32
+ "@pluv/tsconfig": "^0.25.1",
33
+ "eslint-config-pluv": "^0.25.1"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
@@ -47,8 +47,6 @@ export abstract class AbstractPlatform<
47
47
  public persistence: AbstractPersistence;
48
48
  public pubSub: AbstractPubSub;
49
49
 
50
- public readonly _meta: any = undefined;
51
-
52
50
  public abstract readonly _registrationMode: WebSocketRegistrationMode;
53
51
 
54
52
  constructor(config: AbstractPlatformConfig<TPlatformContext, TRoomContext> = {}) {
@@ -61,6 +59,10 @@ export abstract class AbstractPlatform<
61
59
  this.pubSub = pubSub ?? new PubSub();
62
60
  }
63
61
 
62
+ public get _meta(): any {
63
+ return undefined;
64
+ }
65
+
64
66
  public abstract acceptWebSocket(webSocket: AbstractWebSocket): Promise<void>;
65
67
 
66
68
  public abstract convertWebSocket(
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '0.25.0'
2
+ export const version = '0.25.1'