@raf-query/react 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/README.md +7 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.7](https://github.com/KATT/raf-query/compare/0.1.6...0.1.7) (2026-10-13)
|
|
4
|
+
|
|
5
|
+
* validate search params with a zod schema in the README ([#36](https://github.com/KATT/raf-query/issues/36)) ([9142236](https://github.com/KATT/raf-query/commit/9142236f611deb0fdf9db5f7e2847bccad89e841))
|
|
6
|
+
|
|
7
|
+
## [0.1.6](https://github.com/KATT/raf-query/compare/0.1.5...0.1.6) (2026-10-12)
|
|
8
|
+
|
|
9
|
+
- one file per decision, and alternatives in the PR template ([#34](https://github.com/KATT/raf-query/issues/34)) ([e60d30b](https://github.com/KATT/raf-query/commit/e60d30bc99452eec7178fa2a6c7598987fe5254c)), references [#24](https://github.com/KATT/raf-query/issues/24) [#25](https://github.com/KATT/raf-query/issues/25) [#26](https://github.com/KATT/raf-query/issues/26) [#27](https://github.com/KATT/raf-query/issues/27) [#28](https://github.com/KATT/raf-query/issues/28) [#33](https://github.com/KATT/raf-query/issues/33) [#26](https://github.com/KATT/raf-query/issues/26) [#N](https://github.com/KATT/raf-query/issues/N) [#26](https://github.com/KATT/raf-query/issues/26) [#16](https://github.com/KATT/raf-query/issues/16) [#23](https://github.com/KATT/raf-query/issues/23) [#31](https://github.com/KATT/raf-query/issues/31) [#19](https://github.com/KATT/raf-query/issues/19) [#28](https://github.com/KATT/raf-query/issues/28) [#33](https://github.com/KATT/raf-query/issues/33)
|
|
10
|
+
|
|
3
11
|
## [0.1.5](https://github.com/KATT/raf-query/compare/0.1.4...0.1.5) (2026-10-12)
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
- measure bundle size against TanStack Query ([#33](https://github.com/KATT/raf-query/issues/33)) ([51606b3](https://github.com/KATT/raf-query/commit/51606b3be47a9a078fc4a81355fd952861f51d81)), references [pre-#23](https://github.com/pre-/issues/23) [#23](https://github.com/KATT/raf-query/issues/23) [Pre-#23](https://github.com/Pre-/issues/23)
|
|
6
14
|
|
|
7
15
|
## [0.1.4](https://github.com/KATT/raf-query/compare/0.1.3...0.1.4) (2026-10-12)
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -278,13 +278,15 @@ On the server, `ensure` and `fetch` load the first page. Pass `{ pages: n }` as
|
|
|
278
278
|
Filters, sort order, and pagination are search params. The loader turns them into the query's input, so every navigation starts the right query and the component only ever reads the handle it was given:
|
|
279
279
|
|
|
280
280
|
```tsx
|
|
281
|
-
|
|
281
|
+
import { z } from "zod";
|
|
282
|
+
|
|
283
|
+
const PostsSearch = z.object({
|
|
284
|
+
sort: z.enum(["newest", "oldest"]).default("newest"),
|
|
285
|
+
page: z.int().positive().default(1),
|
|
286
|
+
});
|
|
282
287
|
|
|
283
288
|
export const Route = createFileRoute("/posts")({
|
|
284
|
-
validateSearch:
|
|
285
|
-
sort: search.sort === "oldest" ? "oldest" : "newest",
|
|
286
|
-
page: Number(search.page ?? 1),
|
|
287
|
-
}),
|
|
289
|
+
validateSearch: PostsSearch,
|
|
288
290
|
loaderDeps: (args) => args.search,
|
|
289
291
|
loader: (args) => ({
|
|
290
292
|
posts: args.context.queryClient.prefetch(postsQuery, args.deps),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raf-query/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React bindings for raf-query, a render-as-you-fetch query library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"query",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"./tanstack-router": "./dist/tanstack-router.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@raf-query/core": "0.1.
|
|
43
|
+
"@raf-query/core": "0.1.7",
|
|
44
44
|
"effect": "^4.0.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|