@esmj/schema 0.5.1 → 0.6.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 CHANGED
@@ -117,15 +117,15 @@ When choosing a schema validation library, bundle size can be an important facto
117
117
 
118
118
  | Library | Bundle Size (minified + gzipped) |
119
119
  |-------------------|---------------------------------|
120
- | `@esmj/schema` | `~1,4 KB` |
120
+ | `@esmj/schema` | `~1.5 KB` |
121
121
  | Superstruct | ~3.2 KB |
122
122
  | @sinclair/typebox | ~11.7 KB |
123
123
  | Yup | ~12.2 KB |
124
124
  | Zod@3 | ~13 KB |
125
- | @zod/mini | ~20,5 KB |
126
- | Joi | ~40,4 KB |
127
- | Zod@4 | ~40,8 KB |
128
- | ArkType | ~41,8 KB |
125
+ | @zod/mini | ~20.5 KB |
126
+ | Joi | ~40.4 KB |
127
+ | Zod@4 | ~40.8 KB |
128
+ | ArkType | ~41.8 KB |
129
129
  | Effect/Schema | ~115.5 KB |
130
130
 
131
131
  ### Performance Comparison
@@ -229,7 +229,7 @@ console.log(result);
229
229
  ### Import Options
230
230
 
231
231
  ```typescript
232
- // Minimal version (core only, ~1.4 KB)
232
+ // Minimal version (core only, ~1.5 KB)
233
233
  import { s } from '@esmj/schema';
234
234
 
235
235
  // Full version (all extensions included, ~4 KB)
@@ -252,7 +252,7 @@ import { s } from '@esmj/schema';
252
252
 
253
253
  ### Bundle Size Impact
254
254
 
255
- - **Core only** (`@esmj/schema`): ~1.4 KB gzipped
255
+ - **Core only** (`@esmj/schema`): ~1.5 KB gzipped
256
256
  - **String extensions** (`@esmj/schema/string`): +~0.8 KB
257
257
  - **Number extensions** (`@esmj/schema/number`): +~0.6 KB
258
258
  - **Array extensions** (`@esmj/schema/array`): +~0.5 KB
@@ -1,4 +1,4 @@
1
- export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.cjs';
1
+ export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.mjs';
2
2
 
3
3
  declare module './index.ts' {
4
4
  interface ArraySchemaInterface<T extends SchemaType> {
@@ -1,4 +1,4 @@
1
- import './string.cjs';
2
- import './number.cjs';
3
- import './array.cjs';
4
- export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.cjs';
1
+ import './string.mjs';
2
+ import './number.mjs';
3
+ import './array.mjs';
4
+ export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.mjs';
@@ -1,4 +1,4 @@
1
- export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.cjs';
1
+ export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.mjs';
2
2
 
3
3
  declare module './index.ts' {
4
4
  interface NumberSchemaInterface {
@@ -1,4 +1,4 @@
1
- export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.cjs';
1
+ export { ArraySchemaInterface, BooleanSchemaInterface, DateSchemaInterface, EnumSchemaInterface, ErrorStructure, ExtenderType, Infer, Invalid, NumberSchemaInterface, ObjectSchemaInterface, SchemaInterface, SchemaInterfaceOptions, SchemaType, StringSchemaInterface, UnionSchemaInterface, Valid, extend, hookOriginal, s } from './index.mjs';
2
2
 
3
3
  declare module './index.ts' {
4
4
  interface StringSchemaInterface {
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@esmj/schema",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Tiny extendable package for schema validation.",
5
- "type": "module",
6
5
  "keywords": [
7
6
  "schema",
8
7
  "validation",
File without changes