@mmobeus/luadata-wasm 0.1.14 → 0.1.15

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/README.md CHANGED
@@ -37,8 +37,9 @@ const json = convert(luaString, {
37
37
 
38
38
  ## Options
39
39
 
40
- The `convert` function accepts an optional options object with three groups:
40
+ The `convert` function accepts an optional options object with four groups:
41
41
 
42
+ - **Schema** (`schema`, `unknownFields`) — provide a JSON Schema string to guide type decisions, overriding heuristics
42
43
  - **String transform** — limit string length during parsing (`truncate`, `empty`, `redact`, `replace`)
43
44
  - **Array detection** — control how integer-keyed Lua tables map to JSON arrays (`sparse`, `index-only`, `none`)
44
45
  - **Empty tables** — choose how empty Lua tables render in JSON (`null`, `omit`, `array`, `object`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmobeus/luadata-wasm",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Parse Lua data files and convert to JSON (WebAssembly)",
5
5
  "type": "module",
6
6
  "main": "index.js",
Binary file