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
name
field to meta of any RemoteOperation - 7fd0c57: Share
inMemoryCache
between scopes, do not blockallSettled
in it - 2116b36: Use
name
of a Query as a part of key incache
in case of absentsid
and uniqname
- 942cbf2: Allow to override
credentials
increateJsonQuery
andcreateJsonMutation
- 79593c6: Make
unset
method of customcache
adapter required