@wopee-io/wopee.wdio 6.0.0 → 6.0.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 (719) hide show
  1. package/build/domain/model/config.interface.d.ts +15 -60
  2. package/build/domain/model/config.interface.d.ts.map +1 -1
  3. package/build/domain/service/wopeeService.d.ts.map +1 -1
  4. package/build/domain/service/wopeeService.js +2 -0
  5. package/build/domain/service/wopeeService.js.map +1 -1
  6. package/build/utils/versionMetadata.js +2 -2
  7. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +1 -7
  8. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +1 -23
  9. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +1 -5
  10. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +1 -7
  11. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +3 -11
  12. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +1 -1
  13. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +1 -7
  14. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.d.ts +3 -11
  15. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.js +1 -1
  16. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssertPayload.interface.d.ts +1 -9
  17. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +9 -2
  18. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +30 -3
  19. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +15 -1
  20. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +17 -1
  21. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.d.ts +36 -0
  22. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.js +63 -0
  23. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.js +10 -0
  24. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
  25. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +2 -2
  26. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +41 -224
  27. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +16 -8
  28. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/retry.d.ts +52 -0
  29. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/retry.js +122 -0
  30. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +3 -7
  31. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +2 -2
  32. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +5 -10
  33. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +2 -1
  34. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  35. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +10 -0
  36. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +8 -0
  37. package/node_modules/@autonomous-testing/sdk/package.json +2 -2
  38. package/node_modules/follow-redirects/README.md +27 -1
  39. package/node_modules/follow-redirects/index.js +11 -6
  40. package/node_modules/follow-redirects/package.json +1 -1
  41. package/node_modules/zod/README.md +34 -24
  42. package/node_modules/zod/compile.cjs +96 -0
  43. package/node_modules/zod/compile.d.cts +1 -0
  44. package/node_modules/zod/compile.d.ts +1 -0
  45. package/node_modules/zod/compile.js +52 -0
  46. package/node_modules/zod/index.cjs +22 -3
  47. package/node_modules/zod/index.d.cts +3 -4
  48. package/node_modules/zod/index.d.ts +3 -4
  49. package/node_modules/zod/index.js +7 -4
  50. package/node_modules/zod/locales/index.cjs +36 -0
  51. package/node_modules/zod/locales/index.d.cts +1 -0
  52. package/node_modules/zod/locales/index.d.ts +1 -0
  53. package/node_modules/zod/locales/index.js +1 -0
  54. package/node_modules/zod/locales/package.json +7 -0
  55. package/node_modules/zod/mini/index.cjs +51 -0
  56. package/node_modules/zod/mini/index.d.cts +3 -0
  57. package/node_modules/zod/mini/index.d.ts +3 -0
  58. package/node_modules/zod/mini/index.js +3 -0
  59. package/node_modules/zod/mini/package.json +7 -0
  60. package/node_modules/zod/package.json +44 -15
  61. package/node_modules/zod/src/compile.ts +56 -0
  62. package/node_modules/zod/src/index.ts +7 -4
  63. package/node_modules/zod/src/locales/index.ts +1 -0
  64. package/node_modules/zod/src/mini/index.ts +3 -0
  65. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  66. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  67. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  68. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  69. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  70. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  71. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  72. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  73. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  74. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  75. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  76. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  77. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  78. package/node_modules/zod/src/v3/types.ts +8 -6
  79. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  80. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  81. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  82. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  83. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  84. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  85. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  86. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  87. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  88. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  89. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  90. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  91. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  92. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  93. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  94. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  95. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  96. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  97. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  98. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  99. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  100. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  101. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  102. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  103. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  104. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  105. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  106. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  107. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  108. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  109. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  110. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  111. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  112. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  113. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  114. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  115. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  116. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  117. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  118. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  119. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  120. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  121. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  122. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  123. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  124. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  125. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  126. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  127. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  128. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  129. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  130. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  131. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  132. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  133. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  134. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  135. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  136. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  137. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  138. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  139. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  140. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  141. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  142. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  143. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  144. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  145. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  146. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  147. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  148. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  149. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  150. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  151. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  152. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  153. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  154. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  155. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  156. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  157. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  158. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  159. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  160. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  161. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  162. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  163. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  164. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  165. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  166. package/node_modules/zod/src/v4/core/api.ts +442 -161
  167. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  168. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  169. package/node_modules/zod/src/v4/core/core.ts +146 -50
  170. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  171. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  172. package/node_modules/zod/src/v4/core/index.ts +5 -1
  173. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  174. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  175. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  176. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  177. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  178. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  179. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  180. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  181. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  182. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  183. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  184. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  185. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  186. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  187. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  188. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  189. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  190. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  191. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  192. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  193. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  194. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  195. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  196. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  197. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  198. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  199. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  200. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  201. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  202. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  203. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  204. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  205. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  206. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  207. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  208. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  209. package/node_modules/zod/src/v4/core/util.ts +675 -157
  210. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  211. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  212. package/node_modules/zod/src/v4/index.ts +3 -3
  213. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  214. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  215. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  216. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  217. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  218. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  219. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  220. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  221. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  222. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  223. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  224. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  225. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  226. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  227. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  228. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  229. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  230. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  231. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  232. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  233. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  234. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  235. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  236. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  237. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  238. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  239. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  240. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  241. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  242. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  243. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  244. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  245. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  246. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  247. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  248. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  249. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  250. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  251. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  252. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  253. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  254. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  255. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  256. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  257. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  258. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  259. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  260. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  261. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  262. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  263. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  264. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  265. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  266. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  267. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  268. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  269. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  270. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  271. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  272. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  273. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  274. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  275. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  276. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  277. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  278. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  279. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  280. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  281. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  282. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  283. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  284. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  285. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  286. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  287. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  288. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  289. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  290. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  291. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  292. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  293. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  294. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  295. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  296. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  297. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  298. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  299. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  300. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  301. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  302. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  303. package/node_modules/zod/v3/ZodError.cjs +42 -13
  304. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  305. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  306. package/node_modules/zod/v3/ZodError.js +23 -13
  307. package/node_modules/zod/v3/errors.cjs +19 -0
  308. package/node_modules/zod/v3/external.cjs +19 -0
  309. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  310. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  311. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  312. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  313. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  314. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  315. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  316. package/node_modules/zod/v3/index.cjs +19 -0
  317. package/node_modules/zod/v3/locales/en.cjs +1 -0
  318. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  319. package/node_modules/zod/v3/package.json +7 -0
  320. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  321. package/node_modules/zod/v3/types.cjs +28 -5
  322. package/node_modules/zod/v3/types.d.cts +4 -1
  323. package/node_modules/zod/v3/types.d.ts +4 -1
  324. package/node_modules/zod/v3/types.js +9 -5
  325. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  326. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  327. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  328. package/node_modules/zod/v4/classic/checks.js +1 -1
  329. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  330. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  331. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  332. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  333. package/node_modules/zod/v4/classic/compat.js +4 -0
  334. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  335. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  336. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  337. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  338. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  339. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  340. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  341. package/node_modules/zod/v4/classic/errors.js +45 -29
  342. package/node_modules/zod/v4/classic/external.cjs +55 -28
  343. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  344. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  345. package/node_modules/zod/v4/classic/external.js +7 -8
  346. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  347. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  348. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  349. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  350. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  351. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  352. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  353. package/node_modules/zod/v4/classic/in-out.js +36 -0
  354. package/node_modules/zod/v4/classic/index.cjs +21 -2
  355. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  356. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  357. package/node_modules/zod/v4/classic/index.js +2 -2
  358. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  359. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  360. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  361. package/node_modules/zod/v4/classic/iso.js +2 -17
  362. package/node_modules/zod/v4/classic/package.json +7 -0
  363. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  364. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  365. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  366. package/node_modules/zod/v4/classic/parse.js +10 -0
  367. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  368. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  369. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  370. package/node_modules/zod/v4/classic/schemas.js +766 -237
  371. package/node_modules/zod/v4/core/api.cjs +284 -54
  372. package/node_modules/zod/v4/core/api.d.cts +133 -82
  373. package/node_modules/zod/v4/core/api.d.ts +133 -82
  374. package/node_modules/zod/v4/core/api.js +255 -54
  375. package/node_modules/zod/v4/core/checks.cjs +100 -130
  376. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  377. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  378. package/node_modules/zod/v4/core/checks.js +80 -129
  379. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  380. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  381. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  382. package/node_modules/zod/v4/core/compile.js +1866 -0
  383. package/node_modules/zod/v4/core/core.cjs +120 -20
  384. package/node_modules/zod/v4/core/core.d.cts +40 -7
  385. package/node_modules/zod/v4/core/core.d.ts +40 -7
  386. package/node_modules/zod/v4/core/core.js +101 -21
  387. package/node_modules/zod/v4/core/doc.cjs +31 -9
  388. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  389. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  390. package/node_modules/zod/v4/core/doc.js +12 -9
  391. package/node_modules/zod/v4/core/errors.cjs +151 -60
  392. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  393. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  394. package/node_modules/zod/v4/core/errors.js +132 -60
  395. package/node_modules/zod/v4/core/index.cjs +28 -2
  396. package/node_modules/zod/v4/core/index.d.cts +5 -1
  397. package/node_modules/zod/v4/core/index.d.ts +5 -1
  398. package/node_modules/zod/v4/core/index.js +5 -1
  399. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  400. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  401. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  402. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  403. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  404. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  405. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  406. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  407. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  408. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  409. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  410. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  411. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  412. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  413. package/node_modules/zod/v4/core/memoizer.js +311 -0
  414. package/node_modules/zod/v4/core/package.json +7 -0
  415. package/node_modules/zod/v4/core/parse.cjs +183 -37
  416. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  417. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  418. package/node_modules/zod/v4/core/parse.js +154 -36
  419. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  420. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  421. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  422. package/node_modules/zod/v4/core/regexes.js +90 -29
  423. package/node_modules/zod/v4/core/registries.cjs +26 -7
  424. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  425. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  426. package/node_modules/zod/v4/core/registries.js +9 -9
  427. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  428. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  429. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  430. package/node_modules/zod/v4/core/schemas.js +1341 -422
  431. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  432. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  433. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  434. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  435. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  436. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  437. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  438. package/node_modules/zod/v4/core/util.cjs +580 -155
  439. package/node_modules/zod/v4/core/util.d.cts +98 -1
  440. package/node_modules/zod/v4/core/util.d.ts +98 -1
  441. package/node_modules/zod/v4/core/util.js +536 -156
  442. package/node_modules/zod/v4/core/versions.cjs +21 -2
  443. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  444. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  445. package/node_modules/zod/v4/core/versions.js +2 -2
  446. package/node_modules/zod/v4/core/visit.cjs +214 -0
  447. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  448. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  449. package/node_modules/zod/v4/core/visit.js +169 -0
  450. package/node_modules/zod/v4/index.cjs +34 -5
  451. package/node_modules/zod/v4/index.d.cts +2 -2
  452. package/node_modules/zod/v4/index.d.ts +2 -2
  453. package/node_modules/zod/v4/index.js +3 -2
  454. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  455. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  456. package/node_modules/zod/v4/locales/ar.js +19 -24
  457. package/node_modules/zod/v4/locales/az.cjs +20 -24
  458. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  459. package/node_modules/zod/v4/locales/az.js +19 -24
  460. package/node_modules/zod/v4/locales/be.cjs +29 -24
  461. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  462. package/node_modules/zod/v4/locales/be.js +28 -24
  463. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  464. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  465. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  466. package/node_modules/zod/v4/locales/bg.js +125 -0
  467. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  468. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  469. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  470. package/node_modules/zod/v4/locales/bn.js +113 -0
  471. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  472. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  473. package/node_modules/zod/v4/locales/ca.js +19 -25
  474. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  475. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  476. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  477. package/node_modules/zod/v4/locales/ckb.js +133 -0
  478. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  479. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  480. package/node_modules/zod/v4/locales/cs.js +23 -42
  481. package/node_modules/zod/v4/locales/da.cjs +147 -0
  482. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  483. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  484. package/node_modules/zod/v4/locales/da.js +120 -0
  485. package/node_modules/zod/v4/locales/de.cjs +22 -24
  486. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  487. package/node_modules/zod/v4/locales/de.js +21 -24
  488. package/node_modules/zod/v4/locales/el.cjs +139 -0
  489. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  490. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  491. package/node_modules/zod/v4/locales/el.js +112 -0
  492. package/node_modules/zod/v4/locales/en.cjs +35 -28
  493. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  494. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  495. package/node_modules/zod/v4/locales/en.js +34 -26
  496. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  497. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  498. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  499. package/node_modules/zod/v4/locales/eo.js +22 -24
  500. package/node_modules/zod/v4/locales/es.cjs +51 -31
  501. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  502. package/node_modules/zod/v4/locales/es.js +50 -31
  503. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  504. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  505. package/node_modules/zod/v4/locales/fa.js +21 -24
  506. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  507. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  508. package/node_modules/zod/v4/locales/fi.js +19 -24
  509. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  510. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  511. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  512. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  513. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  514. package/node_modules/zod/v4/locales/fr.js +52 -39
  515. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  516. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  517. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  518. package/node_modules/zod/v4/locales/gu.js +113 -0
  519. package/node_modules/zod/v4/locales/he.cjs +183 -78
  520. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  521. package/node_modules/zod/v4/locales/he.js +182 -78
  522. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  523. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  524. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  525. package/node_modules/zod/v4/locales/hi.js +111 -0
  526. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  527. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  528. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  529. package/node_modules/zod/v4/locales/hr.js +126 -0
  530. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  531. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  532. package/node_modules/zod/v4/locales/hu.js +21 -25
  533. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  534. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  535. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  536. package/node_modules/zod/v4/locales/hy.js +158 -0
  537. package/node_modules/zod/v4/locales/id.cjs +20 -24
  538. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  539. package/node_modules/zod/v4/locales/id.js +19 -24
  540. package/node_modules/zod/v4/locales/index.cjs +69 -1
  541. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  542. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  543. package/node_modules/zod/v4/locales/index.js +24 -0
  544. package/node_modules/zod/v4/locales/is.cjs +141 -0
  545. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  546. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  547. package/node_modules/zod/v4/locales/is.js +114 -0
  548. package/node_modules/zod/v4/locales/it.cjs +22 -25
  549. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  550. package/node_modules/zod/v4/locales/it.js +21 -25
  551. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  552. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  553. package/node_modules/zod/v4/locales/ja.js +21 -24
  554. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  555. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  556. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  557. package/node_modules/zod/v4/locales/ka.js +117 -0
  558. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  559. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  560. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  561. package/node_modules/zod/v4/locales/kh.js +3 -115
  562. package/node_modules/zod/v4/locales/km.cjs +142 -0
  563. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  564. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  565. package/node_modules/zod/v4/locales/km.js +115 -0
  566. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  567. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  568. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  569. package/node_modules/zod/v4/locales/kn.js +116 -0
  570. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  571. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  572. package/node_modules/zod/v4/locales/ko.js +19 -24
  573. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  574. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  575. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  576. package/node_modules/zod/v4/locales/lt.js +207 -0
  577. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  578. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  579. package/node_modules/zod/v4/locales/mk.js +21 -25
  580. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  581. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  582. package/node_modules/zod/v4/locales/ms.js +20 -24
  583. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  584. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  585. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  586. package/node_modules/zod/v4/locales/ne.js +111 -0
  587. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  588. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  589. package/node_modules/zod/v4/locales/nl.js +30 -32
  590. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  591. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  592. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  593. package/node_modules/zod/v4/locales/nn.js +113 -0
  594. package/node_modules/zod/v4/locales/no.cjs +24 -26
  595. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  596. package/node_modules/zod/v4/locales/no.js +23 -26
  597. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  598. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  599. package/node_modules/zod/v4/locales/ota.js +22 -25
  600. package/node_modules/zod/v4/locales/package.json +7 -0
  601. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  602. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  603. package/node_modules/zod/v4/locales/pl.js +21 -24
  604. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  605. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  606. package/node_modules/zod/v4/locales/ps.js +21 -24
  607. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  608. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  609. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  610. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  611. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  612. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  613. package/node_modules/zod/v4/locales/pt.js +94 -68
  614. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  615. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  616. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  617. package/node_modules/zod/v4/locales/ro.js +122 -0
  618. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  619. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  620. package/node_modules/zod/v4/locales/ru.js +28 -24
  621. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  622. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  623. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  624. package/node_modules/zod/v4/locales/sk.js +116 -0
  625. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  626. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  627. package/node_modules/zod/v4/locales/sl.js +21 -24
  628. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  629. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  630. package/node_modules/zod/v4/locales/sv.js +23 -26
  631. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  632. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  633. package/node_modules/zod/v4/locales/ta.js +22 -24
  634. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  635. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  636. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  637. package/node_modules/zod/v4/locales/tg.js +117 -0
  638. package/node_modules/zod/v4/locales/th.cjs +23 -24
  639. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  640. package/node_modules/zod/v4/locales/th.js +22 -24
  641. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  642. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  643. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  644. package/node_modules/zod/v4/locales/tk.js +107 -0
  645. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  646. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  647. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  648. package/node_modules/zod/v4/locales/tr.js +19 -24
  649. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  650. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  651. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  652. package/node_modules/zod/v4/locales/ua.js +3 -115
  653. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  654. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  655. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  656. package/node_modules/zod/v4/locales/uk.js +113 -0
  657. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  658. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  659. package/node_modules/zod/v4/locales/ur.js +22 -24
  660. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  661. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  662. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  663. package/node_modules/zod/v4/locales/uz.js +113 -0
  664. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  665. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  666. package/node_modules/zod/v4/locales/vi.js +21 -24
  667. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  668. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  669. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  670. package/node_modules/zod/v4/locales/yo.js +112 -0
  671. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  672. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  673. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  674. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  675. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  676. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  677. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  678. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  679. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  680. package/node_modules/zod/v4/mini/checks.js +1 -1
  681. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  682. package/node_modules/zod/v4/mini/coerce.js +5 -0
  683. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  684. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  685. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  686. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  687. package/node_modules/zod/v4/mini/external.cjs +36 -3
  688. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  689. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  690. package/node_modules/zod/v4/mini/external.js +4 -1
  691. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  692. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  693. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  694. package/node_modules/zod/v4/mini/in-out.js +36 -0
  695. package/node_modules/zod/v4/mini/index.cjs +19 -0
  696. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  697. package/node_modules/zod/v4/mini/iso.js +8 -4
  698. package/node_modules/zod/v4/mini/package.json +7 -0
  699. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  700. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  701. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  702. package/node_modules/zod/v4/mini/parse.js +1 -1
  703. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  704. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  705. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  706. package/node_modules/zod/v4/mini/schemas.js +329 -59
  707. package/node_modules/zod/v4/package.json +7 -0
  708. package/node_modules/zod/v4-mini/index.cjs +35 -1
  709. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  710. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  711. package/node_modules/zod/v4-mini/index.js +3 -1
  712. package/node_modules/zod/v4-mini/package.json +7 -0
  713. package/package.json +6 -3
  714. package/node_modules/zod/src/v4/core/config.ts +0 -15
  715. package/node_modules/zod/src/v4/core/function.ts +0 -176
  716. package/node_modules/zod/v4/core/function.cjs +0 -102
  717. package/node_modules/zod/v4/core/function.d.cts +0 -52
  718. package/node_modules/zod/v4/core/function.d.ts +0 -52
  719. package/node_modules/zod/v4/core/function.js +0 -75
@@ -1,5 +1,15 @@
1
1
  import z from 'zod';
2
2
  export declare class ZodHelper {
3
+ /**
4
+ * The `error` option for a type check: `missing` when the value is absent, `wrongType`
5
+ * when it is there but of the wrong type. zod 4 folded zod 3's `required_error` and
6
+ * `invalid_type_error` into this one option; an omitted message keeps zod's default.
7
+ */
8
+ static typeError(missing?: string, wrongType?: string): {
9
+ error: (issue: {
10
+ input?: unknown;
11
+ }) => string | undefined;
12
+ };
3
13
  /**
4
14
  * Parses input as a number. Accepts both strings and numbers, but the string must be numeric.
5
15
  * @returns A Zod schema for parsing strings and numbers to numbers.
@@ -6,6 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ZodHelper = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  class ZodHelper {
9
+ /**
10
+ * The `error` option for a type check: `missing` when the value is absent, `wrongType`
11
+ * when it is there but of the wrong type. zod 4 folded zod 3's `required_error` and
12
+ * `invalid_type_error` into this one option; an omitted message keeps zod's default.
13
+ */
14
+ static typeError(missing, wrongType) {
15
+ return { error: (issue) => (issue.input === undefined ? missing : wrongType) };
16
+ }
9
17
  /**
10
18
  * Parses input as a number. Accepts both strings and numbers, but the string must be numeric.
11
19
  * @returns A Zod schema for parsing strings and numbers to numbers.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autonomous-testing/sdk",
3
- "version": "3.9.0",
3
+ "version": "4.0.1",
4
4
  "scripts": {
5
5
  "build:win": "rm -rf ./build/ && npx tsc && node utils/addVersionToBuild.mjs"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "https-proxy-agent": "^7.0.6",
38
38
  "lodash": "^4.18.1",
39
39
  "proxy-from-env": "^2.1.0",
40
- "zod": "^3.25.76"
40
+ "zod": "^4.6.7"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@commitlint/cli": "^19.2.1",
@@ -1,4 +1,30 @@
1
- ## Follow Redirects
1
+ ## _Follow Redirects_ is in need of funding
2
+
3
+ > [!IMPORTANT]
4
+ > **Maintenance paused until funding found.**
5
+ >
6
+ > follow-redirects is downloaded over 400 million times per month,
7
+ > It has been maintained for over ten years by one volunteer,
8
+ > who has no funds to provide update and security guarantees.
9
+ >
10
+ > **What this means for you:**
11
+ > the package stays published and keeps working as it does today,
12
+ > but there are no guarantees of bug fixes, security fixes,
13
+ > or replies to issues and pull requests.
14
+ > Security reports are handled best-effort only; see [SECURITY.md](SECURITY.md).
15
+ >
16
+ > **What can restart maintenance:**
17
+ > Even if only 0.1% of downloads paid $0.01, we'd be fully funded
18
+ > with $4000 per month.
19
+ > That's not the case, and that's okay,
20
+ > but unfortunately also insufficient to continue.
21
+ > We need to cover security triage, CVE handling, fixes, and releases.
22
+ > Progress toward that goal will be posted here.
23
+ >
24
+ > **If your company depends on follow-redirects,**
25
+ > directly or another library,
26
+ > please [sponsor on GitHub](https://github.com/sponsors/RubenVerborgh)
27
+ > or email us for invoice-based funding or a security support agreement.
2
28
 
3
29
  Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects.
4
30
 
@@ -302,7 +302,16 @@ RedirectableRequest.prototype._sanitizeOptions = function (options) {
302
302
  if (!options.headers) {
303
303
  options.headers = {};
304
304
  }
305
- if (!isArray(options.sensitiveHeaders)) {
305
+ // Convert [header1, value1, header2, value2, …] to object
306
+ else if (Array.isArray(options.headers)) {
307
+ var headerList = options.headers;
308
+ options.headers = {};
309
+ for (var i = 0; i < headerList.length; i += 2) {
310
+ options.headers[headerList[i]] = headerList[i + 1];
311
+ }
312
+ }
313
+ // Ensure sensitive headers are always present
314
+ if (!Array.isArray(options.sensitiveHeaders)) {
306
315
  options.sensitiveHeaders = [];
307
316
  }
308
317
 
@@ -680,10 +689,6 @@ function isSubdomain(subdomain, domain) {
680
689
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
681
690
  }
682
691
 
683
- function isArray(value) {
684
- return value instanceof Array;
685
- }
686
-
687
692
  function isString(value) {
688
693
  return typeof value === "string" || value instanceof String;
689
694
  }
@@ -701,7 +706,7 @@ function isURL(value) {
701
706
  }
702
707
 
703
708
  function escapeRegex(regex) {
704
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
709
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
705
710
  }
706
711
 
707
712
  // Exports
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "follow-redirects",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "HTTP and HTTPS modules that follow redirects.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -10,7 +10,7 @@
10
10
  <br/>
11
11
 
12
12
  <p align="center">
13
- <a href="https://github.com/colinhacks/zod/actions?query=branch%3Amaster"><img src="https://github.com/colinhacks/zod/actions/workflows/test.yml/badge.svg?event=push&branch=master" alt="Zod CI status" /></a>
13
+ <a href="https://github.com/colinhacks/zod/actions?query=branch%3Amain"><img src="https://github.com/colinhacks/zod/actions/workflows/test.yml/badge.svg?event=push&branch=main" alt="Zod CI status" /></a>
14
14
  <a href="https://opensource.org/licenses/MIT" rel="nofollow"><img src="https://img.shields.io/github/license/colinhacks/zod" alt="License"></a>
15
15
  <a href="https://www.npmjs.com/package/zod" rel="nofollow"><img src="https://img.shields.io/npm/dw/zod.svg" alt="npm"></a>
16
16
  <a href="https://discord.gg/KaSRdyX2vc" rel="nofollow"><img src="https://img.shields.io/discord/893487829802418277?label=Discord&logo=discord&logoColor=white" alt="discord server"></a>
@@ -31,23 +31,6 @@
31
31
  <br/>
32
32
  <br/>
33
33
 
34
- <h2 align="center">Featured sponsor: Jazz</h2>
35
-
36
- <div align="center">
37
- <a href="https://jazz.tools/?utm_source=zod">
38
- <picture width="85%" >
39
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/garden-co/jazz/938f6767e46cdfded60e50d99bf3b533f4809c68/homepage/homepage/public/Zod%20sponsor%20message.png">
40
- <img alt="jazz logo" src="https://raw.githubusercontent.com/garden-co/jazz/938f6767e46cdfded60e50d99bf3b533f4809c68/homepage/homepage/public/Zod%20sponsor%20message.png" width="85%">
41
- </picture>
42
- </a>
43
- <br/>
44
- <p><sub>Learn more about <a target="_blank" rel="noopener noreferrer" href="mailto:sponsorship@colinhacks.com">featured sponsorships</a></sub></p>
45
- </div>
46
-
47
- <br/>
48
- <br/>
49
- <br/>
50
-
51
34
  ### [Read the docs →](https://zod.dev/api)
52
35
 
53
36
  <br/>
@@ -58,7 +41,7 @@
58
41
  Zod is a TypeScript-first validation library. Define a schema and parse some data with it. You'll get back a strongly typed, validated result.
59
42
 
60
43
  ```ts
61
- import * as z from "zod/v4";
44
+ import * as z from "zod";
62
45
 
63
46
  const User = z.object({
64
47
  name: z.string(),
@@ -104,7 +87,7 @@ npm install zod
104
87
  Before you can do anything else, you need to define a schema. For the purposes of this guide, we'll use a simple object schema.
105
88
 
106
89
  ```ts
107
- import * as z from "zod/v4";
90
+ import * as z from "zod";
108
91
 
109
92
  const Player = z.object({
110
93
  username: z.string(),
@@ -121,7 +104,7 @@ Player.parse({ username: "billie", xp: 100 });
121
104
  // => returns { username: "billie", xp: 100 }
122
105
  ```
123
106
 
124
- **Note** — If your schema uses certain asynchronous APIs like `async` [refinements](#refine) or [transforms](#transform), you'll need to use the `.parseAsync()` method instead.
107
+ **Note** — If your schema uses certain asynchronous APIs like `async` [refinements](https://zod.dev/api#refinements) or [transforms](https://zod.dev/api#transforms), you'll need to use the `.parseAsync()` method instead.
125
108
 
126
109
  ```ts
127
110
  const schema = z.string().refine(async (val) => val.length <= 8);
@@ -130,6 +113,33 @@ await schema.parseAsync("hello");
130
113
  // => "hello"
131
114
  ```
132
115
 
116
+ ### AOT compilation
117
+
118
+ For hot validation paths, `z.compile(schema)` returns a schema clone with an ahead-of-time compiled fast path. Valid inputs take the compiled path; invalid inputs fall back to the regular parser so error reporting stays identical.
119
+
120
+ Across a 55-schema benchmark the median speedup is **2.4x**, and it scales with how much work the schema does per parse: a large array of objects is ~9x, a 20-key object ~9x, a nested object ~4.5x, while a bare `z.string()` gains nothing — compilation removes per-node dispatch and allocation, and a single `typeof` has none to remove.
121
+
122
+ ```ts
123
+ const CompiledPlayer = z.compile(Player);
124
+
125
+ CompiledPlayer.parse({ username: "billie", xp: 100 });
126
+ ```
127
+
128
+ To enable compilation globally for schemas constructed after import:
129
+
130
+ ```ts
131
+ import "zod/compile"; // place before modules that define schemas
132
+ ```
133
+
134
+ Things to know:
135
+
136
+ - Compilation uses `new Function`. Global mode is automatically disabled when `z.config({ jitless: true })` is set (e.g. CSP environments); calling `z.compile()` directly is an explicit opt-in.
137
+ - Schemas with async refinements or transforms can't be compiled, and neither can a few other constructs. That is not an error: `z.compile()` hands the schema back unchanged and it keeps using the regular parser, exactly as global mode leaves it. Pass `{ strict: true }` to throw `ZodCompileAsyncError` / `ZodCompileUnsupportedError` instead.
138
+ - On invalid input, refinements and transforms may run twice (fast path, then fallback).
139
+ - Deriving a new schema from a compiled one (`.refine()`, `.extend()`, etc.) returns an uncompiled schema — compile the final schema.
140
+
141
+ See [`compile` docs](https://zod.dev/compile) for details.
142
+
133
143
  ### Handling errors
134
144
 
135
145
  When validation fails, the `.parse()` method will throw a `ZodError` instance with granular information about the validation issues.
@@ -145,13 +155,13 @@ try {
145
155
  expected: 'string',
146
156
  code: 'invalid_type',
147
157
  path: [ 'username' ],
148
- message: 'Invalid input: expected string'
158
+ message: 'Invalid input: expected string, received number'
149
159
  },
150
160
  {
151
161
  expected: 'number',
152
162
  code: 'invalid_type',
153
163
  path: [ 'xp' ],
154
- message: 'Invalid input: expected number'
164
+ message: 'Invalid input: expected number, received string'
155
165
  }
156
166
  ] */
157
167
  }
@@ -169,7 +179,7 @@ if (!result.success) {
169
179
  }
170
180
  ```
171
181
 
172
- **Note** — If your schema uses certain asynchronous APIs like `async` [refinements](#refine) or [transforms](#transform), you'll need to use the `.safeParseAsync()` method instead.
182
+ **Note** — If your schema uses certain asynchronous APIs like `async` [refinements](https://zod.dev/api#refinements) or [transforms](https://zod.dev/api#transforms), you'll need to use the `.safeParseAsync()` method instead.
173
183
 
174
184
  ```ts
175
185
  const schema = z.string().refine(async (val) => val.length <= 8);
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ // Side-effect-only: installs the post-processor on `globalConfig`. Listed in `package.json`'s `sideEffects`, and nothing else references it, so apps that never import it drop the compiler.
3
+ //
4
+ // Usage:
5
+ //
6
+ // import "zod/compile";
7
+ // import * as z from "zod";
8
+ // // every schema constructed below this is compiled on first parse
9
+ //
10
+ // Module evaluation order matters: schemas constructed in modules that evaluate before this import will not be compiled. Place this import in the app entry point, before any module that constructs schemas at top level.
11
+ //
12
+ // Failure handling: if the compiler refuses a schema (async refinement, unsupported feature, etc.) the shim permanently restores the runtime `_zod.run` for that schema. The schema continues to work via the regular runtime parser — no observable difference to the caller.
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ const compile_js_1 = require("./v4/core/compile.cjs");
38
+ const core = __importStar(require("./v4/core/index.cjs"));
39
+ let compiling = false;
40
+ core.globalConfig.postProcessor = (inst) => {
41
+ if (compiling)
42
+ return;
43
+ const originalRun = inst._zod?.run;
44
+ if (typeof originalRun !== "function")
45
+ return;
46
+ const shim = (payload, ctx) => {
47
+ // Bypass the fast path for any non-forward / non-sync / check-skipping call. The runtime owns those contracts.
48
+ if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks) {
49
+ return originalRun(payload, ctx);
50
+ }
51
+ compiling = true;
52
+ try {
53
+ // Respect the jitless config: it exists precisely so CSP/no-eval environments never reach `new Function`. Global mode must not bypass it (explicit z.compile calls remain an explicit opt-in).
54
+ if (core.globalConfig.jitless) {
55
+ inst._zod.run = originalRun;
56
+ return originalRun(payload, ctx);
57
+ }
58
+ // Strict: the shim owns its own fallback below, and a non-strict compile would hand back `inst` — whose run is this shim — and reinstall it on itself.
59
+ const compiled = (0, compile_js_1.compile)(inst, { strict: true });
60
+ // Only the run wrapper. Copying the compiled parse/safeParse closures would make their fallback re-enter this instance and run user callbacks a third time.
61
+ inst._zod.run = compiled._zod.run;
62
+ inst._zod.bag.fallbackRun = compiled._zod.bag.fallbackRun;
63
+ inst._zod.bag.validator = compiled._zod.bag.validator;
64
+ }
65
+ catch {
66
+ // Permanent fallback for unsupported schemas.
67
+ inst._zod.run = originalRun;
68
+ }
69
+ finally {
70
+ compiling = false;
71
+ }
72
+ return inst._zod.run(payload, ctx);
73
+ };
74
+ // Expose the pre-shim runtime so `compile()` invoked elsewhere can unwrap past the shim and capture the source-of-truth runtime. Without this, a user calling `z.compile(s)` after global mode is enabled would capture the shim itself, which would feed the wrapper into itself on fallback.
75
+ shim.__originalRun = originalRun;
76
+ inst._zod.run = shim;
77
+ };
78
+
79
+ // seal-cjs-exports
80
+ (function () {
81
+ var keys = Object.getOwnPropertyNames(exports);
82
+ for (var i = 0; i < keys.length; i++) {
83
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
84
+ if (!desc || !desc.get || !desc.configurable) continue;
85
+ var value;
86
+ try {
87
+ value = desc.get();
88
+ } catch (e) {
89
+ continue;
90
+ }
91
+ // a circular require may not have settled this one yet, so leave it live
92
+ if (value === undefined) continue;
93
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
94
+ }
95
+ Object.freeze(exports);
96
+ })();
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ // Side-effect-only: installs the post-processor on `globalConfig`. Listed in `package.json`'s `sideEffects`, and nothing else references it, so apps that never import it drop the compiler.
2
+ //
3
+ // Usage:
4
+ //
5
+ // import "zod/compile";
6
+ // import * as z from "zod";
7
+ // // every schema constructed below this is compiled on first parse
8
+ //
9
+ // Module evaluation order matters: schemas constructed in modules that evaluate before this import will not be compiled. Place this import in the app entry point, before any module that constructs schemas at top level.
10
+ //
11
+ // Failure handling: if the compiler refuses a schema (async refinement, unsupported feature, etc.) the shim permanently restores the runtime `_zod.run` for that schema. The schema continues to work via the regular runtime parser — no observable difference to the caller.
12
+ import { compile } from "./v4/core/compile.js";
13
+ import * as core from "./v4/core/index.js";
14
+ let compiling = false;
15
+ core.globalConfig.postProcessor = (inst) => {
16
+ if (compiling)
17
+ return;
18
+ const originalRun = inst._zod?.run;
19
+ if (typeof originalRun !== "function")
20
+ return;
21
+ const shim = (payload, ctx) => {
22
+ // Bypass the fast path for any non-forward / non-sync / check-skipping call. The runtime owns those contracts.
23
+ if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks) {
24
+ return originalRun(payload, ctx);
25
+ }
26
+ compiling = true;
27
+ try {
28
+ // Respect the jitless config: it exists precisely so CSP/no-eval environments never reach `new Function`. Global mode must not bypass it (explicit z.compile calls remain an explicit opt-in).
29
+ if (core.globalConfig.jitless) {
30
+ inst._zod.run = originalRun;
31
+ return originalRun(payload, ctx);
32
+ }
33
+ // Strict: the shim owns its own fallback below, and a non-strict compile would hand back `inst` — whose run is this shim — and reinstall it on itself.
34
+ const compiled = compile(inst, { strict: true });
35
+ // Only the run wrapper. Copying the compiled parse/safeParse closures would make their fallback re-enter this instance and run user callbacks a third time.
36
+ inst._zod.run = compiled._zod.run;
37
+ inst._zod.bag.fallbackRun = compiled._zod.bag.fallbackRun;
38
+ inst._zod.bag.validator = compiled._zod.bag.validator;
39
+ }
40
+ catch {
41
+ // Permanent fallback for unsupported schemas.
42
+ inst._zod.run = originalRun;
43
+ }
44
+ finally {
45
+ compiling = false;
46
+ }
47
+ return inst._zod.run(payload, ctx);
48
+ };
49
+ // Expose the pre-shim runtime so `compile()` invoked elsewhere can unwrap past the shim and capture the source-of-truth runtime. Without this, a user calling `z.compile(s)` after global mode is enabled would capture the shim itself, which would feed the wrapper into itself on fallback.
50
+ shim.__originalRun = originalRun;
51
+ inst._zod.run = shim;
52
+ };
@@ -26,8 +26,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.z = void 0;
30
- const z = __importStar(require("./v3/external.cjs"));
29
+ exports.default = exports.z = void 0;
30
+ const z = __importStar(require("./v4/classic/external.cjs"));
31
31
  exports.z = z;
32
- __exportStar(require("./v3/external.cjs"), exports);
33
32
  exports.default = z;
33
+ __exportStar(require("./v4/classic/external.cjs"), exports);
34
+
35
+ // seal-cjs-exports
36
+ (function () {
37
+ var keys = Object.getOwnPropertyNames(exports);
38
+ for (var i = 0; i < keys.length; i++) {
39
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
40
+ if (!desc || !desc.get || !desc.configurable) continue;
41
+ var value;
42
+ try {
43
+ value = desc.get();
44
+ } catch (e) {
45
+ continue;
46
+ }
47
+ // a circular require may not have settled this one yet, so leave it live
48
+ if (value === undefined) continue;
49
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
50
+ }
51
+ Object.freeze(exports);
52
+ })();
@@ -1,4 +1,3 @@
1
- import * as z from "./v3/external.cjs";
2
- export * from "./v3/external.cjs";
3
- export { z };
4
- export default z;
1
+ import * as z from "./v4/classic/external.cjs";
2
+ export * from "./v4/classic/external.cjs";
3
+ export { z, z as default };
@@ -1,4 +1,3 @@
1
- import * as z from "./v3/external.js";
2
- export * from "./v3/external.js";
3
- export { z };
4
- export default z;
1
+ import * as z from "./v4/classic/external.js";
2
+ export * from "./v4/classic/external.js";
3
+ export { z, z as default };
@@ -1,4 +1,7 @@
1
- import * as z from "./v3/external.js";
2
- export * from "./v3/external.js";
3
- export { z };
4
- export default z;
1
+ import * as z from "./v4/classic/external.js";
2
+ export * from "./v4/classic/external.js";
3
+ // Aliasing the binding, instead of `export default z`, keeps the default export a
4
+ // re-export of `z` rather than a fresh namespace value. Rollup and Webpack can then
5
+ // shake `import z from "zod"` as they already shake `import { z } from "zod"` — without
6
+ // this they pull in every locale. See #6050.
7
+ export { z, z as default };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../v4/locales/index.cjs"), exports);
18
+
19
+ // seal-cjs-exports
20
+ (function () {
21
+ var keys = Object.getOwnPropertyNames(exports);
22
+ for (var i = 0; i < keys.length; i++) {
23
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
24
+ if (!desc || !desc.get || !desc.configurable) continue;
25
+ var value;
26
+ try {
27
+ value = desc.get();
28
+ } catch (e) {
29
+ continue;
30
+ }
31
+ // a circular require may not have settled this one yet, so leave it live
32
+ if (value === undefined) continue;
33
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
34
+ }
35
+ Object.freeze(exports);
36
+ })();
@@ -0,0 +1 @@
1
+ export * from "../v4/locales/index.cjs";
@@ -0,0 +1 @@
1
+ export * from "../v4/locales/index.js";
@@ -0,0 +1 @@
1
+ export * from "../v4/locales/index.js";
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "main": "./index.cjs",
4
+ "module": "./index.js",
5
+ "types": "./index.d.cts",
6
+ "sideEffects": false
7
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.z = void 0;
30
+ const z = __importStar(require("../v4/mini/external.cjs"));
31
+ exports.z = z;
32
+ __exportStar(require("../v4/mini/external.cjs"), exports);
33
+
34
+ // seal-cjs-exports
35
+ (function () {
36
+ var keys = Object.getOwnPropertyNames(exports);
37
+ for (var i = 0; i < keys.length; i++) {
38
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
39
+ if (!desc || !desc.get || !desc.configurable) continue;
40
+ var value;
41
+ try {
42
+ value = desc.get();
43
+ } catch (e) {
44
+ continue;
45
+ }
46
+ // a circular require may not have settled this one yet, so leave it live
47
+ if (value === undefined) continue;
48
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
49
+ }
50
+ Object.freeze(exports);
51
+ })();
@@ -0,0 +1,3 @@
1
+ import * as z from "../v4/mini/external.cjs";
2
+ export * from "../v4/mini/external.cjs";
3
+ export { z };
@@ -0,0 +1,3 @@
1
+ import * as z from "../v4/mini/external.js";
2
+ export * from "../v4/mini/external.js";
3
+ export { z };
@@ -0,0 +1,3 @@
1
+ import * as z from "../v4/mini/external.js";
2
+ export * from "../v4/mini/external.js";
3
+ export { z };
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "main": "./index.cjs",
4
+ "module": "./index.js",
5
+ "types": "./index.d.cts",
6
+ "sideEffects": false
7
+ }