@kubernetesjs/react 0.7.4 → 0.7.6
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 +6 -6
- package/context.d.ts +2 -2
- package/context.js +2 -2
- package/esm/context.js +2 -2
- package/esm/hooks.js +339 -339
- package/hooks.d.ts +1 -1
- package/hooks.js +338 -338
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @kubernetesjs/react
|
|
2
2
|
|
|
3
3
|
<p align="center" width="100%">
|
|
4
|
-
<img src="https://
|
|
4
|
+
<img src="https://raw.githubusercontent.com/constructive-io/.github/refs/heads/main/assets/logo.svg" alt="constructive" width="80"><br />
|
|
5
5
|
<br/>
|
|
6
6
|
React Hooks for Kubernetes
|
|
7
7
|
<br />
|
|
8
|
-
<a href="https://github.com/
|
|
9
|
-
<img height="20" src="https://github.com/
|
|
8
|
+
<a href="https://github.com/constructive-io/kubernetesjs/actions/workflows/ci.yml">
|
|
9
|
+
<img height="20" src="https://github.com/constructive-io/kubernetesjs/actions/workflows/ci.yml/badge.svg"/>
|
|
10
10
|
</a>
|
|
11
|
-
<a href="https://github.com/
|
|
11
|
+
<a href="https://github.com/constructive-io/kubernetesjs/blob/main/LICENSE">
|
|
12
12
|
<img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
|
|
13
13
|
</a>
|
|
14
14
|
</p>
|
|
@@ -267,12 +267,12 @@ Access the underlying KubernetesClient instance and configuration.
|
|
|
267
267
|
|
|
268
268
|
## Related
|
|
269
269
|
|
|
270
|
-
- [`kubernetesjs`](https://github.com/
|
|
270
|
+
- [`kubernetesjs`](https://github.com/constructive-io/kubernetesjs/tree/main/packages/kubernetesjs) - The core TypeScript client for Kubernetes
|
|
271
271
|
- [`@tanstack/react-query`](https://tanstack.com/query) - The powerful async state management library powering our hooks
|
|
272
272
|
|
|
273
273
|
## Credits
|
|
274
274
|
|
|
275
|
-
|
|
275
|
+
**🛠Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
|
|
276
276
|
|
|
277
277
|
## Disclaimer
|
|
278
278
|
|
package/context.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { KubernetesClient } from 'kubernetesjs';
|
|
3
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { KubernetesClient } from 'kubernetesjs';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
export interface KubernetesConfig {
|
|
5
5
|
restEndpoint: string;
|
|
6
6
|
headers?: Record<string, string>;
|
package/context.js
CHANGED
|
@@ -36,9 +36,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.queryClient = void 0;
|
|
37
37
|
exports.KubernetesProvider = KubernetesProvider;
|
|
38
38
|
exports.useKubernetes = useKubernetes;
|
|
39
|
-
const react_1 = __importStar(require("react"));
|
|
40
|
-
const kubernetesjs_1 = require("kubernetesjs");
|
|
41
39
|
const react_query_1 = require("@tanstack/react-query");
|
|
40
|
+
const kubernetesjs_1 = require("kubernetesjs");
|
|
41
|
+
const react_1 = __importStar(require("react"));
|
|
42
42
|
// Create context
|
|
43
43
|
const KubernetesContext = (0, react_1.createContext)(undefined);
|
|
44
44
|
// Query client for TanStack Query
|
package/esm/context.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { createContext, useContext, useMemo, useState } from 'react';
|
|
2
|
-
import { KubernetesClient } from 'kubernetesjs';
|
|
3
1
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
2
|
+
import { KubernetesClient } from 'kubernetesjs';
|
|
3
|
+
import React, { createContext, useContext, useMemo, useState } from 'react';
|
|
4
4
|
// Create context
|
|
5
5
|
const KubernetesContext = createContext(undefined);
|
|
6
6
|
// Query client for TanStack Query
|