@pluv/platform-pluv 3.0.0 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-pluv@3.0.0 build /home/runner/work/pluv/pluv/packages/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
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.mjs 15.03 KB
12
- ESM ⚡️ Build success in 80ms
12
+ ESM ⚡️ Build success in 121ms
13
13
  CJS dist/index.js 16.87 KB
14
- CJS ⚡️ Build success in 80ms
14
+ CJS ⚡️ Build success in 124ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 6503ms
17
- DTS dist/index.d.mts 3.79 KB
18
- DTS dist/index.d.ts 3.79 KB
16
+ DTS ⚡️ Build success in 5897ms
17
+ DTS dist/index.d.mts 4.02 KB
18
+ DTS dist/index.d.ts 4.02 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 3.0.0
4
13
 
5
14
  ### 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.0.0",
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": "^3.0.0",
25
- "@pluv/io": "^3.0.0",
26
- "@pluv/types": "^3.0.0"
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": "^3.0.0",
33
- "eslint-config-pluv": "^3.0.0"
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",
@@ -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 {