@o3co/ts.hocon 1.9.0 → 1.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3co/ts.hocon",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Full Lightbend HOCON spec-compliant parser and config library for TypeScript",
5
5
  "keywords": [
6
6
  "hocon",
@@ -21,6 +21,31 @@
21
21
  "types": "./dist/zod.d.ts",
22
22
  "import": "./dist/zod.js",
23
23
  "require": "./dist/zod.cjs"
24
+ },
25
+ "./adapters/properties": {
26
+ "types": "./dist/adapters/properties.d.ts",
27
+ "import": "./dist/adapters/properties.js",
28
+ "require": "./dist/adapters/properties.cjs"
29
+ },
30
+ "./adapters/env": {
31
+ "types": "./dist/adapters/env.d.ts",
32
+ "import": "./dist/adapters/env.js",
33
+ "require": "./dist/adapters/env.cjs"
34
+ },
35
+ "./adapters/jsonc": {
36
+ "types": "./dist/adapters/jsonc.d.ts",
37
+ "import": "./dist/adapters/jsonc.js",
38
+ "require": "./dist/adapters/jsonc.cjs"
39
+ },
40
+ "./adapters/toml": {
41
+ "types": "./dist/adapters/toml.d.ts",
42
+ "import": "./dist/adapters/toml.js",
43
+ "require": "./dist/adapters/toml.cjs"
44
+ },
45
+ "./adapters/yaml": {
46
+ "types": "./dist/adapters/yaml.d.ts",
47
+ "import": "./dist/adapters/yaml.js",
48
+ "require": "./dist/adapters/yaml.cjs"
24
49
  }
25
50
  },
26
51
  "main": "./dist/index.cjs",
@@ -29,21 +54,20 @@
29
54
  "files": [
30
55
  "dist"
31
56
  ],
32
- "scripts": {
33
- "build": "tsup",
34
- "test": "vitest run",
35
- "test:watch": "vitest",
36
- "typecheck": "tsc --noEmit",
37
- "coverage": "vitest run --coverage",
38
- "bench": "vitest bench",
39
- "docs": "typedoc"
40
- },
41
57
  "peerDependencies": {
42
- "zod": ">=4.0.0"
58
+ "zod": ">=4.0.0",
59
+ "smol-toml": ">=1.0.0",
60
+ "yaml": ">=2.0.0"
43
61
  },
44
62
  "peerDependenciesMeta": {
45
63
  "zod": {
46
64
  "optional": true
65
+ },
66
+ "smol-toml": {
67
+ "optional": true
68
+ },
69
+ "yaml": {
70
+ "optional": true
47
71
  }
48
72
  },
49
73
  "devDependencies": {
@@ -51,10 +75,12 @@
51
75
  "@types/node": "^25.9.5",
52
76
  "@vitest/coverage-v8": "4.1.10",
53
77
  "js-yaml": "^4.3.0",
78
+ "smol-toml": "^1.7.0",
54
79
  "tsup": "^8.5.1",
55
80
  "typedoc": "^0.28.20",
56
81
  "typescript": "^5.9.3",
57
82
  "vitest": "4.1.10",
83
+ "yaml": "^2.9.0",
58
84
  "zod": "^4.4.3"
59
85
  },
60
86
  "repository": {
@@ -67,5 +93,13 @@
67
93
  },
68
94
  "homepage": "https://o3co.github.io/ts.hocon/",
69
95
  "bugs": "https://github.com/o3co/ts.hocon/issues",
70
- "packageManager": "pnpm@10.30.2"
71
- }
96
+ "scripts": {
97
+ "build": "tsup",
98
+ "test": "vitest run",
99
+ "test:watch": "vitest",
100
+ "typecheck": "tsc --noEmit",
101
+ "coverage": "vitest run --coverage",
102
+ "bench": "vitest bench",
103
+ "docs": "typedoc"
104
+ }
105
+ }
@@ -1,6 +1,3 @@
1
- type DurationUnit = 'ns' | 'us' | 'ms' | 's' | 'm' | 'h' | 'd';
2
- type ByteUnit = 'B' | 'KB' | 'KiB' | 'MB' | 'MiB' | 'GB' | 'GiB' | 'TB' | 'TiB';
3
-
4
1
  type ScalarValueType = 'string' | 'number' | 'boolean' | 'null';
5
2
  type HoconValue = {
6
3
  kind: 'object';
@@ -226,6 +223,9 @@ declare function parseAsync(input: string, opts?: ParseOptions): Promise<Config>
226
223
  declare function parseFile(filePath: string, opts?: ParseOptions): Config;
227
224
  declare function parseFileAsync(filePath: string, opts?: ParseOptions): Promise<Config>;
228
225
 
226
+ type DurationUnit = 'ns' | 'us' | 'ms' | 's' | 'm' | 'h' | 'd';
227
+ type ByteUnit = 'B' | 'KB' | 'KiB' | 'MB' | 'MiB' | 'GB' | 'GiB' | 'TB' | 'TiB';
228
+
229
229
  declare class Config {
230
230
  private readonly root;
231
231
  /** @internal resolved flag: true when no substitution placeholders remain. */
@@ -1,6 +1,3 @@
1
- type DurationUnit = 'ns' | 'us' | 'ms' | 's' | 'm' | 'h' | 'd';
2
- type ByteUnit = 'B' | 'KB' | 'KiB' | 'MB' | 'MiB' | 'GB' | 'GiB' | 'TB' | 'TiB';
3
-
4
1
  type ScalarValueType = 'string' | 'number' | 'boolean' | 'null';
5
2
  type HoconValue = {
6
3
  kind: 'object';
@@ -226,6 +223,9 @@ declare function parseAsync(input: string, opts?: ParseOptions): Promise<Config>
226
223
  declare function parseFile(filePath: string, opts?: ParseOptions): Config;
227
224
  declare function parseFileAsync(filePath: string, opts?: ParseOptions): Promise<Config>;
228
225
 
226
+ type DurationUnit = 'ns' | 'us' | 'ms' | 's' | 'm' | 'h' | 'd';
227
+ type ByteUnit = 'B' | 'KB' | 'KiB' | 'MB' | 'MiB' | 'GB' | 'GiB' | 'TB' | 'TiB';
228
+
229
229
  declare class Config {
230
230
  private readonly root;
231
231
  /** @internal resolved flag: true when no substitution placeholders remain. */