@esmj/schema 0.8.0 → 0.8.2
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 +4 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -128,6 +128,7 @@ When choosing a schema validation library, bundle size can be an important facto
|
|
|
128
128
|
| @sinclair/typebox | ~11.7 KB |
|
|
129
129
|
| Yup | ~12.2 KB |
|
|
130
130
|
| Zod@3 | ~13 KB |
|
|
131
|
+
| Valibot | ~13.5 KB |
|
|
131
132
|
| @zod/mini | ~20.5 KB |
|
|
132
133
|
| AJV | ~31.4 KB |
|
|
133
134
|
| Joi | ~40.4 KB |
|
|
@@ -152,6 +153,7 @@ When choosing a schema validation library, bundle size can be an important facto
|
|
|
152
153
|
| `@sinclair/typebox` | `4 370 618.49 ± 1.23%` | `0.23 ± 1.23%` |
|
|
153
154
|
| ArkType | 16 282.69 ± 4.14% | 61.61 ± 4.38% |
|
|
154
155
|
| effect/Schema | 24 919.15 ± 4.31% | 40.31 ± 4.78% |
|
|
156
|
+
| Valibot | 288 143.23 ± 1.93% | 3.47 ± 2.00% |
|
|
155
157
|
| AJV | 240.32 ± 4.67% | 4 164.31 ± 2.04% |
|
|
156
158
|
|
|
157
159
|
#### Parsing Performance
|
|
@@ -167,6 +169,7 @@ When choosing a schema validation library, bundle size can be an important facto
|
|
|
167
169
|
| @sinclair/typebox | 228 711.62 ± 2.03% | 4.38 ± 2.23% |
|
|
168
170
|
| ArkType | 1 677 066.00 ± 0.58% | 0.60 ± 0.59% |
|
|
169
171
|
| effect/Schema | 1 060 056.14 ± 0.61% | 0.94 ± 0.61% |
|
|
172
|
+
| Valibot | 1 789 204.27 ± 0.49% | 0.56 ± 0.49% |
|
|
170
173
|
| `AJV` | `33 620 146.24 ± 1.19%` | `0.03 ± 1.26%` |
|
|
171
174
|
|
|
172
175
|
#### Error Handling Performance
|
|
@@ -182,6 +185,7 @@ When choosing a schema validation library, bundle size can be an important facto
|
|
|
182
185
|
| @sinclair/typebox | 228 734.49 ± 0.55% | 4.37 ± 0.56% |
|
|
183
186
|
| ArkType | 258 685.33 ± 1.23% | 3.87 ± 1.23% |
|
|
184
187
|
| effect/Schema | 165 753.69 ± 0.99% | 6.03 ± 1.00% |
|
|
188
|
+
| Valibot | 1 401 537.68 ± 1.02% | 0.71 ± 1.02% |
|
|
185
189
|
| `AJV` | `19 693 821.79 ± 1.81%` | `0.05 ± 1.83%` |
|
|
186
190
|
|
|
187
191
|
**Note:** During the performance tests, `@zod/mini` was observed to consume 200% CPU, while other libraries used only 100% CPU. This may affect the interpretation of the results, especially in multi-threaded environments.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esmj/schema",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Tiny extendable package for schema validation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"schema",
|
|
@@ -115,12 +115,12 @@
|
|
|
115
115
|
"homepage": "https://github.com/mjancarik/esmj-schema#readme",
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@biomejs/biome": "1.9.4",
|
|
118
|
-
"ajv": "^8.17.1",
|
|
119
|
-
"ajv-keywords": "^5.1.0",
|
|
120
118
|
"@commitlint/cli": "^19.8.1",
|
|
121
119
|
"@commitlint/config-conventional": "^19.8.1",
|
|
122
120
|
"@sinclair/typebox": "^0.34.41",
|
|
123
121
|
"@zod/mini": "^4.0.0-beta.0",
|
|
122
|
+
"ajv": "^8.17.1",
|
|
123
|
+
"ajv-keywords": "^5.1.0",
|
|
124
124
|
"arktype": "^2.1.22",
|
|
125
125
|
"commitizen": "^4.3.1",
|
|
126
126
|
"conventional-changelog-cli": "^5.0.0",
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
"lint-staged": "^16.1.6",
|
|
133
133
|
"superstruct": "^2.0.2",
|
|
134
134
|
"tsup": "^8.5.1",
|
|
135
|
+
"valibot": "^1.4.2",
|
|
135
136
|
"yup": "^1.7.0",
|
|
136
137
|
"zod": "^3.25.42"
|
|
137
138
|
}
|