@k67/kaitai-struct-ts 0.13.0 → 0.14.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/README.md +3 -2
- package/package.json +20 -18
package/README.md
CHANGED
|
@@ -145,6 +145,7 @@ const result = parse(compiled, binaryData)
|
|
|
145
145
|
```
|
|
146
146
|
|
|
147
147
|
**Benefits:**
|
|
148
|
+
|
|
148
149
|
- ✅ Eliminates redundant YAML parsing (1-5ms per parse)
|
|
149
150
|
- ✅ Skips schema validation overhead (0.5-2ms per parse)
|
|
150
151
|
- ✅ Ideal for batch processing or server applications
|
|
@@ -152,7 +153,7 @@ const result = parse(compiled, binaryData)
|
|
|
152
153
|
|
|
153
154
|
## Current Status
|
|
154
155
|
|
|
155
|
-
**Version:** 0.
|
|
156
|
+
**Version:** 0.14.0
|
|
156
157
|
**Status:** Production Ready 🚀
|
|
157
158
|
**Latest:** Schema Compilation API for performance optimization
|
|
158
159
|
|
|
@@ -168,7 +169,7 @@ const result = parse(compiled, binaryData)
|
|
|
168
169
|
- **Testing** - 283 comprehensive tests, all passing
|
|
169
170
|
- **Documentation** - Complete user and developer documentation
|
|
170
171
|
|
|
171
|
-
### 🎉 What's New in v0.
|
|
172
|
+
### 🎉 What's New in v0.14.0
|
|
172
173
|
|
|
173
174
|
- **Schema Compilation API** - Pre-compile schemas for optimal performance (NEW)
|
|
174
175
|
- `compileSchema()` - Compile .ksy schemas once for reuse
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.14.0",
|
|
8
8
|
"description": "Runtime interpreter for Kaitai Struct binary format definitions in TypeScript",
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"module": "./dist/index.mjs",
|
|
@@ -25,6 +25,23 @@
|
|
|
25
25
|
"README.md",
|
|
26
26
|
"LICENSE"
|
|
27
27
|
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"dev": "tsup --watch",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:watch": "vitest",
|
|
33
|
+
"test:ui": "vitest --ui",
|
|
34
|
+
"test:coverage": "vitest run --coverage",
|
|
35
|
+
"lint": "eslint src test --ext .ts",
|
|
36
|
+
"lint:fix": "eslint src test --ext .ts --fix",
|
|
37
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
38
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"changeset": "changeset",
|
|
41
|
+
"changeset:version": "changeset version",
|
|
42
|
+
"changeset:publish": "changeset publish",
|
|
43
|
+
"prepublishOnly": "pnpm run build && pnpm run test && pnpm run lint"
|
|
44
|
+
},
|
|
28
45
|
"keywords": [
|
|
29
46
|
"kaitai",
|
|
30
47
|
"kaitai-struct",
|
|
@@ -46,6 +63,7 @@
|
|
|
46
63
|
"url": "https://github.com/fabianopinto/kaitai-struct-ts/issues"
|
|
47
64
|
},
|
|
48
65
|
"homepage": "https://github.com/fabianopinto/kaitai-struct-ts#readme",
|
|
66
|
+
"packageManager": "pnpm@10.16.1",
|
|
49
67
|
"engines": {
|
|
50
68
|
"node": ">=18.0.0"
|
|
51
69
|
},
|
|
@@ -68,21 +86,5 @@
|
|
|
68
86
|
"dependencies": {
|
|
69
87
|
"pako": "^2.1.0",
|
|
70
88
|
"yaml": "^2.8.1"
|
|
71
|
-
},
|
|
72
|
-
"scripts": {
|
|
73
|
-
"build": "tsup",
|
|
74
|
-
"dev": "tsup --watch",
|
|
75
|
-
"test": "vitest run",
|
|
76
|
-
"test:watch": "vitest",
|
|
77
|
-
"test:ui": "vitest --ui",
|
|
78
|
-
"test:coverage": "vitest run --coverage",
|
|
79
|
-
"lint": "eslint src test --ext .ts",
|
|
80
|
-
"lint:fix": "eslint src test --ext .ts --fix",
|
|
81
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
82
|
-
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
83
|
-
"typecheck": "tsc --noEmit",
|
|
84
|
-
"changeset": "changeset",
|
|
85
|
-
"changeset:version": "changeset version",
|
|
86
|
-
"changeset:publish": "changeset publish"
|
|
87
89
|
}
|
|
88
|
-
}
|
|
90
|
+
}
|