@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/react@0.32.7 build /home/runner/work/pluv/pluv/packages/react
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
  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 11.50 KB
12
- ESM ⚡️ Build success in 79ms
12
+ ESM ⚡️ Build success in 88ms
13
13
  CJS dist/index.js 13.97 KB
14
- CJS ⚡️ Build success in 80ms
14
+ CJS ⚡️ Build success in 88ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 5480ms
17
- DTS dist/index.d.mts 5.55 KB
18
- DTS dist/index.d.ts 5.55 KB
16
+ DTS ⚡️ Build success in 5694ms
17
+ DTS dist/index.d.mts 5.57 KB
18
+ DTS dist/index.d.ts 5.57 KB
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, Id, InferIOOutput, IOEventMessage, InferIOInput } from '@pluv/types';
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, Id, InferIOOutput, IOEventMessage, InferIOInput } from '@pluv/types';
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.7",
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.7",
22
- "@pluv/crdt": "^0.32.7",
23
- "@pluv/types": "^0.32.7"
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.7",
36
- "eslint-config-pluv": "^0.32.7"
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",
@@ -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 { CreateBundle, PluvProviderProps, PluvRoomProviderProps, SubscriptionHookOptions } from "./createBundle";
5
+ export type {
6
+ CreateBundle,
7
+ EventProxy,
8
+ PluvProviderProps,
9
+ PluvRoomProviderProps,
10
+ SubscriptionHookOptions,
11
+ } from "./createBundle";