@mmobeus/luadata 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.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -35,8 +35,9 @@ Functions are synchronous and call the native Rust parser directly — no initia
35
35
 
36
36
  ## Options
37
37
 
38
- All functions accept an optional options object with three groups:
38
+ All functions accept an optional options object with four groups:
39
39
 
40
+ - **Schema** (`schema`, `unknownFields`) — provide a JSON Schema string to guide type decisions, overriding heuristics
40
41
  - **String transform** — limit string length during parsing (`truncate`, `empty`, `redact`, `replace`)
41
42
  - **Array detection** — control how integer-keyed Lua tables map to JSON arrays (`sparse`, `index-only`, `none`)
42
43
  - **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",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Parse Lua data files and convert to JSON (native Node.js addon)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,11 +27,11 @@
27
27
  "@napi-rs/cli": "^3.4.0"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@mmobeus/luadata-linux-x64-gnu": "0.1.14",
31
- "@mmobeus/luadata-linux-arm64-gnu": "0.1.14",
32
- "@mmobeus/luadata-darwin-x64": "0.1.14",
33
- "@mmobeus/luadata-darwin-arm64": "0.1.14",
34
- "@mmobeus/luadata-win32-x64-msvc": "0.1.14"
30
+ "@mmobeus/luadata-linux-x64-gnu": "0.1.15",
31
+ "@mmobeus/luadata-linux-arm64-gnu": "0.1.15",
32
+ "@mmobeus/luadata-darwin-x64": "0.1.15",
33
+ "@mmobeus/luadata-darwin-arm64": "0.1.15",
34
+ "@mmobeus/luadata-win32-x64-msvc": "0.1.15"
35
35
  },
36
36
  "license": "MIT",
37
37
  "repository": {