@stamprally/react 0.19.0 → 0.20.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.
Files changed (2) hide show
  1. package/README.md +8 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @stamprally/react v0.19.0
1
+ # @stamprally/react v0.20.0
2
2
 
3
3
  React integration for `@stamprally/core`. `useStampRally` subscribes to immutable client state and exposes check-in, reward-claim, synchronization, and user-switching operations.
4
4
 
@@ -9,7 +9,7 @@ import { useStampRally } from "@stamprally/react";
9
9
 
10
10
  const config: PublicRallyConfig = {
11
11
  id: "city-tour",
12
- version: "0.19.0",
12
+ version: "0.20.0",
13
13
  title: "City Tour",
14
14
  spots: [{ id: "station", orderIndex: 0, name: "Station", conditions: [{ type: "passcode" }] }],
15
15
  rewards: [],
@@ -29,6 +29,12 @@ Offline queue responses are reflected immediately in `state`. Permanent server
29
29
  rejections are delivered through `error`, while retryable transport failures
30
30
  remain pending for `retrySync`.
31
31
 
32
+ For a batch endpoint, configure the client's `sync` adapter to return the
33
+ `SyncProgressResponse` from `@stamprally/core`. The hook keeps accepted results in
34
+ state, removes permanently rejected operations, and retains `FAILED_RETRYABLE`
35
+ operations for retry. `syncState.storageCapability` and
36
+ `syncState.rejectedHistory` can be passed to a status component.
37
+
32
38
  ## License
33
39
 
34
40
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stamprally/react",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "React hooks for @stamprally/core.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@stamprally/core": "0.19.0"
37
+ "@stamprally/core": "0.20.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "^18.0.0 || ^19.0.0",