diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..c28f4a4 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +examples/ +assets/ diff --git a/README.md b/README.md index 3a0e667..bc67c66 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ Supported Features // ReScript Brazil Community
+ +> :warning: This repo contains experimental bindings for [@tanstack/query](https://tanstack.com/query/v4) using the experimental optional fields API with ReScript@v10. +If you're looking bindings to the React Query v3 click [here](https://github.com/rescriptbr/react-query/tree/v0.0.2). ## Installation diff --git a/examples/package.json b/examples/package.json index 7f4fe41..e651dd6 100644 --- a/examples/package.json +++ b/examples/package.json @@ -12,14 +12,14 @@ "@rescript/react": "0.10.3", "@rescriptbr/react-query": "../", "@ryyppy/rescript-promise": "2.1.0", - "@vitejs/plugin-react": "1.0.1", + "@vitejs/plugin-react": "2.0.1", "react": "17.0.0", "react-dom": "17.0.0", - "react-query": "^3.25.0", - "rescript": "9.1.4", + "@tanstack/react-query": "4.2.1", + "rescript": "10.0.1", "web-vitals": "2.0.1" }, "devDependencies": { - "vite": "2.3.8" + "vite": "3.0.9" } } diff --git a/examples/src/App.res b/examples/src/App.res index dbeafa3..0d759b4 100644 --- a/examples/src/App.res +++ b/examples/src/App.res @@ -16,18 +16,15 @@ let fetchTodos = (_): Js.Promise.t