v0.7 Nam Phu Chet Si

Photo by Maria Goroshko
Why Nam Phu Chet Si?
Nam Phu Chet Si is a national park in the North of Thailand with a lot of great waterfalls. Numerous ideas for Farfetched came to my mind while I was there 🌊
New integrations for creating Contract — @farfetched/io-ts and @farfetched/superstruct. Also, this release contains some bug fixes, improvements and minor breaking changes.
Migration guide
Provide unset method in custom cache adapter
Since v0.6.2 Farfetched supports unset method in custom cache adapter. In v0.7 it is required.
Do not use refetch in @farfetched/solid
tsx
import { createQueryResource } from '@farfetched/solid';
function User() {
const [
user,
{
refetch,
start,
},
] = createQueryResource(userQuery);
return (
<div>
<button onClick={refetch}>Start query</button>
</div>
);
}Full changelog
0.7.2
0.7.1
0.7.0
@farfetched/core
Minor Changes
- 294f0ae: Add
namefield to meta of any RemoteOperation - 7fd0c57: Share
inMemoryCachebetween scopes, do not blockallSettledin it - 2116b36: Use
nameof a Query as a part of key incachein case of absentsidand uniqname - 942cbf2: Allow to override
credentialsincreateJsonQueryandcreateJsonMutation - 79593c6: Make
unsetmethod of customcacheadapter required