@depup/typebox 1.1.20-depup.0 → 1.1.23-depup.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.
Files changed (216) hide show
  1. package/README.md +2 -2
  2. package/build/compile/compile.mjs +1 -0
  3. package/build/compile/validator.mjs +1 -1
  4. package/build/error/errors.mjs +1 -0
  5. package/build/format/email.d.mts +1 -1
  6. package/build/format/email.mjs +3 -24
  7. package/build/format/idn-email.d.mts +1 -1
  8. package/build/format/idn-email.mjs +3 -3
  9. package/build/format/iri-reference.mjs +1 -0
  10. package/build/format/uri-reference.mjs +1 -0
  11. package/build/guard/globals.d.mts +3 -3
  12. package/build/guard/guard.d.mts +1 -1
  13. package/build/schema/build.mjs +3 -3
  14. package/build/schema/engine/_functions.mjs +1 -1
  15. package/build/schema/engine/_guard.d.mts +3 -3
  16. package/build/schema/engine/_guard.mjs +3 -3
  17. package/build/schema/engine/_refine.d.mts +3 -3
  18. package/build/schema/engine/_refine.mjs +3 -3
  19. package/build/schema/engine/additionalProperties.d.mts +2 -2
  20. package/build/schema/engine/additionalProperties.mjs +2 -2
  21. package/build/schema/engine/anyOf.mjs +1 -1
  22. package/build/schema/engine/boolean.d.mts +2 -2
  23. package/build/schema/engine/boolean.mjs +2 -2
  24. package/build/schema/engine/const.d.mts +2 -2
  25. package/build/schema/engine/const.mjs +2 -2
  26. package/build/schema/engine/dependentRequired.d.mts +3 -3
  27. package/build/schema/engine/dependentRequired.mjs +3 -3
  28. package/build/schema/engine/enum.d.mts +2 -2
  29. package/build/schema/engine/enum.mjs +2 -2
  30. package/build/schema/engine/exclusiveMaximum.d.mts +2 -2
  31. package/build/schema/engine/exclusiveMaximum.mjs +2 -2
  32. package/build/schema/engine/exclusiveMinimum.d.mts +2 -2
  33. package/build/schema/engine/exclusiveMinimum.mjs +2 -2
  34. package/build/schema/engine/format.d.mts +2 -2
  35. package/build/schema/engine/format.mjs +2 -2
  36. package/build/schema/engine/maxItems.d.mts +2 -2
  37. package/build/schema/engine/maxItems.mjs +2 -2
  38. package/build/schema/engine/maxLength.d.mts +2 -2
  39. package/build/schema/engine/maxLength.mjs +2 -2
  40. package/build/schema/engine/maxProperties.d.mts +2 -2
  41. package/build/schema/engine/maxProperties.mjs +2 -2
  42. package/build/schema/engine/maximum.d.mts +2 -2
  43. package/build/schema/engine/maximum.mjs +2 -2
  44. package/build/schema/engine/minItems.d.mts +2 -2
  45. package/build/schema/engine/minItems.mjs +2 -2
  46. package/build/schema/engine/minLength.d.mts +2 -2
  47. package/build/schema/engine/minLength.mjs +2 -2
  48. package/build/schema/engine/minProperties.d.mts +2 -2
  49. package/build/schema/engine/minProperties.mjs +2 -2
  50. package/build/schema/engine/minimum.d.mts +2 -2
  51. package/build/schema/engine/minimum.mjs +2 -2
  52. package/build/schema/engine/multipleOf.d.mts +2 -2
  53. package/build/schema/engine/multipleOf.mjs +2 -2
  54. package/build/schema/engine/pattern.d.mts +2 -2
  55. package/build/schema/engine/pattern.mjs +2 -2
  56. package/build/schema/engine/recursiveRef.d.mts +1 -1
  57. package/build/schema/engine/recursiveRef.mjs +1 -1
  58. package/build/schema/engine/ref.d.mts +1 -1
  59. package/build/schema/engine/ref.mjs +1 -1
  60. package/build/schema/engine/required.d.mts +3 -3
  61. package/build/schema/engine/required.mjs +3 -3
  62. package/build/schema/engine/type.mjs +2 -2
  63. package/build/schema/engine/uniqueItems.d.mts +3 -3
  64. package/build/schema/engine/uniqueItems.mjs +3 -3
  65. package/build/schema/resolve/ref.mjs +1 -1
  66. package/build/schema/static/additionalProperties.mjs +1 -0
  67. package/build/schema/static/ref.mjs +1 -0
  68. package/build/schema/static/required.mjs +1 -0
  69. package/build/schema/static/static.mjs +1 -0
  70. package/build/schema/static/type.mjs +1 -0
  71. package/build/schema/static/unevaluatedProperties.mjs +1 -0
  72. package/build/system/environment/environment.d.mts +1 -1
  73. package/build/system/environment/environment.mjs +1 -1
  74. package/build/system/environment/evaluate.d.mts +9 -0
  75. package/build/system/environment/evaluate.mjs +37 -0
  76. package/build/system/memory/assign.mjs +1 -0
  77. package/build/system/memory/create.mjs +2 -1
  78. package/build/system/memory/discard.mjs +1 -0
  79. package/build/type/action/awaited.mjs +1 -0
  80. package/build/type/action/capitalize.mjs +1 -0
  81. package/build/type/action/conditional.mjs +1 -0
  82. package/build/type/action/constructor-parameters.mjs +1 -0
  83. package/build/type/action/evaluate.mjs +1 -0
  84. package/build/type/action/exclude.mjs +1 -0
  85. package/build/type/action/extract.mjs +1 -0
  86. package/build/type/action/indexed.mjs +1 -0
  87. package/build/type/action/instance-type.mjs +1 -0
  88. package/build/type/action/interface.mjs +1 -0
  89. package/build/type/action/keyof.mjs +1 -0
  90. package/build/type/action/lowercase.mjs +1 -0
  91. package/build/type/action/mapped.mjs +1 -0
  92. package/build/type/action/module.mjs +1 -0
  93. package/build/type/action/non-nullable.mjs +1 -0
  94. package/build/type/action/omit.mjs +1 -0
  95. package/build/type/action/options.mjs +1 -0
  96. package/build/type/action/parameters.mjs +1 -0
  97. package/build/type/action/partial.mjs +1 -0
  98. package/build/type/action/pick.mjs +1 -0
  99. package/build/type/action/readonly-type.mjs +1 -0
  100. package/build/type/action/required.mjs +1 -0
  101. package/build/type/action/return-type.mjs +1 -0
  102. package/build/type/action/uncapitalize.mjs +1 -0
  103. package/build/type/action/uppercase.mjs +1 -0
  104. package/build/type/engine/constructor-parameters/instantiate.mjs +1 -0
  105. package/build/type/engine/cyclic/extends.mjs +4 -4
  106. package/build/type/engine/cyclic/instantiate.mjs +1 -0
  107. package/build/type/engine/evaluate/broaden.mjs +1 -1
  108. package/build/type/engine/evaluate/compare.mjs +1 -0
  109. package/build/type/engine/exclude/instantiate.mjs +1 -0
  110. package/build/type/engine/extract/instantiate.mjs +1 -0
  111. package/build/type/engine/helpers/union.mjs +1 -0
  112. package/build/type/engine/indexed/from-array.mjs +1 -0
  113. package/build/type/engine/indexed/from-tuple.mjs +1 -0
  114. package/build/type/engine/interface/instantiate.mjs +1 -1
  115. package/build/type/engine/mapped/instantiate.mjs +1 -0
  116. package/build/type/engine/module/instantiate.mjs +1 -0
  117. package/build/type/engine/non-nullable/instantiate.mjs +1 -0
  118. package/build/type/engine/object/from-intersect.mjs +1 -0
  119. package/build/type/engine/object/from-type.mjs +1 -0
  120. package/build/type/engine/parameters/instantiate.mjs +1 -0
  121. package/build/type/engine/partial/from-type.mjs +1 -0
  122. package/build/type/engine/pick/instantiate.mjs +1 -0
  123. package/build/type/engine/record/from-key-integer.d.mts +2 -2
  124. package/build/type/engine/record/from-key-integer.mjs +1 -1
  125. package/build/type/engine/record/from-key-number.d.mts +1 -1
  126. package/build/type/engine/record/from-key-number.mjs +1 -1
  127. package/build/type/engine/required/from-type.mjs +1 -0
  128. package/build/type/engine/template-literal/encode.mjs +1 -1
  129. package/build/type/engine/template-literal/is-finite.mjs +1 -1
  130. package/build/type/engine/tuple/to-object.mjs +1 -0
  131. package/build/type/extends/extends-right.d.mts +1 -1
  132. package/build/type/extends/extends-right.mjs +1 -1
  133. package/build/type/extends/inference.mjs +1 -0
  134. package/build/type/extends/object.mjs +1 -0
  135. package/build/type/types/_codec.d.mts +1 -1
  136. package/build/type/types/_codec.mjs +1 -0
  137. package/build/type/types/base.d.mts +2 -2
  138. package/build/type/types/base.mjs +2 -2
  139. package/build/type/types/call.mjs +1 -0
  140. package/build/type/types/never.mjs +1 -0
  141. package/build/type/types/properties.mjs +0 -1
  142. package/build/type/types/record.mjs +1 -0
  143. package/build/type/types/ref.mjs +1 -0
  144. package/build/value/clean/from-base.d.mts +1 -1
  145. package/build/value/clean/from-base.mjs +1 -1
  146. package/build/value/codec/callback.mjs +2 -2
  147. package/build/value/codec/from-union.mjs +1 -1
  148. package/build/value/convert/from-array.mjs +3 -4
  149. package/build/value/convert/from-base.d.mts +1 -1
  150. package/build/value/convert/from-base.mjs +1 -1
  151. package/build/value/convert/from-bigint.d.mts +1 -1
  152. package/build/value/convert/from-bigint.mjs +1 -4
  153. package/build/value/convert/from-boolean.d.mts +1 -1
  154. package/build/value/convert/from-boolean.mjs +1 -4
  155. package/build/value/convert/from-integer.d.mts +1 -1
  156. package/build/value/convert/from-integer.mjs +1 -4
  157. package/build/value/convert/from-literal.mjs +4 -4
  158. package/build/value/convert/from-null.d.mts +1 -1
  159. package/build/value/convert/from-null.mjs +1 -4
  160. package/build/value/convert/from-number.d.mts +1 -1
  161. package/build/value/convert/from-number.mjs +1 -4
  162. package/build/value/convert/from-string.d.mts +1 -1
  163. package/build/value/convert/from-string.mjs +1 -4
  164. package/build/value/convert/from-type.d.mts +2 -2
  165. package/build/value/convert/from-type.mjs +21 -21
  166. package/build/value/convert/from-undefined.d.mts +1 -1
  167. package/build/value/convert/from-undefined.mjs +1 -4
  168. package/build/value/convert/from-void.d.mts +1 -1
  169. package/build/value/convert/from-void.mjs +1 -4
  170. package/build/value/convert/try/try-array.d.mts +2 -0
  171. package/build/value/convert/try/try-array.mjs +6 -0
  172. package/build/value/convert/try/try-bigint.mjs +4 -33
  173. package/build/value/convert/try/try-boolean.mjs +3 -26
  174. package/build/value/convert/try/try-null.mjs +2 -19
  175. package/build/value/convert/try/try-number.mjs +6 -38
  176. package/build/value/convert/try/try-result.mjs +0 -1
  177. package/build/value/convert/try/try-string.mjs +6 -50
  178. package/build/value/convert/try/try-undefined.mjs +2 -19
  179. package/build/value/convert/try/try.d.mts +1 -0
  180. package/build/value/convert/try/try.mjs +1 -0
  181. package/build/value/create/from-async-iterator.d.mts +1 -1
  182. package/build/value/create/from-async-iterator.mjs +1 -1
  183. package/build/value/create/from-base.d.mts +1 -1
  184. package/build/value/create/from-base.mjs +1 -1
  185. package/build/value/create/from-bigint.d.mts +1 -1
  186. package/build/value/create/from-bigint.mjs +1 -1
  187. package/build/value/create/from-boolean.d.mts +1 -1
  188. package/build/value/create/from-boolean.mjs +1 -1
  189. package/build/value/create/from-default.d.mts +1 -1
  190. package/build/value/create/from-default.mjs +1 -1
  191. package/build/value/create/from-integer.d.mts +1 -1
  192. package/build/value/create/from-integer.mjs +1 -1
  193. package/build/value/create/from-iterator.d.mts +1 -1
  194. package/build/value/create/from-iterator.mjs +1 -1
  195. package/build/value/create/from-literal.d.mts +1 -1
  196. package/build/value/create/from-literal.mjs +1 -1
  197. package/build/value/create/from-never.d.mts +1 -1
  198. package/build/value/create/from-never.mjs +1 -1
  199. package/build/value/create/from-null.d.mts +1 -1
  200. package/build/value/create/from-null.mjs +1 -1
  201. package/build/value/create/from-number.d.mts +1 -1
  202. package/build/value/create/from-number.mjs +1 -1
  203. package/build/value/create/from-record.d.mts +1 -1
  204. package/build/value/create/from-record.mjs +1 -1
  205. package/build/value/create/from-string.d.mts +1 -1
  206. package/build/value/create/from-string.mjs +1 -1
  207. package/build/value/create/from-symbol.d.mts +1 -1
  208. package/build/value/create/from-symbol.mjs +1 -1
  209. package/build/value/create/from-undefined.d.mts +1 -1
  210. package/build/value/create/from-undefined.mjs +1 -1
  211. package/build/value/create/from-void.d.mts +1 -1
  212. package/build/value/create/from-void.mjs +1 -1
  213. package/changes.json +1 -1
  214. package/package.json +32 -32
  215. package/build/system/environment/can-evaluate.d.mts +0 -2
  216. package/build/system/environment/can-evaluate.mjs +0 -26
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depup/typebox",
3
3
  "description": "Json Schema Type Builder with Static Type Resolution for TypeScript (with updated dependencies)",
4
- "version": "1.1.20-depup.0",
4
+ "version": "1.1.23-depup.0",
5
5
  "keywords": [
6
6
  "typebox",
7
7
  "depup",
@@ -22,21 +22,29 @@
22
22
  "types": "./build/index.d.mts",
23
23
  "module": "./build/index.mjs",
24
24
  "exports": {
25
- "./guard": {
26
- "import": "./build/guard/index.mjs",
27
- "default": "./build/guard/index.mjs"
25
+ "./system": {
26
+ "import": "./build/system/index.mjs",
27
+ "default": "./build/system/index.mjs"
28
+ },
29
+ "./compile": {
30
+ "import": "./build/compile/index.mjs",
31
+ "default": "./build/compile/index.mjs"
32
+ },
33
+ "./value": {
34
+ "import": "./build/value/index.mjs",
35
+ "default": "./build/value/index.mjs"
28
36
  },
29
37
  "./error": {
30
38
  "import": "./build/error/index.mjs",
31
39
  "default": "./build/error/index.mjs"
32
40
  },
33
- "./compile": {
34
- "import": "./build/compile/index.mjs",
35
- "default": "./build/compile/index.mjs"
41
+ "./guard": {
42
+ "import": "./build/guard/index.mjs",
43
+ "default": "./build/guard/index.mjs"
36
44
  },
37
- "./system": {
38
- "import": "./build/system/index.mjs",
39
- "default": "./build/system/index.mjs"
45
+ "./schema": {
46
+ "import": "./build/schema/index.mjs",
47
+ "default": "./build/schema/index.mjs"
40
48
  },
41
49
  "./format": {
42
50
  "import": "./build/format/index.mjs",
@@ -46,14 +54,6 @@
46
54
  "import": "./build/type/index.mjs",
47
55
  "default": "./build/type/index.mjs"
48
56
  },
49
- "./schema": {
50
- "import": "./build/schema/index.mjs",
51
- "default": "./build/schema/index.mjs"
52
- },
53
- "./value": {
54
- "import": "./build/value/index.mjs",
55
- "default": "./build/value/index.mjs"
56
- },
57
57
  ".": {
58
58
  "import": "./build/index.mjs",
59
59
  "default": "./build/index.mjs"
@@ -61,17 +61,23 @@
61
61
  },
62
62
  "typesVersions": {
63
63
  "*": {
64
- "guard": [
65
- "./build/guard/index.d.mts"
64
+ "system": [
65
+ "./build/system/index.d.mts"
66
+ ],
67
+ "compile": [
68
+ "./build/compile/index.d.mts"
69
+ ],
70
+ "value": [
71
+ "./build/value/index.d.mts"
66
72
  ],
67
73
  "error": [
68
74
  "./build/error/index.d.mts"
69
75
  ],
70
- "compile": [
71
- "./build/compile/index.d.mts"
76
+ "guard": [
77
+ "./build/guard/index.d.mts"
72
78
  ],
73
- "system": [
74
- "./build/system/index.d.mts"
79
+ "schema": [
80
+ "./build/schema/index.d.mts"
75
81
  ],
76
82
  "format": [
77
83
  "./build/format/index.d.mts"
@@ -79,12 +85,6 @@
79
85
  "type": [
80
86
  "./build/type/index.d.mts"
81
87
  ],
82
- "schema": [
83
- "./build/schema/index.d.mts"
84
- ],
85
- "value": [
86
- "./build/value/index.d.mts"
87
- ],
88
88
  ".": [
89
89
  "./build/index.d.mts"
90
90
  ]
@@ -94,8 +94,8 @@
94
94
  "changes": {},
95
95
  "depsUpdated": 0,
96
96
  "originalPackage": "typebox",
97
- "originalVersion": "1.1.20",
98
- "processedAt": "2026-04-08T12:26:26.308Z",
97
+ "originalVersion": "1.1.23",
98
+ "processedAt": "2026-04-09T16:37:17.382Z",
99
99
  "smokeTest": "passed"
100
100
  }
101
101
  }
@@ -1,2 +0,0 @@
1
- /** Returns true if the environment supports dynamic JavaScript evaluation */
2
- export declare function CanAccelerate(): boolean;
@@ -1,26 +0,0 @@
1
- import { Settings } from '../settings/index.mjs';
2
- import { Guard } from '../../guard/index.mjs';
3
- let supported = undefined;
4
- // ------------------------------------------------------------------
5
- // TryEval
6
- // ------------------------------------------------------------------
7
- // deno-coverage-ignore-start - catch is environment dependent
8
- function TryEval() {
9
- try {
10
- new globalThis.Function('null')();
11
- return true;
12
- }
13
- catch {
14
- return false;
15
- }
16
- }
17
- // deno-coverage-ignore-stop
18
- // ------------------------------------------------------------------
19
- // CanEvaluate
20
- // ------------------------------------------------------------------
21
- /** Returns true if the environment supports dynamic JavaScript evaluation */
22
- export function CanAccelerate() {
23
- if (Guard.IsUndefined(supported))
24
- supported = TryEval();
25
- return supported && Settings.Get().useAcceleration;
26
- }