@pithos/core 2.0.1 → 2.1.1

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 (192) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/arkhe/array/to-array.d.ts +1 -1
  3. package/dist/arkhe/async/parallel.js +1 -1
  4. package/dist/arkhe/async/retry.js +1 -1
  5. package/dist/arkhe/number/parsers/parse-float-def.d.ts +1 -1
  6. package/dist/arkhe/number/parsers/parse-float-def.js +1 -1
  7. package/dist/arkhe/number/parsers/parse-int-def.d.ts +1 -1
  8. package/dist/arkhe/object/defaults-deep.js +1 -1
  9. package/dist/arkhe/object/get.js +1 -1
  10. package/dist/arkhe/object/merge-with.js +1 -1
  11. package/dist/arkhe/object/set.js +2 -2
  12. package/dist/arkhe/string/pascal-case.js +1 -1
  13. package/dist/arkhe/test/console.js +1 -1
  14. package/dist/autocompletion.d.ts +719 -699
  15. package/dist/bridges/ensure.d.ts +28 -0
  16. package/dist/bridges/ensure.d.ts.map +1 -0
  17. package/dist/bridges/ensure.js +31 -0
  18. package/dist/bridges/ensure.js.map +1 -0
  19. package/dist/bridges/ensureAsync.d.ts +27 -0
  20. package/dist/bridges/ensureAsync.d.ts.map +1 -0
  21. package/dist/bridges/ensureAsync.js +30 -0
  22. package/dist/bridges/ensureAsync.js.map +1 -0
  23. package/dist/bridges/ensurePromise.d.ts +28 -0
  24. package/dist/bridges/ensurePromise.d.ts.map +1 -0
  25. package/dist/bridges/ensurePromise.js +33 -0
  26. package/dist/bridges/ensurePromise.js.map +1 -0
  27. package/dist/kanon/core/parser.d.ts +1 -1
  28. package/dist/kanon/core/parser.js +1 -1
  29. package/dist/kanon/helpers/as-zod.d.ts +1 -1
  30. package/dist/kanon/helpers/as-zod.js +2 -2
  31. package/dist/kanon/helpers/as-zod.shim.d.ts +1 -1
  32. package/dist/kanon/helpers/as-zod.shim.js +3 -3
  33. package/dist/kanon/helpers/k.d.ts +42 -42
  34. package/dist/kanon/helpers/k.js +41 -41
  35. package/dist/kanon/index.d.ts +56 -56
  36. package/dist/kanon/index.js +46 -46
  37. package/dist/kanon/jit/builders/coerce.d.ts +2 -2
  38. package/dist/kanon/jit/builders/coerce.js +2 -2
  39. package/dist/kanon/jit/builders/composites/array.d.ts +2 -2
  40. package/dist/kanon/jit/builders/composites/array.js +2 -2
  41. package/dist/kanon/jit/builders/composites/object.d.ts +3 -3
  42. package/dist/kanon/jit/builders/composites/object.js +2 -2
  43. package/dist/kanon/jit/builders/operators/union.d.ts +1 -1
  44. package/dist/kanon/jit/builders/operators/union.js +3 -3
  45. package/dist/kanon/jit/builders/primitives/boolean.d.ts +2 -2
  46. package/dist/kanon/jit/builders/primitives/boolean.js +3 -3
  47. package/dist/kanon/jit/builders/primitives/number.d.ts +2 -2
  48. package/dist/kanon/jit/builders/primitives/number.js +3 -3
  49. package/dist/kanon/jit/builders/primitives/others.d.ts +2 -2
  50. package/dist/kanon/jit/builders/primitives/others.js +3 -3
  51. package/dist/kanon/jit/builders/primitives/string.d.ts +2 -2
  52. package/dist/kanon/jit/builders/primitives/string.js +4 -4
  53. package/dist/kanon/jit/builders/refinements.d.ts +2 -2
  54. package/dist/kanon/jit/builders/refinements.js +2 -2
  55. package/dist/kanon/jit/cache.d.ts +1 -1
  56. package/dist/kanon/jit/compiler.d.ts +4 -4
  57. package/dist/kanon/jit/compiler.js +14 -14
  58. package/dist/kanon/jit/context.d.ts +1 -1
  59. package/dist/kanon/jit/utils/arbitraries.d.ts +1 -1
  60. package/dist/kanon/jit/utils/arbitraries.js +6 -6
  61. package/dist/kanon/jit/utils/code.d.ts +1 -1
  62. package/dist/kanon/jit/utils/code.js +1 -1
  63. package/dist/kanon/schemas/coerce/bigint.d.ts +1 -1
  64. package/dist/kanon/schemas/coerce/bigint.js +2 -2
  65. package/dist/kanon/schemas/coerce/boolean.d.ts +1 -1
  66. package/dist/kanon/schemas/coerce/date.d.ts +1 -1
  67. package/dist/kanon/schemas/coerce/date.js +2 -2
  68. package/dist/kanon/schemas/coerce/number.d.ts +1 -1
  69. package/dist/kanon/schemas/coerce/number.js +2 -2
  70. package/dist/kanon/schemas/coerce/string.d.ts +1 -1
  71. package/dist/kanon/schemas/coerce/string.js +2 -2
  72. package/dist/kanon/schemas/composites/array.d.ts +2 -2
  73. package/dist/kanon/schemas/composites/array.js +3 -3
  74. package/dist/kanon/schemas/composites/map.d.ts +2 -2
  75. package/dist/kanon/schemas/composites/map.js +3 -3
  76. package/dist/kanon/schemas/composites/object.d.ts +2 -2
  77. package/dist/kanon/schemas/composites/object.js +3 -3
  78. package/dist/kanon/schemas/composites/record.d.ts +2 -2
  79. package/dist/kanon/schemas/composites/record.js +2 -2
  80. package/dist/kanon/schemas/composites/set.d.ts +2 -2
  81. package/dist/kanon/schemas/composites/set.js +3 -3
  82. package/dist/kanon/schemas/composites/tuple.d.ts +2 -2
  83. package/dist/kanon/schemas/composites/tuple.js +2 -2
  84. package/dist/kanon/schemas/constraints/array.d.ts +3 -3
  85. package/dist/kanon/schemas/constraints/array.js +2 -2
  86. package/dist/kanon/schemas/constraints/bigint.d.ts +2 -2
  87. package/dist/kanon/schemas/constraints/bigint.js +2 -2
  88. package/dist/kanon/schemas/constraints/date.d.ts +2 -2
  89. package/dist/kanon/schemas/constraints/date.js +2 -2
  90. package/dist/kanon/schemas/constraints/map.d.ts +3 -3
  91. package/dist/kanon/schemas/constraints/map.js +2 -2
  92. package/dist/kanon/schemas/constraints/number.d.ts +2 -2
  93. package/dist/kanon/schemas/constraints/number.js +2 -2
  94. package/dist/kanon/schemas/constraints/object.d.ts +3 -3
  95. package/dist/kanon/schemas/constraints/object.js +2 -2
  96. package/dist/kanon/schemas/constraints/refine/array.d.ts +3 -3
  97. package/dist/kanon/schemas/constraints/refine/array.js +2 -2
  98. package/dist/kanon/schemas/constraints/refine/bigint.d.ts +2 -2
  99. package/dist/kanon/schemas/constraints/refine/date.d.ts +2 -2
  100. package/dist/kanon/schemas/constraints/refine/map.d.ts +3 -3
  101. package/dist/kanon/schemas/constraints/refine/map.js +2 -2
  102. package/dist/kanon/schemas/constraints/refine/number.d.ts +2 -2
  103. package/dist/kanon/schemas/constraints/refine/object.d.ts +3 -3
  104. package/dist/kanon/schemas/constraints/refine/object.js +2 -2
  105. package/dist/kanon/schemas/constraints/refine/set.d.ts +3 -3
  106. package/dist/kanon/schemas/constraints/refine/set.js +2 -2
  107. package/dist/kanon/schemas/constraints/refine/string.d.ts +2 -2
  108. package/dist/kanon/schemas/constraints/set.d.ts +3 -3
  109. package/dist/kanon/schemas/constraints/set.js +2 -2
  110. package/dist/kanon/schemas/constraints/string.d.ts +2 -2
  111. package/dist/kanon/schemas/constraints/string.js +3 -3
  112. package/dist/kanon/schemas/operators/intersection.d.ts +2 -2
  113. package/dist/kanon/schemas/operators/union.d.ts +2 -2
  114. package/dist/kanon/schemas/operators/union.js +1 -1
  115. package/dist/kanon/schemas/primitives/any.d.ts +1 -1
  116. package/dist/kanon/schemas/primitives/bigint.d.ts +1 -1
  117. package/dist/kanon/schemas/primitives/bigint.js +2 -2
  118. package/dist/kanon/schemas/primitives/boolean.d.ts +1 -1
  119. package/dist/kanon/schemas/primitives/boolean.js +1 -1
  120. package/dist/kanon/schemas/primitives/date.d.ts +1 -1
  121. package/dist/kanon/schemas/primitives/date.js +2 -2
  122. package/dist/kanon/schemas/primitives/enum.d.ts +1 -1
  123. package/dist/kanon/schemas/primitives/enum.js +1 -1
  124. package/dist/kanon/schemas/primitives/int.d.ts +1 -1
  125. package/dist/kanon/schemas/primitives/int.js +1 -1
  126. package/dist/kanon/schemas/primitives/literal.d.ts +1 -1
  127. package/dist/kanon/schemas/primitives/literal.js +1 -1
  128. package/dist/kanon/schemas/primitives/nativeEnum.d.ts +1 -1
  129. package/dist/kanon/schemas/primitives/nativeEnum.js +1 -1
  130. package/dist/kanon/schemas/primitives/never.d.ts +1 -1
  131. package/dist/kanon/schemas/primitives/never.js +1 -1
  132. package/dist/kanon/schemas/primitives/null.d.ts +1 -1
  133. package/dist/kanon/schemas/primitives/null.js +1 -1
  134. package/dist/kanon/schemas/primitives/number.d.ts +1 -1
  135. package/dist/kanon/schemas/primitives/number.js +2 -2
  136. package/dist/kanon/schemas/primitives/string.d.ts +1 -1
  137. package/dist/kanon/schemas/primitives/string.js +2 -2
  138. package/dist/kanon/schemas/primitives/symbol.d.ts +1 -1
  139. package/dist/kanon/schemas/primitives/symbol.js +1 -1
  140. package/dist/kanon/schemas/primitives/undefined.d.ts +1 -1
  141. package/dist/kanon/schemas/primitives/undefined.js +1 -1
  142. package/dist/kanon/schemas/primitives/unknown.d.ts +1 -1
  143. package/dist/kanon/schemas/primitives/void.d.ts +1 -1
  144. package/dist/kanon/schemas/primitives/void.js +1 -1
  145. package/dist/kanon/schemas/transforms/keyof.d.ts +4 -4
  146. package/dist/kanon/schemas/transforms/keyof.js +1 -1
  147. package/dist/kanon/schemas/transforms/omit.d.ts +4 -4
  148. package/dist/kanon/schemas/transforms/omit.js +1 -1
  149. package/dist/kanon/schemas/transforms/partial.d.ts +4 -4
  150. package/dist/kanon/schemas/transforms/partial.js +1 -1
  151. package/dist/kanon/schemas/transforms/pick.d.ts +4 -4
  152. package/dist/kanon/schemas/transforms/pick.js +1 -1
  153. package/dist/kanon/schemas/transforms/required.d.ts +4 -4
  154. package/dist/kanon/schemas/transforms/required.js +1 -1
  155. package/dist/kanon/schemas/wrappers/default.d.ts +2 -2
  156. package/dist/kanon/schemas/wrappers/lazy.d.ts +2 -2
  157. package/dist/kanon/schemas/wrappers/nullable.d.ts +2 -2
  158. package/dist/kanon/schemas/wrappers/nullish.d.ts +2 -2
  159. package/dist/kanon/schemas/wrappers/optional.d.ts +2 -2
  160. package/dist/kanon/schemas/wrappers/readonly.d.ts +2 -2
  161. package/dist/kanon/types/composites.d.ts +1 -1
  162. package/dist/kanon/types/constraints.d.ts +1 -1
  163. package/dist/kanon/types/guards.d.ts +7 -7
  164. package/dist/kanon/types/operators.d.ts +2 -2
  165. package/dist/kanon/types/primitives.d.ts +1 -1
  166. package/dist/kanon/types/transforms.d.ts +1 -1
  167. package/dist/kanon/types/wrappers.d.ts +1 -1
  168. package/dist/kanon/validation.d.ts +1 -1
  169. package/dist/kanon/validation.js +1 -1
  170. package/dist/taphos/array/nth.js +1 -1
  171. package/dist/taphos/array/pull-all.js +1 -1
  172. package/dist/taphos/array/pullAllBy.js +1 -1
  173. package/dist/taphos/array/pullAllWith.js +1 -1
  174. package/dist/taphos/array/without.js +1 -1
  175. package/dist/taphos/object/at.js +1 -1
  176. package/dist/taphos/object/extend.js +1 -1
  177. package/dist/taphos/object/invoke.js +1 -1
  178. package/dist/taphos/object/unset.js +2 -2
  179. package/dist/taphos/object/update.js +2 -2
  180. package/dist/taphos/util/rangeRight.js +1 -1
  181. package/dist/zygos/either.d.ts +1 -1
  182. package/dist/zygos/either.js +1 -1
  183. package/dist/zygos/option.d.ts +1 -1
  184. package/dist/zygos/result/result-async.d.ts +5 -5
  185. package/dist/zygos/result/result-async.js +5 -5
  186. package/dist/zygos/result/result.d.ts +3 -3
  187. package/dist/zygos/result/result.js +4 -4
  188. package/dist/zygos/safe.d.ts +1 -1
  189. package/dist/zygos/safe.js +1 -1
  190. package/dist/zygos/task-either.d.ts +3 -3
  191. package/dist/zygos/task-either.js +3 -3
  192. package/package.json +7 -2
@@ -1,5 +1,5 @@
1
- import { Schema } from "../../types/base";
2
- import { ObjectConstraint } from "../../types/constraints";
1
+ import { Schema } from "../../types/base.js";
2
+ import { ObjectConstraint } from "../../types/constraints.js";
3
3
  type AnySchema = Schema<any>;
4
4
  /**
5
5
  * Object schema with composition and constraints.
@@ -1,6 +1,6 @@
1
- import { isCoerced } from "../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
3
- import { addObjectConstraints } from "../../schemas/constraints/object";
1
+ import { isCoerced } from "../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
+ import { addObjectConstraints } from "../../schemas/constraints/object.js";
4
4
  /**
5
5
  * Object schema with composition and constraints.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { GenericSchema } from "../../types/base";
2
- import { RecordSchema } from "../../types/composites";
1
+ import { GenericSchema } from "../../types/base.js";
2
+ import { RecordSchema } from "../../types/composites.js";
3
3
  /**
4
4
  * Record schema - validates an object with typed keys and values.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isCoerced } from "../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { isCoerced } from "../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Record schema - validates an object with typed keys and values.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { GenericSchema } from "../../types/base";
2
- import { SetConstraint } from "../../types/constraints";
1
+ import { GenericSchema } from "../../types/base.js";
2
+ import { SetConstraint } from "../../types/constraints.js";
3
3
  /**
4
4
  * Set schema - validates a Set with typed elements.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { isCoerced } from "../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
3
- import { addSetConstraints } from "../../schemas/constraints/set";
1
+ import { isCoerced } from "../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
+ import { addSetConstraints } from "../../schemas/constraints/set.js";
4
4
  /**
5
5
  * Set schema - validates a Set with typed elements.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { GenericSchema } from "../../types/base";
2
- import { TupleSchema, TupleWithRestSchema } from "../../types/composites";
1
+ import { GenericSchema } from "../../types/base.js";
2
+ import { TupleSchema, TupleWithRestSchema } from "../../types/composites.js";
3
3
  /**
4
4
  * Tuple schema - validates an array with specific types at each position.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isCoerced } from "../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { isCoerced } from "../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Tuple schema - validates an array with specific types at each position.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { ArrayConstraint } from "../../types/constraints";
2
- import { ArraySchema } from "../../types/composites";
3
- import { GenericSchema } from "../../types/base";
1
+ import { ArrayConstraint } from "../../types/constraints.js";
2
+ import { ArraySchema } from "../../types/composites.js";
3
+ import { GenericSchema } from "../../types/base.js";
4
4
  /**
5
5
  * Adds array constraints to a base schema.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { refineArray } from "../../schemas/constraints/refine/array";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineArray } from "../../schemas/constraints/refine/array.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds array constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { BigIntConstraint } from "../../types/constraints";
2
- import { BigIntSchema } from "../../types/primitives";
1
+ import { BigIntConstraint } from "../../types/constraints.js";
2
+ import { BigIntSchema } from "../../types/primitives.js";
3
3
  /**
4
4
  * Adds bigint constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { refineBigInt } from "../../schemas/constraints/refine/bigint";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineBigInt } from "../../schemas/constraints/refine/bigint.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds bigint constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { DateConstraint } from "../../types/constraints";
2
- import { DateSchema } from "../../types/primitives";
1
+ import { DateConstraint } from "../../types/constraints.js";
2
+ import { DateSchema } from "../../types/primitives.js";
3
3
  /**
4
4
  * Adds date constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { refineDate } from "../../schemas/constraints/refine/date";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineDate } from "../../schemas/constraints/refine/date.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds date constraints to a base schema.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { MapConstraint } from "../../types/constraints";
2
- import { MapSchema } from "../../types/composites";
3
- import { GenericSchema } from "../../types/base";
1
+ import { MapConstraint } from "../../types/constraints.js";
2
+ import { MapSchema } from "../../types/composites.js";
3
+ import { GenericSchema } from "../../types/base.js";
4
4
  /**
5
5
  * Adds map constraints to a base schema.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { refineMap } from "../../schemas/constraints/refine/map";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineMap } from "../../schemas/constraints/refine/map.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds map constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { NumberConstraint } from "../../types/constraints";
2
- import { NumberSchema } from "../../types/primitives";
1
+ import { NumberConstraint } from "../../types/constraints.js";
2
+ import { NumberSchema } from "../../types/primitives.js";
3
3
  /**
4
4
  * Adds number constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { refineNumber } from "../../schemas/constraints/refine/number";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineNumber } from "../../schemas/constraints/refine/number.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds number constraints to a base schema.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { ObjectConstraint } from "../../types/constraints";
2
- import { ObjectSchema } from "../../types/composites";
3
- import { GenericSchema } from "../../types/base";
1
+ import { ObjectConstraint } from "../../types/constraints.js";
2
+ import { ObjectSchema } from "../../types/composites.js";
3
+ import { GenericSchema } from "../../types/base.js";
4
4
  /**
5
5
  * Adds object constraints to a base schema.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { refineObject } from "../../schemas/constraints/refine/object";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineObject } from "../../schemas/constraints/refine/object.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds object constraints to a base schema.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { ArrayConstraint } from "../../../types/constraints";
2
- import { ArraySchema } from "../../../types/composites";
3
- import { GenericSchema, Infer } from "../../../types/base";
1
+ import { ArrayConstraint } from "../../../types/constraints.js";
2
+ import { ArraySchema } from "../../../types/composites.js";
3
+ import { GenericSchema, Infer } from "../../../types/base.js";
4
4
  /**
5
5
  * Adds a refinement to an array schema.
6
6
  * Returns a base ArraySchema - the caller is responsible for adding constraints.
@@ -1,5 +1,5 @@
1
- import { isCoerced } from "../../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages";
1
+ import { isCoerced } from "../../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds a refinement to an array schema.
5
5
  * Returns a base ArraySchema - the caller is responsible for adding constraints.
@@ -1,5 +1,5 @@
1
- import { BigIntConstraint } from "../../../types/constraints";
2
- import { BigIntSchema } from "../../../types/primitives";
1
+ import { BigIntConstraint } from "../../../types/constraints.js";
2
+ import { BigIntSchema } from "../../../types/primitives.js";
3
3
  /**
4
4
  * Adds a refinement to a bigint schema.
5
5
  * Preserves coercion from the base schema.
@@ -1,5 +1,5 @@
1
- import { DateConstraint } from "../../../types/constraints";
2
- import { DateSchema } from "../../../types/primitives";
1
+ import { DateConstraint } from "../../../types/constraints.js";
2
+ import { DateSchema } from "../../../types/primitives.js";
3
3
  /**
4
4
  * Adds a refinement to a date schema.
5
5
  * Preserves coercion from the base schema.
@@ -1,6 +1,6 @@
1
- import { MapConstraint } from "../../../types/constraints";
2
- import { MapSchema } from "../../../types/composites";
3
- import { GenericSchema, Infer } from "../../../types/base";
1
+ import { MapConstraint } from "../../../types/constraints.js";
2
+ import { MapSchema } from "../../../types/composites.js";
3
+ import { GenericSchema, Infer } from "../../../types/base.js";
4
4
  /**
5
5
  * Adds a refinement to a map schema.
6
6
  * Returns a base MapSchema - the caller is responsible for adding constraints.
@@ -1,5 +1,5 @@
1
- import { isCoerced } from "../../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages";
1
+ import { isCoerced } from "../../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds a refinement to a map schema.
5
5
  * Returns a base MapSchema - the caller is responsible for adding constraints.
@@ -1,5 +1,5 @@
1
- import { NumberConstraint } from "../../../types/constraints";
2
- import { NumberSchema } from "../../../types/primitives";
1
+ import { NumberConstraint } from "../../../types/constraints.js";
2
+ import { NumberSchema } from "../../../types/primitives.js";
3
3
  /**
4
4
  * Adds a refinement to a number schema.
5
5
  * Preserves coercion from the base schema.
@@ -1,6 +1,6 @@
1
- import { ObjectConstraint } from "../../../types/constraints";
2
- import { ObjectSchema } from "../../../types/composites";
3
- import { GenericSchema, Infer } from "../../../types/base";
1
+ import { ObjectConstraint } from "../../../types/constraints.js";
2
+ import { ObjectSchema } from "../../../types/composites.js";
3
+ import { GenericSchema, Infer } from "../../../types/base.js";
4
4
  type InferObjectEntries<T extends Record<string, GenericSchema>> = {
5
5
  [K in keyof T]: Infer<T[K]>;
6
6
  };
@@ -1,5 +1,5 @@
1
- import { isCoerced } from "../../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages";
1
+ import { isCoerced } from "../../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds a refinement to an object schema.
5
5
  * Returns a base ObjectSchema - the caller is responsible for adding constraints.
@@ -1,6 +1,6 @@
1
- import { SetConstraint } from "../../../types/constraints";
2
- import { SetSchema } from "../../../types/composites";
3
- import { GenericSchema, Infer } from "../../../types/base";
1
+ import { SetConstraint } from "../../../types/constraints.js";
2
+ import { SetSchema } from "../../../types/composites.js";
3
+ import { GenericSchema, Infer } from "../../../types/base.js";
4
4
  /**
5
5
  * Adds a refinement to a set schema.
6
6
  * Returns a base SetSchema - the caller is responsible for adding constraints.
@@ -1,5 +1,5 @@
1
- import { isCoerced } from "../../../types/base";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages";
1
+ import { isCoerced } from "../../../types/base.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds a refinement to a set schema.
5
5
  * Returns a base SetSchema - the caller is responsible for adding constraints.
@@ -1,5 +1,5 @@
1
- import { StringConstraint } from "../../../types/constraints";
2
- import { StringSchema } from "../../../types/primitives";
1
+ import { StringConstraint } from "../../../types/constraints.js";
2
+ import { StringSchema } from "../../../types/primitives.js";
3
3
  /**
4
4
  * Adds a refinement to a string schema.
5
5
  * Preserves coercion from the base schema.
@@ -1,6 +1,6 @@
1
- import { SetConstraint } from "../../types/constraints";
2
- import { SetSchema } from "../../types/composites";
3
- import { GenericSchema } from "../../types/base";
1
+ import { SetConstraint } from "../../types/constraints.js";
2
+ import { SetSchema } from "../../types/composites.js";
3
+ import { GenericSchema } from "../../types/base.js";
4
4
  /**
5
5
  * Adds set constraints to a base schema.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { refineSet } from "../../schemas/constraints/refine/set";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { refineSet } from "../../schemas/constraints/refine/set.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
3
  /**
4
4
  * Adds set constraints to a base schema.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { StringConstraint } from "../../types/constraints";
2
- import { StringSchema } from "../../types/primitives";
1
+ import { StringConstraint } from "../../types/constraints.js";
2
+ import { StringSchema } from "../../types/primitives.js";
3
3
  /**
4
4
  * Adds string constraints to a base schema.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { refineString } from "../../schemas/constraints/refine/string";
2
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
3
- import { EMAIL_REGEX, URL_REGEX, UUID_REGEX, } from "../../core/consts/patterns";
1
+ import { refineString } from "../../schemas/constraints/refine/string.js";
2
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
3
+ import { EMAIL_REGEX, URL_REGEX, UUID_REGEX, } from "../../core/consts/patterns.js";
4
4
  /**
5
5
  * Adds string constraints to a base schema.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { IntersectionSchema } from "../../types/operators";
2
- import { GenericSchema } from "../../types/base";
1
+ import { IntersectionSchema } from "../../types/operators.js";
2
+ import { GenericSchema } from "../../types/base.js";
3
3
  /**
4
4
  * Intersection schema - validates that the value satisfies multiple schemas.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { GenericSchema } from "../../types/base";
2
- import { UnionSchema, DiscriminatedUnionSchema } from "../../types/operators";
1
+ import { GenericSchema } from "../../types/base.js";
2
+ import { UnionSchema, DiscriminatedUnionSchema } from "../../types/operators.js";
3
3
  /**
4
4
  * Union schema with specific types for better ergonomics.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Union schema - accepts one of the specified types.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { AnySchema } from "../../types/primitives";
1
+ import { AnySchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Any schema - accepts any value.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { BigIntConstraint } from "../../types/constraints";
1
+ import { BigIntConstraint } from "../../types/constraints.js";
2
2
  /**
3
3
  * BigInt schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
2
- import { addBigIntConstraints } from "../../schemas/constraints/bigint";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
+ import { addBigIntConstraints } from "../../schemas/constraints/bigint.js";
3
3
  /**
4
4
  * Creates the base validator.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { BooleanSchema } from "../../types/primitives";
1
+ import { BooleanSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Boolean schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Creates the base validator.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DateConstraint } from "../../types/constraints";
1
+ import { DateConstraint } from "../../types/constraints.js";
2
2
  /**
3
3
  * Date schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
2
- import { addDateConstraints } from "../../schemas/constraints/date";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
+ import { addDateConstraints } from "../../schemas/constraints/date.js";
3
3
  /**
4
4
  * Creates the base validator.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { EnumSchema, EnumValue } from "../../types/primitives";
1
+ import { EnumSchema, EnumValue } from "../../types/primitives.js";
2
2
  /**
3
3
  * Enum schema - accepts only string enumeration values
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Factory function for creating enum schemas.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { IntSchema } from "../../types/primitives";
1
+ import { IntSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Integer schema - validates integer numbers.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  const createValidator = (message) => {
3
3
  const errorMsg = message || ERROR_MESSAGES_COMPOSITION.int;
4
4
  return (value) => {
@@ -1,4 +1,4 @@
1
- import { LiteralSchema } from "../../types/primitives";
1
+ import { LiteralSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Literal schema - accepts only a specific value.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Literal schema - accepts only a specific value.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { NativeEnumSchema } from "../../types/primitives";
1
+ import { NativeEnumSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * NativeEnum schema - validates native TypeScript enums.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Extracts values from a native TypeScript enum.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { NeverSchema } from "../../types/primitives";
1
+ import { NeverSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Never schema - always rejects any value.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * INTENTIONAL: Object.freeze() protects the singleton from direct mutations.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { NullSchema } from "../../types/primitives";
1
+ import { NullSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Null schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Creates the base validator.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { NumberConstraint } from "../../types/constraints";
1
+ import { NumberConstraint } from "../../types/constraints.js";
2
2
  /**
3
3
  * Number schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
2
- import { addNumberConstraints } from "../../schemas/constraints/number";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
+ import { addNumberConstraints } from "../../schemas/constraints/number.js";
3
3
  /**
4
4
  * Creates the base validator.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { StringConstraint } from "../../types/constraints";
1
+ import { StringConstraint } from "../../types/constraints.js";
2
2
  /**
3
3
  * String schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
2
- import { addStringConstraints } from "../../schemas/constraints/string";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
+ import { addStringConstraints } from "../../schemas/constraints/string.js";
3
3
  /**
4
4
  * Creates the base validator.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { SymbolSchema } from "../../types/primitives";
1
+ import { SymbolSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Symbol schema - validates symbol values.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  const createValidator = (message) => {
3
3
  const errorMsg = message || ERROR_MESSAGES_COMPOSITION.symbol;
4
4
  return (value) => {
@@ -1,4 +1,4 @@
1
- import { UndefinedSchema } from "../../types/primitives";
1
+ import { UndefinedSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Undefined schema with 0 overhead after tsup + Terser build.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages";
1
+ import { ERROR_MESSAGES_COMPOSITION } from "../../core/consts/messages.js";
2
2
  /**
3
3
  * Creates the base validator.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { UnknownSchema } from "../../types/primitives";
1
+ import { UnknownSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Unknown schema - accepts any value (type-safe variant of any).
4
4
  *
@@ -1,4 +1,4 @@
1
- import { VoidSchema } from "../../types/primitives";
1
+ import { VoidSchema } from "../../types/primitives.js";
2
2
  /**
3
3
  * Void schema with 0 overhead after tsup + Terser build.
4
4
  *