@pluv/react 0.32.7 → 0.32.9
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 -3
- package/dist/index.d.ts +3 -3
- package/package.json +6 -6
- package/src/createBundle.tsx +1 -1
- package/src/index.ts +7 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/react@0.32.
|
|
2
|
+
> @pluv/react@0.32.9 build /home/runner/work/pluv/pluv/packages/react
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts --external react
|
|
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[32m11.50 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 88ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m13.97 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 88ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m5.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m5.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 5694ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m5.57 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m5.57 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @pluv/react
|
|
2
2
|
|
|
3
|
+
## 0.32.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 89d004d: Fix event proxy types for client-side events.
|
|
8
|
+
- @pluv/client@0.32.9
|
|
9
|
+
- @pluv/crdt@0.32.9
|
|
10
|
+
- @pluv/types@0.32.9
|
|
11
|
+
|
|
12
|
+
## 0.32.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @pluv/client@0.32.8
|
|
17
|
+
- @pluv/crdt@0.32.8
|
|
18
|
+
- @pluv/types@0.32.8
|
|
19
|
+
|
|
3
20
|
## 0.32.7
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { PluvRoomDebug, PluvRouterEventConfig, MergeEvents, PluvClient, WebSocke
|
|
|
2
2
|
export { ConnectionState, createClient, register } from '@pluv/client';
|
|
3
3
|
import { CrdtType, AbstractCrdtDoc, InferCrdtJson } from '@pluv/crdt';
|
|
4
4
|
export { CrdtType, InferCrdtJson } from '@pluv/crdt';
|
|
5
|
-
import { IOLike, JsonObject,
|
|
5
|
+
import { IOLike, JsonObject, InferIOOutput, Id, IOEventMessage, InferIOInput } from '@pluv/types';
|
|
6
6
|
export { BaseUser, EventMessage, EventRecord, IOEventMessage } from '@pluv/types';
|
|
7
7
|
import { ReactNode, FC, Dispatch } from 'react';
|
|
8
8
|
|
|
@@ -67,6 +67,6 @@ type CreateBundleOptions<TIO extends IOLike, TMetadata extends JsonObject = {},
|
|
|
67
67
|
addons?: readonly PluvRoomAddon<TIO, TMetadata, TPresence, TStorage>[];
|
|
68
68
|
router?: PluvRouter<TIO, TPresence, TStorage, TEvents>;
|
|
69
69
|
};
|
|
70
|
-
declare const createBundle: <TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}, TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(client: PluvClient<TIO, TPresence, TStorage, TMetadata>, options?: CreateBundleOptions<TIO, TMetadata, TPresence, TStorage, TEvents>) => CreateBundle<TIO, TMetadata, TPresence, TStorage>;
|
|
70
|
+
declare const createBundle: <TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}, TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(client: PluvClient<TIO, TPresence, TStorage, TMetadata>, options?: CreateBundleOptions<TIO, TMetadata, TPresence, TStorage, TEvents>) => CreateBundle<TIO, TMetadata, TPresence, TStorage, TEvents>;
|
|
71
71
|
|
|
72
|
-
export { type CreateBundle, type PluvProviderProps, type PluvRoomProviderProps, type SubscriptionHookOptions, createBundle };
|
|
72
|
+
export { type CreateBundle, type EventProxy, type PluvProviderProps, type PluvRoomProviderProps, type SubscriptionHookOptions, createBundle };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PluvRoomDebug, PluvRouterEventConfig, MergeEvents, PluvClient, WebSocke
|
|
|
2
2
|
export { ConnectionState, createClient, register } from '@pluv/client';
|
|
3
3
|
import { CrdtType, AbstractCrdtDoc, InferCrdtJson } from '@pluv/crdt';
|
|
4
4
|
export { CrdtType, InferCrdtJson } from '@pluv/crdt';
|
|
5
|
-
import { IOLike, JsonObject,
|
|
5
|
+
import { IOLike, JsonObject, InferIOOutput, Id, IOEventMessage, InferIOInput } from '@pluv/types';
|
|
6
6
|
export { BaseUser, EventMessage, EventRecord, IOEventMessage } from '@pluv/types';
|
|
7
7
|
import { ReactNode, FC, Dispatch } from 'react';
|
|
8
8
|
|
|
@@ -67,6 +67,6 @@ type CreateBundleOptions<TIO extends IOLike, TMetadata extends JsonObject = {},
|
|
|
67
67
|
addons?: readonly PluvRoomAddon<TIO, TMetadata, TPresence, TStorage>[];
|
|
68
68
|
router?: PluvRouter<TIO, TPresence, TStorage, TEvents>;
|
|
69
69
|
};
|
|
70
|
-
declare const createBundle: <TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}, TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(client: PluvClient<TIO, TPresence, TStorage, TMetadata>, options?: CreateBundleOptions<TIO, TMetadata, TPresence, TStorage, TEvents>) => CreateBundle<TIO, TMetadata, TPresence, TStorage>;
|
|
70
|
+
declare const createBundle: <TIO extends IOLike, TMetadata extends JsonObject = {}, TPresence extends JsonObject = {}, TStorage extends Record<string, CrdtType<any, any>> = {}, TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(client: PluvClient<TIO, TPresence, TStorage, TMetadata>, options?: CreateBundleOptions<TIO, TMetadata, TPresence, TStorage, TEvents>) => CreateBundle<TIO, TMetadata, TPresence, TStorage, TEvents>;
|
|
71
71
|
|
|
72
|
-
export { type CreateBundle, type PluvProviderProps, type PluvRoomProviderProps, type SubscriptionHookOptions, createBundle };
|
|
72
|
+
export { type CreateBundle, type EventProxy, type PluvProviderProps, type PluvRoomProviderProps, type SubscriptionHookOptions, createBundle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/react",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.9",
|
|
4
4
|
"description": "@pluv/client React.js bindings",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"fast-deep-equal": "^3.1.3",
|
|
21
|
-
"@pluv/client": "^0.32.
|
|
22
|
-
"@pluv/crdt": "^0.32.
|
|
23
|
-
"@pluv/types": "^0.32.
|
|
21
|
+
"@pluv/client": "^0.32.9",
|
|
22
|
+
"@pluv/crdt": "^0.32.9",
|
|
23
|
+
"@pluv/types": "^0.32.9"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@types/react": "^18.0.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"react": "^18.3.1",
|
|
33
33
|
"tsup": "^8.3.5",
|
|
34
34
|
"typescript": "^5.6.3",
|
|
35
|
-
"@pluv/tsconfig": "^0.32.
|
|
36
|
-
"eslint-config-pluv": "^0.32.
|
|
35
|
+
"@pluv/tsconfig": "^0.32.9",
|
|
36
|
+
"eslint-config-pluv": "^0.32.9"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsup src/index.ts --format esm,cjs --dts --external react",
|
package/src/createBundle.tsx
CHANGED
|
@@ -146,7 +146,7 @@ export const createBundle = <
|
|
|
146
146
|
>(
|
|
147
147
|
client: PluvClient<TIO, TPresence, TStorage, TMetadata>,
|
|
148
148
|
options: CreateBundleOptions<TIO, TMetadata, TPresence, TStorage, TEvents> = {},
|
|
149
|
-
): CreateBundle<TIO, TMetadata, TPresence, TStorage> => {
|
|
149
|
+
): CreateBundle<TIO, TMetadata, TPresence, TStorage, TEvents> => {
|
|
150
150
|
/**
|
|
151
151
|
* !HACK
|
|
152
152
|
* @description We'll let the context error out if client is not provided,
|
package/src/index.ts
CHANGED
|
@@ -2,4 +2,10 @@ export { ConnectionState, createClient, register } from "@pluv/client";
|
|
|
2
2
|
export type { CrdtType, InferCrdtJson } from "@pluv/crdt";
|
|
3
3
|
export type { BaseUser, EventMessage, EventRecord, IOEventMessage } from "@pluv/types";
|
|
4
4
|
export { createBundle } from "./createBundle";
|
|
5
|
-
export type {
|
|
5
|
+
export type {
|
|
6
|
+
CreateBundle,
|
|
7
|
+
EventProxy,
|
|
8
|
+
PluvProviderProps,
|
|
9
|
+
PluvRoomProviderProps,
|
|
10
|
+
SubscriptionHookOptions,
|
|
11
|
+
} from "./createBundle";
|