@fluxbase/sdk-react 2026.3.1 → 2026.3.2-rc.3
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/README.md +4 -0
- package/package.json +2 -2
- package/src/test-utils.tsx +2 -2
- package/dist/index.d.mts +0 -1457
- package/dist/index.d.ts +0 -1457
- package/dist/index.js +0 -1637
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -1554
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -17,7 +17,11 @@ React hooks for Fluxbase - Backend as a Service.
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
+
# npm
|
|
20
21
|
npm install @fluxbase/sdk @fluxbase/sdk-react @tanstack/react-query
|
|
22
|
+
|
|
23
|
+
# pnpm
|
|
24
|
+
pnpm add @fluxbase/sdk @fluxbase/sdk-react @tanstack/react-query
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
## Quick Start
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxbase/sdk-react",
|
|
3
|
-
"version": "2026.3.
|
|
3
|
+
"version": "2026.3.2-rc.3",
|
|
4
4
|
"description": "React hooks for Fluxbase SDK",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@fluxbase/sdk": "^2026.3.
|
|
42
|
+
"@fluxbase/sdk": "^2026.3.2-rc.3",
|
|
43
43
|
"@tanstack/react-query": "^5.90.21",
|
|
44
44
|
"react": "^18.0.0 || ^19.0.0"
|
|
45
45
|
},
|
package/src/test-utils.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import React, { ReactElement } from "react";
|
|
6
|
-
import { render, RenderOptions } from "@testing-library/react";
|
|
6
|
+
import { render, RenderOptions, RenderResult } from "@testing-library/react";
|
|
7
7
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
8
8
|
import { FluxbaseProvider } from "./context";
|
|
9
9
|
import type { FluxbaseClient } from "@fluxbase/sdk";
|
|
@@ -196,7 +196,7 @@ export function renderWithProviders(
|
|
|
196
196
|
client?: FluxbaseClient;
|
|
197
197
|
queryClient?: QueryClient;
|
|
198
198
|
},
|
|
199
|
-
) {
|
|
199
|
+
): RenderResult & { client: FluxbaseClient; queryClient: QueryClient } {
|
|
200
200
|
const {
|
|
201
201
|
client = createMockClient(),
|
|
202
202
|
queryClient,
|