@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +4 -5
- package/dist/index.mjs +4 -4
- package/package.json +5 -5
- package/src/PluvIO.ts +2 -0
- package/src/index.ts +0 -1
- package/src/version.generated.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/io@0.16.
|
|
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.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
[34mCLI[39m Target: es6
|
|
13
13
|
[34mESM[39m Build start
|
|
14
14
|
[34mCJS[39m Build start
|
|
15
|
-
[32mCJS[39m [1mdist/index.js [22m[32m31.75 KB[39m
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in 149ms
|
|
17
15
|
[32mESM[39m [1mdist/index.mjs [22m[32m29.67 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
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
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m17.
|
|
22
|
-
[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
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
29
|
"genversion": "^3.2.0",
|
|
30
30
|
"tsup": "^8.0.2",
|
|
31
31
|
"typescript": "^5.3.3",
|
|
32
|
-
"@pluv/tsconfig": "^0.16.
|
|
33
|
-
"eslint-config-pluv": "^0.16.
|
|
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
package/src/version.generated.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '0.16.
|
|
2
|
+
export const version = '0.16.3'
|