@koderlabs/tasks-sdk-react 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +11 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -9,9 +9,17 @@ The provider initialises the core SDK at mount and exposes the client + any regi
9
9
  ## Install
10
10
 
11
11
  ```bash
12
- pnpm add @koderlabs/tasks-sdk @koderlabs/tasks-sdk-react
12
+ npm install @koderlabs/tasks-sdk @koderlabs/tasks-sdk-react
13
13
  # plus the integrations you need:
14
- pnpm add @koderlabs/tasks-sdk-web-errors @koderlabs/tasks-sdk-web-network @koderlabs/tasks-sdk-web-reporter
14
+ npm install @koderlabs/tasks-sdk-web-errors @koderlabs/tasks-sdk-web-network @koderlabs/tasks-sdk-web-reporter
15
+ ```
16
+
17
+ Using pnpm or yarn:
18
+
19
+ ```bash
20
+ pnpm add @koderlabs/tasks-sdk @koderlabs/tasks-sdk-react
21
+ # or
22
+ yarn add @koderlabs/tasks-sdk @koderlabs/tasks-sdk-react
15
23
  ```
16
24
 
17
25
  ## Usage
@@ -71,7 +79,7 @@ Strongly-typed sub-clients ship in Phase E. For now consumers cast as needed.
71
79
 
72
80
  ### `useUser()`
73
81
 
74
- Convenience hook for setting the current user on the client. See `src/useUser.ts` for signature.
82
+ Convenience hook for setting the current user on the client. Signature: `useUser(user: { id?: string; email?: string } | null): void`.
75
83
 
76
84
  ### `<ErrorBoundary fallback={ReactNode | (err) => ReactNode} client?={…}>`
77
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koderlabs/tasks-sdk-react",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "React Provider + hooks for the InstantTasks SDK.",
5
5
  "keywords": [
6
6
  "instanttasks",
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "sideEffects": false,
41
41
  "dependencies": {
42
- "@koderlabs/tasks-sdk": "0.1.1"
42
+ "@koderlabs/tasks-sdk": "0.1.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "^18 || ^19",