Skip to content

Commit c74c326

Browse files
Version Packages (#26)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 088a23b commit c74c326

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎.changeset/reactive-getconfig.md‎

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

‎packages/fetchium/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# fetchium
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- 088a23b: **Breaking:** `getConfig()` is now memoized via a `reactiveSignal` instead of being recomputed on every fetch; it only re-runs when a signal consumed inside notifies. Existing implementations that read mutable execution-context state directly (most commonly `this.response`) silently return stale config after first evaluation, because plain field reads track no signals. To react to new responses, wrap the read in a `reactiveSignal` thunk that consumes the newly-exposed `this.responseNotifier` (a Signalium `Notifier` on the execution context, fired by `RESTQueryAdapter` after each request): `reactiveSignal(() => { this.responseNotifier.consume(); return this.response?.ok; }).value`. `getConfig()` implementations that don't read mutable ctx state continue to work unchanged.
8+
39
## 0.3.1
410

511
### Patch Changes

‎packages/fetchium/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fetchium",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)