@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.
- package/.turbo/turbo-build.log +13 -9
- package/CHANGELOG.md +16 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +9 -7
- package/src/PluvIO.ts +2 -0
- package/src/version.generated.ts +2 -0
- package/src/version.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/io@0.16.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
10
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
@@ -8,11 +12,11 @@
|
|
|
8
12
|
[34mCLI[39m Target: es6
|
|
9
13
|
[34mESM[39m Build start
|
|
10
14
|
[34mCJS[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m29.67 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 110ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m31.73 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 111ms
|
|
15
19
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m17.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 2638ms
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m17.64 KB[39m
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.64 KB[39m
|
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.
|
|
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.
|
|
25
|
-
"@pluv/types": "^0.16.
|
|
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.
|
|
32
|
-
"eslint-config-pluv": "^0.16.
|
|
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<
|
package/src/version.ts
ADDED