@pluv/io 0.16.1 → 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,6 +1,10 @@
1
1
 
2
- > @pluv/io@0.16.1 build /home/runner/work/pluv/pluv/packages/io
3
- > tsup src/index.ts --format esm,cjs --dts
2
+ > @pluv/io@0.16.3 build /home/runner/work/pluv/pluv/packages/io
3
+ > pnpm run version && tsup src/index.ts --format esm,cjs --dts
4
+
5
+
6
+ > @pluv/io@0.16.3 version /home/runner/work/pluv/pluv/packages/io
7
+ > genversion ./src/version.generated.ts --esm
4
8
 
5
9
  CLI Building entry: src/index.ts
6
10
  CLI Using tsconfig: tsconfig.json
@@ -8,11 +12,11 @@
8
12
  CLI Target: es6
9
13
  ESM Build start
10
14
  CJS Build start
11
- CJS dist/index.js 31.65 KB
12
- CJS ⚡️ Build success in 90ms
13
- ESM dist/index.mjs 29.59 KB
14
- ESM ⚡️ Build success in 94ms
15
+ ESM dist/index.mjs 29.67 KB
16
+ ESM ⚡️ Build success in 110ms
17
+ CJS dist/index.js 31.73 KB
18
+ CJS ⚡️ Build success in 111ms
15
19
  DTS Build start
16
- DTS ⚡️ Build success in 3337ms
17
- DTS dist/index.d.mts 17.61 KB
18
- DTS dist/index.d.ts 17.61 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,21 @@
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
+
11
+ ## 0.16.2
12
+
13
+ ### Patch Changes
14
+
15
+ - 06f572d: Export the downloaded version of `@pluv/io`.
16
+ - @pluv/crdt@0.16.2
17
+ - @pluv/types@0.16.2
18
+
3
19
  ## 0.16.1
4
20
 
5
21
  ### 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]>>;
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]>>;
package/dist/index.js CHANGED
@@ -740,6 +740,9 @@ var IORoom = class {
740
740
  }
741
741
  };
742
742
 
743
+ // src/version.generated.ts
744
+ var version = "0.16.3";
745
+
743
746
  // src/PluvIO.ts
744
747
  var PluvIO = class _PluvIO {
745
748
  constructor(options) {
@@ -847,6 +850,7 @@ var PluvIO = class _PluvIO {
847
850
  }
848
851
  };
849
852
  this._getInitialStorage = null;
853
+ this._version = version;
850
854
  const {
851
855
  authorize: authorize2,
852
856
  context,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "description": "@pluv/io server-side websocket manager",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -21,20 +21,22 @@
21
21
  "jose": "^5.2.2",
22
22
  "kleur": "^4.1.5",
23
23
  "wonka": "^6.3.4",
24
- "@pluv/crdt": "^0.16.1",
25
- "@pluv/types": "^0.16.1"
24
+ "@pluv/crdt": "^0.16.3",
25
+ "@pluv/types": "^0.16.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^8.56.0",
29
+ "genversion": "^3.2.0",
29
30
  "tsup": "^8.0.2",
30
31
  "typescript": "^5.3.3",
31
- "@pluv/tsconfig": "^0.16.1",
32
- "eslint-config-pluv": "^0.16.1"
32
+ "@pluv/tsconfig": "^0.16.3",
33
+ "eslint-config-pluv": "^0.16.3"
33
34
  },
34
35
  "scripts": {
35
- "build": "tsup src/index.ts --format esm,cjs --dts",
36
+ "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
36
37
  "dev": "tsup src/index.ts --format esm,cjs --watch --dts",
37
38
  "lint": "eslint src/**/*.ts* --fix",
38
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
39
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
40
+ "version": "genversion ./src/version.generated.ts --esm"
39
41
  }
40
42
  }
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<
@@ -0,0 +1,2 @@
1
+ // Generated by genversion.
2
+ export const version = '0.16.3'
package/src/version.ts ADDED
@@ -0,0 +1,2 @@
1
+ // @ts-ignore
2
+ export { version as __PLUV_VERSION } from "./version.generated";