ata-validator 0.1.0 → 0.4.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 +120 -187
- package/binding/ata_napi.cpp +903 -114
- package/binding.gyp +13 -2
- package/compat.d.ts +23 -0
- package/include/ata.h +10 -2
- package/index.d.ts +37 -0
- package/index.js +150 -5
- package/lib/js-compiler.js +845 -0
- package/package.json +15 -8
- package/prebuilds/darwin-arm64/ata-validator.node +0 -0
- package/src/ata.cpp +776 -125
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ata-validator",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Ultra-fast JSON Schema validator
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Ultra-fast JSON Schema validator. Beats ajv on every valid-path benchmark: 1.1x–2.7x faster validate(obj), 151x faster compilation, 5.9x faster parallel batch. Speculative validation with V8-optimized JS codegen, simdjson, multi-core. Standard Schema V1 compatible.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"install": "node-gyp-build",
|
|
8
9
|
"build": "node-gyp rebuild",
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
"test": "node test.js",
|
|
12
13
|
"test:suite": "node tests/run_suite.js",
|
|
13
14
|
"test:compat": "node tests/test_compat.js",
|
|
15
|
+
"test:standard-schema": "node tests/test_standard_schema.js",
|
|
14
16
|
"bench": "node benchmark/bench_large.js"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
@@ -24,24 +26,29 @@
|
|
|
24
26
|
"simdjson",
|
|
25
27
|
"napi",
|
|
26
28
|
"ajv",
|
|
27
|
-
"ajv-alternative"
|
|
29
|
+
"ajv-alternative",
|
|
30
|
+
"standard-schema",
|
|
31
|
+
"fastify"
|
|
28
32
|
],
|
|
29
33
|
"author": "Mert Can Altin <mertcanaltin01@gmail.com>",
|
|
30
34
|
"license": "MIT",
|
|
31
35
|
"repository": {
|
|
32
36
|
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/mertcanaltin/ata.git"
|
|
37
|
+
"url": "git+https://github.com/mertcanaltin/ata-validator.git"
|
|
34
38
|
},
|
|
35
39
|
"bugs": {
|
|
36
|
-
"url": "https://github.com/mertcanaltin/ata/issues"
|
|
40
|
+
"url": "https://github.com/mertcanaltin/ata-validator/issues"
|
|
37
41
|
},
|
|
38
|
-
"homepage": "https://
|
|
42
|
+
"homepage": "https://ata-validator.com",
|
|
39
43
|
"engines": {
|
|
40
44
|
"node": ">=18.0.0"
|
|
41
45
|
},
|
|
42
46
|
"files": [
|
|
43
47
|
"index.js",
|
|
48
|
+
"index.d.ts",
|
|
49
|
+
"lib/",
|
|
44
50
|
"compat.js",
|
|
51
|
+
"compat.d.ts",
|
|
45
52
|
"binding.gyp",
|
|
46
53
|
"binding/",
|
|
47
54
|
"include/",
|
|
@@ -52,11 +59,11 @@
|
|
|
52
59
|
"LICENSE"
|
|
53
60
|
],
|
|
54
61
|
"dependencies": {
|
|
55
|
-
"node-addon-api": "^8.0.0"
|
|
62
|
+
"node-addon-api": "^8.0.0",
|
|
63
|
+
"node-gyp-build": "^4.8.4"
|
|
56
64
|
},
|
|
57
65
|
"devDependencies": {
|
|
58
66
|
"node-gyp": "^11.0.0",
|
|
59
|
-
"node-gyp-build": "^4.8.4",
|
|
60
67
|
"prebuildify": "^6.0.1"
|
|
61
68
|
},
|
|
62
69
|
"gypfile": true
|
|
Binary file
|