@o3co/ts.hocon 1.11.0 → 1.13.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.
@@ -1,4 +1,4 @@
1
- import { C as Config } from '../config-Dlq6rF3w.cjs';
1
+ import { C as Config } from '../config-6sApTEMM.cjs';
2
2
 
3
3
  /**
4
4
  * Read JSON with comments and trailing commas — the dialect VS Code and
@@ -20,7 +20,18 @@ import { C as Config } from '../config-Dlq6rF3w.cjs';
20
20
  * the JS number model, as they do for HOCON's own literals, so read large
21
21
  * identifiers with `getString`.
22
22
  *
23
- * See docs/specs/format-ingestion-mapping.md items F3.x in the hocon scope.
23
+ * **An unpaired `\uXXXX` surrogate is accepted here and refused by go.hocon,
24
+ * py.hocon and rs.hocon** (F3.5). That is deliberate, and the same divergence
25
+ * the properties adapter already carries under F2.8: a JavaScript string is
26
+ * UTF-16, like Java's, so it holds a lone surrogate natively and round-trips it.
27
+ * A Go or Rust string cannot hold one at all — Go silently substituted U+FFFD
28
+ * until F3.5 — and a Python `str` can hold one but cannot encode it as UTF-8,
29
+ * so all three refuse rather than defer the failure. Refusing here would mean
30
+ * this spec overriding the host language rather than protecting the user; see
31
+ * S1.2.6 for the class.
32
+ *
33
+ * See the F3.x items in the format-ingestion mapping spec:
34
+ * https://github.com/o3co/xx.hocon/blob/main/docs/format-ingestion-mapping.md
24
35
  */
25
36
  declare function parseJsonc(input: string, originDescription?: string): Config;
26
37
  /**
@@ -1,4 +1,4 @@
1
- import { C as Config } from '../config-Dlq6rF3w.js';
1
+ import { C as Config } from '../config-6sApTEMM.js';
2
2
 
3
3
  /**
4
4
  * Read JSON with comments and trailing commas — the dialect VS Code and
@@ -20,7 +20,18 @@ import { C as Config } from '../config-Dlq6rF3w.js';
20
20
  * the JS number model, as they do for HOCON's own literals, so read large
21
21
  * identifiers with `getString`.
22
22
  *
23
- * See docs/specs/format-ingestion-mapping.md items F3.x in the hocon scope.
23
+ * **An unpaired `\uXXXX` surrogate is accepted here and refused by go.hocon,
24
+ * py.hocon and rs.hocon** (F3.5). That is deliberate, and the same divergence
25
+ * the properties adapter already carries under F2.8: a JavaScript string is
26
+ * UTF-16, like Java's, so it holds a lone surrogate natively and round-trips it.
27
+ * A Go or Rust string cannot hold one at all — Go silently substituted U+FFFD
28
+ * until F3.5 — and a Python `str` can hold one but cannot encode it as UTF-8,
29
+ * so all three refuse rather than defer the failure. Refusing here would mean
30
+ * this spec overriding the host language rather than protecting the user; see
31
+ * S1.2.6 for the class.
32
+ *
33
+ * See the F3.x items in the format-ingestion mapping spec:
34
+ * https://github.com/o3co/xx.hocon/blob/main/docs/format-ingestion-mapping.md
24
35
  */
25
36
  declare function parseJsonc(input: string, originDescription?: string): Config;
26
37
  /**