v0.8 Saphan Hin ​
Photo by Maria Goroshko
Why Saphan Hin?
Saphan Hin is a seaside park in the Phuket Town where almost the whole 0.8 release was written. It is a great place to relax and enjoy the sea breeze 🌊
It is a quite big release with a lot of new features and improvements. The most important changes are:
- Triggers API to keep your data fresh
- New integration for
typed-contracts
- Significant improvements in type inference
Furthermore, it includes a couple of minor breaking changes, so please read the migration guide carefully.
Migration guide ​
Do not use refetch
in @farfetched/solid
​
refetch
was deprecated in v0.7, use start
instead.
tsx
import { createQueryResource } from '@farfetched/solid';
function User() {
const [
user,
{
refetch,
start,
},
] = createQueryResource(userQuery);
return (
<div>
<button onClick={refetch}>Start query</button>
</div>
);
}
Do not use externalCache
adapter ​
externalCache
adapter is deprecated, write your own adapter instead by recipe.
Full changelog ​
0.8.14 ​
@farfetched/core
Patch Changes
- b435591: Reset attempts count in
retry
after manual start of the operation
0.8.13 ​
0.8.12 ​
@farfetched/core
Patch Changes
0.8.11 ​
0.8.10 ​
0.8.9 ​
0.8.8 ​
0.8.7 ​
@farfetched/core
Patch Changes
- d393e78: Fix extra refresh in
keepFresh
while source is changing for disabled Query
0.8.6 ​
0.8.5 ​
0.8.4 ​
0.8.3 ​
0.8.2 ​
0.8.1 ​
@farfetched/core
Patch Changes
- c1ceb16: Fix extra
setup
calls of@@trigger
inkeepFresh
- 4c7f25f: Do not flood keys with same value in meta in
sessionStorageCache
andlocalStorageCache
- 0ca10d3: Do not skip
.refresh
for disabled Query, instead postpone it until enabling - 0822244: Do not skip Query execution with
.refresh
with different params
0.8.0 ​
@farfetched/core
Minor Changes
- f04aa0d: Allow to pass any string as
query
increateJson*
- 386752e: Expose original error in
NetworkError
as well - 24cb348: Add new Event for the Query —
.refresh
- f6ce0bf: Fix types of
connectQuery
in case of target Query<void, ...> - e298d2f: Add new low-level function —
combineSourced
- 573ad52: Add
.$idle
Store that shows if fetching has started or not in Remote Operations - 24cb348: Add new operator —
keepFresh
- 19e9626: Mark
externalCache
as deprecated
Patch Changes