@pluv/platform-pluv 2.3.1 → 3.1.0
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 +6 -6
- package/CHANGELOG.md +17 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/package.json +6 -6
- package/src/platformPluv.ts +6 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-pluv@
|
|
2
|
+
> @pluv/platform-pluv@3.1.0 build /home/runner/work/pluv/pluv/packages/platform-pluv
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m15.03 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 121ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m16.87 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 124ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 5897ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m4.02 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.02 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @pluv/platform-pluv
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a40f4dc]
|
|
8
|
+
- @pluv/io@3.1.0
|
|
9
|
+
- @pluv/crdt@3.1.0
|
|
10
|
+
- @pluv/types@3.1.0
|
|
11
|
+
|
|
12
|
+
## 3.0.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @pluv/crdt@3.0.0
|
|
17
|
+
- @pluv/io@3.0.0
|
|
18
|
+
- @pluv/types@3.0.0
|
|
19
|
+
|
|
3
20
|
## 2.3.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CrdtLibraryType, NoopCrdtDocFactory } from '@pluv/crdt';
|
|
1
2
|
import { PluvContext, BaseUser, AbstractPlatform, JWTEncodeParams, AbstractWebSocket, ConvertWebSocketConfig, WebSocketSerializedState, AbstractPlatformConfig, CreateIOParams, PluvIOAuthorize, InferInitContextType } from '@pluv/io';
|
|
2
3
|
import { MaybePromise, BaseUser as BaseUser$1, Id } from '@pluv/types';
|
|
3
4
|
|
|
@@ -86,10 +87,10 @@ declare class PluvPlatform<TContext extends Record<string, any> = {}, TUser exte
|
|
|
86
87
|
private _logDebug;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
type PlatformPluvCreateIOParams<TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1> = Id<PluvPlatformConfig & Omit<CreateIOParams<PluvPlatform, TContext, TUser>, "authorize" | "context" | "limits" | "platform"> & {
|
|
90
|
+
type PlatformPluvCreateIOParams<TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1, TCrdt extends CrdtLibraryType<any> = CrdtLibraryType<NoopCrdtDocFactory>> = Id<PluvPlatformConfig & Omit<CreateIOParams<PluvPlatform, TContext, TUser, TCrdt>, "authorize" | "context" | "limits" | "platform"> & {
|
|
90
91
|
authorize: PluvIOAuthorize<PluvPlatform, TUser, InferInitContextType<PluvPlatform>>;
|
|
91
92
|
context?: PluvContext<PluvPlatform, TContext>;
|
|
92
93
|
}>;
|
|
93
|
-
declare const platformPluv: <TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1>(config: PlatformPluvCreateIOParams<TContext, TUser>) => CreateIOParams<PluvPlatform<TContext, TUser>, TContext, TUser>;
|
|
94
|
+
declare const platformPluv: <TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1, TCrdt extends CrdtLibraryType<any> = CrdtLibraryType<NoopCrdtDocFactory>>(config: PlatformPluvCreateIOParams<TContext, TUser, TCrdt>) => CreateIOParams<PluvPlatform<TContext, TUser>, TContext, TUser, TCrdt>;
|
|
94
95
|
|
|
95
96
|
export { type PlatformPluvCreateIOParams, type PluvIOEndpoints, PluvPlatform, platformPluv };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CrdtLibraryType, NoopCrdtDocFactory } from '@pluv/crdt';
|
|
1
2
|
import { PluvContext, BaseUser, AbstractPlatform, JWTEncodeParams, AbstractWebSocket, ConvertWebSocketConfig, WebSocketSerializedState, AbstractPlatformConfig, CreateIOParams, PluvIOAuthorize, InferInitContextType } from '@pluv/io';
|
|
2
3
|
import { MaybePromise, BaseUser as BaseUser$1, Id } from '@pluv/types';
|
|
3
4
|
|
|
@@ -86,10 +87,10 @@ declare class PluvPlatform<TContext extends Record<string, any> = {}, TUser exte
|
|
|
86
87
|
private _logDebug;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
type PlatformPluvCreateIOParams<TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1> = Id<PluvPlatformConfig & Omit<CreateIOParams<PluvPlatform, TContext, TUser>, "authorize" | "context" | "limits" | "platform"> & {
|
|
90
|
+
type PlatformPluvCreateIOParams<TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1, TCrdt extends CrdtLibraryType<any> = CrdtLibraryType<NoopCrdtDocFactory>> = Id<PluvPlatformConfig & Omit<CreateIOParams<PluvPlatform, TContext, TUser, TCrdt>, "authorize" | "context" | "limits" | "platform"> & {
|
|
90
91
|
authorize: PluvIOAuthorize<PluvPlatform, TUser, InferInitContextType<PluvPlatform>>;
|
|
91
92
|
context?: PluvContext<PluvPlatform, TContext>;
|
|
92
93
|
}>;
|
|
93
|
-
declare const platformPluv: <TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1>(config: PlatformPluvCreateIOParams<TContext, TUser>) => CreateIOParams<PluvPlatform<TContext, TUser>, TContext, TUser>;
|
|
94
|
+
declare const platformPluv: <TContext extends Record<string, any> = {}, TUser extends BaseUser$1 = BaseUser$1, TCrdt extends CrdtLibraryType<any> = CrdtLibraryType<NoopCrdtDocFactory>>(config: PlatformPluvCreateIOParams<TContext, TUser, TCrdt>) => CreateIOParams<PluvPlatform<TContext, TUser>, TContext, TUser, TCrdt>;
|
|
94
95
|
|
|
95
96
|
export { type PlatformPluvCreateIOParams, type PluvIOEndpoints, PluvPlatform, platformPluv };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-pluv",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "@pluv/io adapter for pluv.io",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"fast-json-stable-stringify": "^2.1.0",
|
|
22
22
|
"hono": "^4.7.10",
|
|
23
23
|
"zod": "^3.25.17",
|
|
24
|
-
"@pluv/crdt": "^
|
|
25
|
-
"@pluv/io": "^
|
|
26
|
-
"@pluv/types": "^
|
|
24
|
+
"@pluv/crdt": "^3.1.0",
|
|
25
|
+
"@pluv/io": "^3.1.0",
|
|
26
|
+
"@pluv/types": "^3.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"eslint": "^9.27.0",
|
|
30
30
|
"tsup": "^8.5.0",
|
|
31
31
|
"typescript": "^5.8.3",
|
|
32
|
-
"@pluv/tsconfig": "^
|
|
33
|
-
"eslint-config-pluv": "^
|
|
32
|
+
"@pluv/tsconfig": "^3.1.0",
|
|
33
|
+
"eslint-config-pluv": "^3.1.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/platformPluv.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CrdtLibraryType, NoopCrdtDocFactory } from "@pluv/crdt";
|
|
1
2
|
import type { CreateIOParams, InferInitContextType, PluvContext, PluvIOAuthorize } from "@pluv/io";
|
|
2
3
|
import type { BaseUser, Id } from "@pluv/types";
|
|
3
4
|
import type { PluvPlatformConfig } from "./PluvPlatform";
|
|
@@ -6,10 +7,11 @@ import { PluvPlatform } from "./PluvPlatform";
|
|
|
6
7
|
export type PlatformPluvCreateIOParams<
|
|
7
8
|
TContext extends Record<string, any> = {},
|
|
8
9
|
TUser extends BaseUser = BaseUser,
|
|
10
|
+
TCrdt extends CrdtLibraryType<any> = CrdtLibraryType<NoopCrdtDocFactory>,
|
|
9
11
|
> = Id<
|
|
10
12
|
PluvPlatformConfig &
|
|
11
13
|
Omit<
|
|
12
|
-
CreateIOParams<PluvPlatform, TContext, TUser>,
|
|
14
|
+
CreateIOParams<PluvPlatform, TContext, TUser, TCrdt>,
|
|
13
15
|
"authorize" | "context" | "limits" | "platform"
|
|
14
16
|
> & {
|
|
15
17
|
authorize: PluvIOAuthorize<PluvPlatform, TUser, InferInitContextType<PluvPlatform>>;
|
|
@@ -20,9 +22,10 @@ export type PlatformPluvCreateIOParams<
|
|
|
20
22
|
export const platformPluv = <
|
|
21
23
|
TContext extends Record<string, any> = {},
|
|
22
24
|
TUser extends BaseUser = BaseUser,
|
|
25
|
+
TCrdt extends CrdtLibraryType<any> = CrdtLibraryType<NoopCrdtDocFactory>,
|
|
23
26
|
>(
|
|
24
|
-
config: PlatformPluvCreateIOParams<TContext, TUser>,
|
|
25
|
-
): CreateIOParams<PluvPlatform<TContext, TUser>, TContext, TUser> => {
|
|
27
|
+
config: PlatformPluvCreateIOParams<TContext, TUser, TCrdt>,
|
|
28
|
+
): CreateIOParams<PluvPlatform<TContext, TUser>, TContext, TUser, TCrdt> => {
|
|
26
29
|
const { authorize, context, crdt, debug } = config;
|
|
27
30
|
|
|
28
31
|
return {
|