|
1 | 1 | # @connectivity-js/react-devtools |
2 | 2 |
|
| 3 | +## 0.2.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- **Bug fix: `onSuccess`/`onError`/`onSettled` now fire after offline queue flush** ([#12](https://github.com/minseong0324/connectivity-js/pull/12)) |
| 8 | + |
| 9 | + Previously, when an action was queued while offline and later flushed, the result |
| 10 | + was discarded and no callbacks fired. Now: |
| 11 | + |
| 12 | + - `onSuccess(result)` and `onSettled()` are called after a successful flush |
| 13 | + - `onError(error)` and `onSettled()` are called when a flush exhausts all retry attempts |
| 14 | + - Intermediate retry attempts do not trigger any callbacks |
| 15 | + |
| 16 | + **BREAKING:** `onSettled` is no longer called when a job is enqueued. It fires only |
| 17 | + after the job reaches a terminal state (immediate execution success/error, or final |
| 18 | + flush outcome). Code relying on `onSettled` firing at enqueue time should switch to |
| 19 | + `onEnqueued` instead. |
| 20 | + |
| 21 | + *** |
| 22 | + |
| 23 | + **Bug fix: `QueuedJob.lastError` now stores the original `Error` object** |
| 24 | + |
| 25 | + `lastError` was previously storing a stringified message via `toErrorMessage()`, |
| 26 | + silently discarding the stack trace and any custom properties on the Error object. |
| 27 | + `lastError` is now typed `unknown` and holds the original thrown value. |
| 28 | + |
| 29 | + *** |
| 30 | + |
| 31 | + **Bug fix: grace period fires with the latest offline reason** |
| 32 | + |
| 33 | + When a second offline network event arrived during an active grace period timer, |
| 34 | + the timer closure retained the first event's `reason`. The committed status change |
| 35 | + now always reflects the most-recent event's reason. |
| 36 | + |
| 37 | +### Patch Changes |
| 38 | + |
| 39 | +- Updated dependencies [[`907d59e`](https://github.com/minseong0324/connectivity-js/commit/907d59ef5c7417a9b5265c3e51ca8cad16414394)]: |
| 40 | + - @connectivity-js/devtools@0.2.0 |
| 41 | + - @connectivity-js/core@0.2.0 |
| 42 | + |
3 | 43 | ## 0.1.0 |
4 | 44 |
|
5 | 45 | ### Minor Changes |
|
0 commit comments