Skip to content

Commit fb62504

Browse files
ci: version packages
1 parent d1b0505 commit fb62504

File tree

9 files changed

+156
-40
lines changed

9 files changed

+156
-40
lines changed

.changeset/jolly-spiders-fail.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# @connectivity-js/core
22

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+
337
## 0.1.0
438

539
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@connectivity-js/core",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Type-safe, lightweight, framework-agnostic connectivity detection and offline action queue",
55
"author": "@minseong0324 <KIM Minseong>",
66
"license": "MIT",

packages/devtools/CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# @connectivity-js/devtools
22

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/core@0.2.0
41+
342
## 0.1.0
443

544
### Minor Changes

packages/devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@connectivity-js/devtools",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Framework-agnostic devtools panel for Connectivity",
55
"author": "@minseong0324 <KIM Minseong>",
66
"license": "MIT",

packages/react-devtools/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# @connectivity-js/react-devtools
22

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+
343
## 0.1.0
444

545
### Minor Changes

packages/react-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@connectivity-js/react-devtools",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "React devtools for Connectivity",
55
"author": "@minseong0324 <KIM Minseong>",
66
"license": "MIT",

packages/react/CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# @connectivity-js/react
22

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/core@0.2.0
41+
342
## 0.1.0
443

544
### Minor Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@connectivity-js/react",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "React adapter for Connectivity",
55
"author": "@minseong0324 <KIM Minseong>",
66
"license": "MIT",

0 commit comments

Comments
 (0)