@holo-js/config 0.2.6 → 0.3.0

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.
@@ -0,0 +1,18 @@
1
+ interface HoloConfigNormalizerContext {
2
+ readonly values: Readonly<Record<string, object>>;
3
+ get<TValue extends object>(name: string): TValue | undefined;
4
+ has(name: string): boolean;
5
+ }
6
+ interface HoloConfigNormalizer<TInput = unknown, TOutput extends object = object> {
7
+ readonly name: string;
8
+ readonly dependencies?: readonly string[];
9
+ normalize(value: TInput | undefined, context: HoloConfigNormalizerContext): TOutput;
10
+ }
11
+ declare function registerConfigNormalizer<TInput, TOutput extends object>(normalizer: HoloConfigNormalizer<TInput, TOutput>): () => void;
12
+ declare function composeRegisteredConfig(rawConfig: Readonly<Record<string, unknown>>, initialValues: Readonly<Record<string, object>>): Readonly<Record<string, object>>;
13
+ declare function resetConfigNormalizers(): void;
14
+ declare const configRegistryInternals: {
15
+ getRegisteredNames(): readonly string[];
16
+ };
17
+
18
+ export { type HoloConfigNormalizer, type HoloConfigNormalizerContext, composeRegisteredConfig, configRegistryInternals, registerConfigNormalizer, resetConfigNormalizers };
@@ -0,0 +1,12 @@
1
+ import {
2
+ composeRegisteredConfig,
3
+ configRegistryInternals,
4
+ registerConfigNormalizer,
5
+ resetConfigNormalizers
6
+ } from "./chunk-SAQGYMAD.mjs";
7
+ export {
8
+ composeRegisteredConfig,
9
+ configRegistryInternals,
10
+ registerConfigNormalizer,
11
+ resetConfigNormalizers
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holo-js/config",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "description": "Holo-JS Framework - typed config loading, env layering, and runtime access",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,6 +8,10 @@
8
8
  ".": {
9
9
  "types": "./dist/index.d.ts",
10
10
  "import": "./dist/index.mjs"
11
+ },
12
+ "./registry": {
13
+ "types": "./dist/registry.d.ts",
14
+ "import": "./dist/registry.mjs"
11
15
  }
12
16
  },
13
17
  "main": "./dist/index.mjs",
@@ -22,7 +26,7 @@
22
26
  "test": "vitest --run"
23
27
  },
24
28
  "dependencies": {
25
- "@holo-js/db": "^0.2.6"
29
+ "@holo-js/kernel": "^0.3.0"
26
30
  },
27
31
  "devDependencies": {
28
32
  "tsup": "^8.3.5",