kubernetes-fluent-client 3.12.0 → 3.12.2

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/dist/dist.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./index.js";
2
+ //# sourceMappingURL=dist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dist.d.ts","sourceRoot":"","sources":["../src/dist.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC"}
package/dist/dist.js ADDED
@@ -0,0 +1,4 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // SPDX-FileCopyrightText: 2026-Present The Kubernetes Fluent Client Authors
3
+ process.emitWarning("Importing from 'kubernetes-fluent-client/dist' is deprecated and will be removed in a future release. Import from 'kubernetes-fluent-client' instead.", { code: "KFC_LEGACY_IMPORT", type: "DeprecationWarning" });
4
+ export * from "./index.js";
package/dist/index.d.ts CHANGED
@@ -4,9 +4,10 @@ import * as kind from "./upstream.js";
4
4
  export { kind };
5
5
  export { fetch } from "./fetch.js";
6
6
  export { StatusCodes as fetchStatus } from "http-status-codes";
7
- export { WatchCfg, WatchEvent } from "./fluent/watch.js";
7
+ export { WatchCfg, WatchEvent, Watcher } from "./fluent/watch.js";
8
+ export { WatchPhase } from "./fluent/shared-types.js";
8
9
  export { K8s } from "./fluent/index.js";
9
- export type { Operation, PartialDeep } from "./fluent/types.js";
10
+ export type { K8sInit, Operation, PartialDeep, WatcherType } from "./fluent/types.js";
10
11
  export { RegisterKind, modelToGroupVersionKind } from "./kinds.js";
11
12
  export { GenericKind } from "./types.js";
12
13
  export * from "./types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,CAAC;AAGpB,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,oGAAoG;AACpG,OAAO,EAAE,IAAI,EAAE,CAAC;AAGhB,OAAO,E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G3B,OAAO,KAAK,MAAM,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -9,8 +9,9 @@ export { kind };
9
9
  export { fetch } from "./fetch.js";
10
10
  // Export the HTTP status codes
11
11
  export { StatusCodes as fetchStatus } from "http-status-codes";
12
- // Export the Watch Config and Event types
13
- export { WatchEvent } from "./fluent/watch.js";
12
+ // Export watch types used by clients that reconcile Kubernetes resources.
13
+ export { WatchEvent, Watcher } from "./fluent/watch.js";
14
+ export { WatchPhase } from "./fluent/shared-types.js";
14
15
  // Export the fluent API entrypoint
15
16
  export { K8s } from "./fluent/index.js";
16
17
  // Export helpers for working with K8s types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kubernetes-fluent-client",
3
- "version": "3.12.0",
3
+ "version": "3.12.2",
4
4
  "description": "A @kubernetes/client-node fluent API wrapper that leverages K8s Server Side Apply.",
5
5
  "bin": "./dist/cli.js",
6
6
  "main": "dist/index.js",
@@ -11,6 +11,11 @@
11
11
  "import": "./dist/index.js",
12
12
  "default": "./dist/index.js"
13
13
  },
14
+ "./dist": {
15
+ "types": "./dist/dist.d.ts",
16
+ "import": "./dist/dist.js",
17
+ "default": "./dist/dist.js"
18
+ },
14
19
  "./test": {
15
20
  "types": "./dist/test/index.d.ts",
16
21
  "import": "./dist/test/index.js",
@@ -77,16 +82,16 @@
77
82
  "dependencies": {
78
83
  "@kubernetes/client-node": "1.4.0",
79
84
  "http-status-codes": "2.3.0",
80
- "js-yaml": "5.2.3",
85
+ "js-yaml": "5.3.0",
81
86
  "node-fetch": "2.7.0",
82
87
  "quicktype-core": "25.0.0",
83
- "tsx": "4.23.8",
88
+ "tsx": "4.23.12",
84
89
  "undici": "8.10.0",
85
90
  "yargs": "18.1.0"
86
91
  },
87
92
  "devDependencies": {
88
- "@commitlint/cli": "21.2.1",
89
- "@commitlint/config-conventional": "21.2.0",
93
+ "@commitlint/cli": "21.2.2",
94
+ "@commitlint/config-conventional": "21.2.2",
90
95
  "@defenseunicorns/eslint-config": "1.2.0",
91
96
  "@eslint/eslintrc": "3.3.6",
92
97
  "@eslint/js": "10.0.1",
@@ -95,18 +100,18 @@
95
100
  "@types/urijs": "1.19.26",
96
101
  "@types/ws": "8.18.1",
97
102
  "@types/yargs": "17.0.35",
98
- "@typescript-eslint/eslint-plugin": "8.67.0",
99
- "@typescript-eslint/parser": "8.67.0",
100
- "@vitest/coverage-v8": "4.1.10",
103
+ "@typescript-eslint/eslint-plugin": "8.68.0",
104
+ "@typescript-eslint/parser": "8.68.0",
105
+ "@vitest/coverage-v8": "4.1.11",
101
106
  "command-line-args": "6.0.2",
102
- "eslint": "10.8.1",
103
- "eslint-plugin-jsdoc": "64.1.0",
104
- "globals": "17.10.0",
107
+ "eslint": "10.9.1",
108
+ "eslint-plugin-jsdoc": "64.2.1",
109
+ "globals": "17.11.0",
105
110
  "husky": "9.1.7",
106
111
  "lint-staged": "17.3.0",
107
112
  "prettier": "3.9.6",
108
113
  "typescript": "6.0.3",
109
- "vitest": "4.1.10"
114
+ "vitest": "4.1.11"
110
115
  },
111
116
  "peerDependencies": {
112
117
  "vitest": "^4.1.10"
package/src/dist.ts ADDED
@@ -0,0 +1,9 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // SPDX-FileCopyrightText: 2026-Present The Kubernetes Fluent Client Authors
3
+
4
+ process.emitWarning(
5
+ "Importing from 'kubernetes-fluent-client/dist' is deprecated and will be removed in a future release. Import from 'kubernetes-fluent-client' instead.",
6
+ { code: "KFC_LEGACY_IMPORT", type: "DeprecationWarning" },
7
+ );
8
+
9
+ export * from "./index.js";
package/src/index.ts CHANGED
@@ -15,14 +15,15 @@ export { fetch } from "./fetch.js";
15
15
  // Export the HTTP status codes
16
16
  export { StatusCodes as fetchStatus } from "http-status-codes";
17
17
 
18
- // Export the Watch Config and Event types
19
- export { WatchCfg, WatchEvent } from "./fluent/watch.js";
18
+ // Export watch types used by clients that reconcile Kubernetes resources.
19
+ export { WatchCfg, WatchEvent, Watcher } from "./fluent/watch.js";
20
+ export { WatchPhase } from "./fluent/shared-types.js";
20
21
 
21
22
  // Export the fluent API entrypoint
22
23
  export { K8s } from "./fluent/index.js";
23
24
 
24
25
  // Export types used in the fluent API's public method signatures
25
- export type { Operation, PartialDeep } from "./fluent/types.js";
26
+ export type { K8sInit, Operation, PartialDeep, WatcherType } from "./fluent/types.js";
26
27
 
27
28
  // Export helpers for working with K8s types
28
29
  export { RegisterKind, modelToGroupVersionKind } from "./kinds.js";