@pluv/io 0.16.2 → 0.16.3

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.16.2 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@0.16.3 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.16.2 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@0.16.3 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 31.75 KB
16
- CJS ⚡️ Build success in 149ms
17
15
  ESM dist/index.mjs 29.67 KB
18
- ESM ⚡️ Build success in 150ms
16
+ ESM ⚡️ Build success in 110ms
17
+ CJS dist/index.js 31.73 KB
18
+ CJS ⚡️ Build success in 111ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 2956ms
21
- DTS dist/index.d.mts 17.67 KB
22
- DTS dist/index.d.ts 17.67 KB
20
+ DTS ⚡️ Build success in 2638ms
21
+ DTS dist/index.d.mts 17.64 KB
22
+ DTS dist/index.d.ts 17.64 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 0.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 0bf0934: Moved exposed `@pluv/io` version on the `PluvIO` instance as a property.
8
+ - @pluv/crdt@0.16.3
9
+ - @pluv/types@0.16.3
10
+
3
11
  ## 0.16.2
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -275,6 +275,7 @@ declare class PluvIO<TPlatform extends AbstractPlatform<any> = AbstractPlatform<
275
275
  readonly _getInitialStorage: GetInitialStorageFn<TPlatform> | null;
276
276
  readonly _listeners: PluvIOListeners<TPlatform>;
277
277
  readonly _platform: TPlatform;
278
+ readonly _version: string;
278
279
  constructor(options: PluvIOConfig<TPlatform, TAuthorize, TContext, TInput, TOutputBroadcast, TOutputSelf, TOutputSync>);
279
280
  createToken(params: JWTEncodeParams<InferIOAuthorizeUser<InferIOAuthorize<this>>>): Promise<string>;
280
281
  event<TEvent extends string, TData extends JsonObject = {}, TResultBroadcast extends EventRecord<string, any> = {}, TResultSelf extends EventRecord<string, any> = {}, TResultSync extends EventRecord<string, any> = {}>(event: TEvent, config: EventConfig<TPlatform, TContext, TData, TResultBroadcast, TResultSelf, TResultSync>): PluvIO<TPlatform, TAuthorize, TContext, Spread<[TInput, EventRecord<TEvent, TData>]>, Spread<[TOutputBroadcast, TResultBroadcast]>, Spread<[TOutputSelf, TResultSelf]>, Spread<[TOutputSync, TResultSync]>>;
@@ -296,6 +297,4 @@ type CreateIOParams<TPlatform extends AbstractPlatform<any> = AbstractPlatform<a
296
297
  };
297
298
  declare const createIO: <TPlatform extends AbstractPlatform<any, {}, {}> = AbstractPlatform<any, {}, {}>, TContext extends JsonObject = {}, TAuthorizeUser extends BaseUser = BaseUser, TAuthorizeRequired extends boolean = false>(params: CreateIOParams<TPlatform, TContext, TAuthorizeUser, TAuthorizeRequired>) => PluvIO<TPlatform, IOAuthorize<TAuthorizeUser, TAuthorizeRequired>, TContext, BaseClientEventRecord, BaseIOEventRecord<IOAuthorize<TAuthorizeUser, TAuthorizeRequired>>, {}, {}>;
298
299
 
299
- declare const version = "0.16.2";
300
-
301
- export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, version as __PLUV_VERSION, createIO };
300
+ export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, createIO };
package/dist/index.d.ts CHANGED
@@ -275,6 +275,7 @@ declare class PluvIO<TPlatform extends AbstractPlatform<any> = AbstractPlatform<
275
275
  readonly _getInitialStorage: GetInitialStorageFn<TPlatform> | null;
276
276
  readonly _listeners: PluvIOListeners<TPlatform>;
277
277
  readonly _platform: TPlatform;
278
+ readonly _version: string;
278
279
  constructor(options: PluvIOConfig<TPlatform, TAuthorize, TContext, TInput, TOutputBroadcast, TOutputSelf, TOutputSync>);
279
280
  createToken(params: JWTEncodeParams<InferIOAuthorizeUser<InferIOAuthorize<this>>>): Promise<string>;
280
281
  event<TEvent extends string, TData extends JsonObject = {}, TResultBroadcast extends EventRecord<string, any> = {}, TResultSelf extends EventRecord<string, any> = {}, TResultSync extends EventRecord<string, any> = {}>(event: TEvent, config: EventConfig<TPlatform, TContext, TData, TResultBroadcast, TResultSelf, TResultSync>): PluvIO<TPlatform, TAuthorize, TContext, Spread<[TInput, EventRecord<TEvent, TData>]>, Spread<[TOutputBroadcast, TResultBroadcast]>, Spread<[TOutputSelf, TResultSelf]>, Spread<[TOutputSync, TResultSync]>>;
@@ -296,6 +297,4 @@ type CreateIOParams<TPlatform extends AbstractPlatform<any> = AbstractPlatform<a
296
297
  };
297
298
  declare const createIO: <TPlatform extends AbstractPlatform<any, {}, {}> = AbstractPlatform<any, {}, {}>, TContext extends JsonObject = {}, TAuthorizeUser extends BaseUser = BaseUser, TAuthorizeRequired extends boolean = false>(params: CreateIOParams<TPlatform, TContext, TAuthorizeUser, TAuthorizeRequired>) => PluvIO<TPlatform, IOAuthorize<TAuthorizeUser, TAuthorizeRequired>, TContext, BaseClientEventRecord, BaseIOEventRecord<IOAuthorize<TAuthorizeUser, TAuthorizeRequired>>, {}, {}>;
298
299
 
299
- declare const version = "0.16.2";
300
-
301
- export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, version as __PLUV_VERSION, createIO };
300
+ export { type AbstractCloseEvent, type AbstractErrorEvent, type AbstractEvent, type AbstractEventMap, type AbstractListener, type AbstractMessageEvent, AbstractPersistance, AbstractPlatform, type AbstractPlatformConfig, AbstractPubSub, AbstractWebSocket, type AbstractWebSocketConfig, type AbstractWebSocketHandleErrorParams, type AuthorizeModule, type AuthorizeParams, type ConvertWebSocketConfig, type CreateIOParams, type GetRoomOptions, type IOPubSubEventMessage, IORoom, type InferIORoom, type InferPlatformEventContextType, type InferPlatformRoomContextType, type InferPlatformWebSocketType, type JWT, type JWTEncodeParams, PluvIO, type PluvIOConfig, createIO };
package/dist/index.js CHANGED
@@ -84,7 +84,6 @@ __export(src_exports, {
84
84
  AbstractPubSub: () => AbstractPubSub,
85
85
  AbstractWebSocket: () => AbstractWebSocket,
86
86
  PluvIO: () => PluvIO,
87
- __PLUV_VERSION: () => version,
88
87
  createIO: () => createIO
89
88
  });
90
89
  module.exports = __toCommonJS(src_exports);
@@ -741,6 +740,9 @@ var IORoom = class {
741
740
  }
742
741
  };
743
742
 
743
+ // src/version.generated.ts
744
+ var version = "0.16.3";
745
+
744
746
  // src/PluvIO.ts
745
747
  var PluvIO = class _PluvIO {
746
748
  constructor(options) {
@@ -848,6 +850,7 @@ var PluvIO = class _PluvIO {
848
850
  }
849
851
  };
850
852
  this._getInitialStorage = null;
853
+ this._version = version;
851
854
  const {
852
855
  authorize: authorize2,
853
856
  context,
@@ -1014,9 +1017,6 @@ var createIO = (params) => {
1014
1017
  platform
1015
1018
  });
1016
1019
  };
1017
-
1018
- // src/version.generated.ts
1019
- var version = "0.16.2";
1020
1020
  // Annotate the CommonJS export names for ESM import in node:
1021
1021
  0 && (module.exports = {
1022
1022
  AbstractPersistance,
@@ -1024,6 +1024,5 @@ var version = "0.16.2";
1024
1024
  AbstractPubSub,
1025
1025
  AbstractWebSocket,
1026
1026
  PluvIO,
1027
- __PLUV_VERSION,
1028
1027
  createIO
1029
1028
  });
package/dist/index.mjs CHANGED
@@ -702,6 +702,9 @@ var IORoom = class {
702
702
  }
703
703
  };
704
704
 
705
+ // src/version.generated.ts
706
+ var version = "0.16.3";
707
+
705
708
  // src/PluvIO.ts
706
709
  var PluvIO = class _PluvIO {
707
710
  constructor(options) {
@@ -809,6 +812,7 @@ var PluvIO = class _PluvIO {
809
812
  }
810
813
  };
811
814
  this._getInitialStorage = null;
815
+ this._version = version;
812
816
  const {
813
817
  authorize: authorize2,
814
818
  context,
@@ -975,15 +979,11 @@ var createIO = (params) => {
975
979
  platform
976
980
  });
977
981
  };
978
-
979
- // src/version.generated.ts
980
- var version = "0.16.2";
981
982
  export {
982
983
  AbstractPersistance,
983
984
  AbstractPlatform,
984
985
  AbstractPubSub,
985
986
  AbstractWebSocket,
986
987
  PluvIO,
987
- version as __PLUV_VERSION,
988
988
  createIO
989
989
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
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.2.2",
22
22
  "kleur": "^4.1.5",
23
23
  "wonka": "^6.3.4",
24
- "@pluv/crdt": "^0.16.2",
25
- "@pluv/types": "^0.16.2"
24
+ "@pluv/crdt": "^0.16.3",
25
+ "@pluv/types": "^0.16.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^8.56.0",
29
29
  "genversion": "^3.2.0",
30
30
  "tsup": "^8.0.2",
31
31
  "typescript": "^5.3.3",
32
- "@pluv/tsconfig": "^0.16.2",
33
- "eslint-config-pluv": "^0.16.2"
32
+ "@pluv/tsconfig": "^0.16.3",
33
+ "eslint-config-pluv": "^0.16.3"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
package/src/PluvIO.ts CHANGED
@@ -26,6 +26,7 @@ import { IORoom } from "./IORoom";
26
26
  import type { JWTEncodeParams } from "./authorize";
27
27
  import { authorize } from "./authorize";
28
28
  import type { EventConfig, InferEventConfig } from "./types";
29
+ import { __PLUV_VERSION } from "./version";
29
30
 
30
31
  type InferIOContext<TIO extends PluvIO<any, any, any, any, any, any, any>> =
31
32
  TIO extends PluvIO<any, any, infer IContext, any, any, any, any>
@@ -281,6 +282,7 @@ export class PluvIO<
281
282
  readonly _getInitialStorage: GetInitialStorageFn<TPlatform> | null = null;
282
283
  readonly _listeners: PluvIOListeners<TPlatform>;
283
284
  readonly _platform: TPlatform;
285
+ readonly _version: string = __PLUV_VERSION as any;
284
286
 
285
287
  constructor(
286
288
  options: PluvIOConfig<
package/src/index.ts CHANGED
@@ -37,4 +37,3 @@ export type {
37
37
  } from "./authorize";
38
38
  export { createIO } from "./createIO";
39
39
  export type { CreateIOParams } from "./createIO";
40
- export { __PLUV_VERSION } from "./version";
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '0.16.2'
2
+ export const version = '0.16.3'