@flattype/shared 1.10.0 → 1.11.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/dist/index.d.cts CHANGED
@@ -31,6 +31,11 @@ interface EncodeOptions {
31
31
  interface DecodeOptions {
32
32
  /** Throw on malformed input (default). Set `false` to recover what it can, e.g. from LLM output. */
33
33
  strict?: boolean;
34
+ /**
35
+ * With `strict: false`: drop any line that can't be read (prose around data, a path that conflicts) as if
36
+ * it weren't there, instead of throwing. That's what `fromModelOutput` uses. Default `false`.
37
+ */
38
+ skipInvalidLines?: boolean;
34
39
  /** Called for every value after decoding, bottom-up, exactly like the second argument of `JSON.parse`. */
35
40
  reviver?: Reviver;
36
41
  /**
package/dist/index.d.ts CHANGED
@@ -31,6 +31,11 @@ interface EncodeOptions {
31
31
  interface DecodeOptions {
32
32
  /** Throw on malformed input (default). Set `false` to recover what it can, e.g. from LLM output. */
33
33
  strict?: boolean;
34
+ /**
35
+ * With `strict: false`: drop any line that can't be read (prose around data, a path that conflicts) as if
36
+ * it weren't there, instead of throwing. That's what `fromModelOutput` uses. Default `false`.
37
+ */
38
+ skipInvalidLines?: boolean;
34
39
  /** Called for every value after decoding, bottom-up, exactly like the second argument of `JSON.parse`. */
35
40
  reviver?: Reviver;
36
41
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flattype/shared",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Shared TypeScript contracts for FlatType.js",
5
5
  "license": "MIT",
6
6
  "type": "module",