zod 4.6.2 → 4.6.4

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 (267) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/v4/classic/checks.ts +1 -0
  4. package/src/v4/classic/schemas.ts +12 -29
  5. package/src/v4/classic/tests/assignability.test.ts +1 -0
  6. package/src/v4/classic/tests/cyclic-data.test.ts +2 -11
  7. package/src/v4/classic/tests/firstparty.test.ts +0 -4
  8. package/src/v4/classic/tests/instance-footprint.test.ts +22 -0
  9. package/src/v4/classic/tests/instanceof.test.ts +1 -1
  10. package/src/v4/classic/tests/number.test.ts +39 -0
  11. package/src/v4/classic/tests/properties.test.ts +34 -137
  12. package/src/v4/classic/tests/string.test.ts +70 -1
  13. package/src/v4/classic/tests/to-json-schema.test.ts +87 -35
  14. package/src/v4/core/api.ts +21 -29
  15. package/src/v4/core/checks.ts +61 -1
  16. package/src/v4/core/compile.ts +35 -24
  17. package/src/v4/core/core.ts +1 -3
  18. package/src/v4/core/json-schema-processors.ts +9 -63
  19. package/src/v4/core/memoizer.ts +2 -5
  20. package/src/v4/core/regexes.ts +4 -0
  21. package/src/v4/core/schemas.ts +36 -109
  22. package/src/v4/core/tests/compile-differential.test.ts +35 -0
  23. package/src/v4/core/tests/compile.test.ts +177 -0
  24. package/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  25. package/src/v4/core/to-json-schema.ts +1 -1
  26. package/src/v4/core/util.ts +0 -4
  27. package/src/v4/core/versions.ts +1 -1
  28. package/src/v4/core/visit.ts +0 -11
  29. package/src/v4/locales/ar.ts +1 -0
  30. package/src/v4/locales/az.ts +1 -0
  31. package/src/v4/locales/be.ts +1 -0
  32. package/src/v4/locales/bg.ts +1 -0
  33. package/src/v4/locales/bn.ts +1 -0
  34. package/src/v4/locales/ca.ts +1 -0
  35. package/src/v4/locales/ckb.ts +1 -0
  36. package/src/v4/locales/cs.ts +1 -0
  37. package/src/v4/locales/da.ts +1 -0
  38. package/src/v4/locales/de.ts +1 -0
  39. package/src/v4/locales/el.ts +1 -0
  40. package/src/v4/locales/en.ts +1 -0
  41. package/src/v4/locales/eo.ts +1 -0
  42. package/src/v4/locales/es.ts +1 -0
  43. package/src/v4/locales/fa.ts +1 -0
  44. package/src/v4/locales/fi.ts +1 -0
  45. package/src/v4/locales/fr-CA.ts +1 -0
  46. package/src/v4/locales/fr.ts +1 -0
  47. package/src/v4/locales/gu.ts +1 -0
  48. package/src/v4/locales/he.ts +1 -0
  49. package/src/v4/locales/hi.ts +1 -0
  50. package/src/v4/locales/hr.ts +1 -0
  51. package/src/v4/locales/hu.ts +1 -0
  52. package/src/v4/locales/hy.ts +1 -0
  53. package/src/v4/locales/id.ts +1 -0
  54. package/src/v4/locales/is.ts +1 -0
  55. package/src/v4/locales/it.ts +1 -0
  56. package/src/v4/locales/ja.ts +1 -0
  57. package/src/v4/locales/ka.ts +1 -0
  58. package/src/v4/locales/km.ts +1 -0
  59. package/src/v4/locales/kn.ts +1 -0
  60. package/src/v4/locales/ko.ts +1 -0
  61. package/src/v4/locales/lt.ts +1 -0
  62. package/src/v4/locales/mk.ts +1 -0
  63. package/src/v4/locales/ms.ts +1 -0
  64. package/src/v4/locales/ne.ts +1 -0
  65. package/src/v4/locales/nl.ts +1 -0
  66. package/src/v4/locales/nn.ts +1 -0
  67. package/src/v4/locales/no.ts +1 -0
  68. package/src/v4/locales/ota.ts +1 -0
  69. package/src/v4/locales/pl.ts +1 -0
  70. package/src/v4/locales/ps.ts +1 -0
  71. package/src/v4/locales/pt-BR.ts +1 -0
  72. package/src/v4/locales/pt.ts +1 -0
  73. package/src/v4/locales/ro.ts +1 -0
  74. package/src/v4/locales/ru.ts +1 -0
  75. package/src/v4/locales/sk.ts +1 -0
  76. package/src/v4/locales/sl.ts +1 -0
  77. package/src/v4/locales/sv.ts +1 -0
  78. package/src/v4/locales/ta.ts +1 -0
  79. package/src/v4/locales/tg.ts +1 -0
  80. package/src/v4/locales/th.ts +1 -0
  81. package/src/v4/locales/tk.ts +1 -0
  82. package/src/v4/locales/tr.ts +1 -0
  83. package/src/v4/locales/uk.ts +1 -0
  84. package/src/v4/locales/ur.ts +1 -0
  85. package/src/v4/locales/uz.ts +1 -0
  86. package/src/v4/locales/vi.ts +1 -0
  87. package/src/v4/locales/yo.ts +1 -0
  88. package/src/v4/locales/zh-CN.ts +1 -0
  89. package/src/v4/locales/zh-TW.ts +1 -0
  90. package/src/v4/mini/checks.ts +1 -0
  91. package/src/v4/mini/schemas.ts +12 -23
  92. package/src/v4/mini/tests/index.test.ts +56 -0
  93. package/src/v4/mini/tests/string.test.ts +7 -0
  94. package/v4/classic/checks.cjs +2 -1
  95. package/v4/classic/checks.d.cts +1 -1
  96. package/v4/classic/checks.d.ts +1 -1
  97. package/v4/classic/checks.js +1 -1
  98. package/v4/classic/schemas.cjs +11 -15
  99. package/v4/classic/schemas.d.cts +2 -6
  100. package/v4/classic/schemas.d.ts +2 -6
  101. package/v4/classic/schemas.js +9 -13
  102. package/v4/core/api.cjs +11 -23
  103. package/v4/core/api.d.cts +8 -4
  104. package/v4/core/api.d.ts +8 -4
  105. package/v4/core/api.js +11 -23
  106. package/v4/core/checks.cjs +32 -1
  107. package/v4/core/checks.d.cts +16 -0
  108. package/v4/core/checks.d.ts +16 -0
  109. package/v4/core/checks.js +31 -0
  110. package/v4/core/compile.cjs +12 -17
  111. package/v4/core/compile.js +13 -18
  112. package/v4/core/core.cjs +1 -1
  113. package/v4/core/core.js +1 -1
  114. package/v4/core/json-schema-processors.cjs +8 -44
  115. package/v4/core/json-schema-processors.d.cts +0 -1
  116. package/v4/core/json-schema-processors.d.ts +0 -1
  117. package/v4/core/json-schema-processors.js +8 -43
  118. package/v4/core/memoizer.cjs +2 -5
  119. package/v4/core/memoizer.js +2 -5
  120. package/v4/core/regexes.cjs +4 -2
  121. package/v4/core/regexes.d.cts +1 -0
  122. package/v4/core/regexes.d.ts +1 -0
  123. package/v4/core/regexes.js +2 -0
  124. package/v4/core/schemas.cjs +33 -73
  125. package/v4/core/schemas.d.cts +7 -22
  126. package/v4/core/schemas.d.ts +7 -22
  127. package/v4/core/schemas.js +30 -72
  128. package/v4/core/to-json-schema.cjs +0 -1
  129. package/v4/core/to-json-schema.d.cts +0 -3
  130. package/v4/core/to-json-schema.d.ts +0 -3
  131. package/v4/core/to-json-schema.js +1 -1
  132. package/v4/core/util.cjs +0 -4
  133. package/v4/core/util.js +0 -4
  134. package/v4/core/versions.cjs +1 -1
  135. package/v4/core/versions.js +1 -1
  136. package/v4/core/visit.cjs +0 -12
  137. package/v4/core/visit.js +0 -12
  138. package/v4/locales/ar.cjs +1 -0
  139. package/v4/locales/ar.js +1 -0
  140. package/v4/locales/az.cjs +1 -0
  141. package/v4/locales/az.js +1 -0
  142. package/v4/locales/be.cjs +1 -0
  143. package/v4/locales/be.js +1 -0
  144. package/v4/locales/bg.cjs +1 -0
  145. package/v4/locales/bg.js +1 -0
  146. package/v4/locales/bn.cjs +1 -0
  147. package/v4/locales/bn.js +1 -0
  148. package/v4/locales/ca.cjs +1 -0
  149. package/v4/locales/ca.js +1 -0
  150. package/v4/locales/ckb.cjs +1 -0
  151. package/v4/locales/ckb.js +1 -0
  152. package/v4/locales/cs.cjs +1 -0
  153. package/v4/locales/cs.js +1 -0
  154. package/v4/locales/da.cjs +1 -0
  155. package/v4/locales/da.js +1 -0
  156. package/v4/locales/de.cjs +1 -0
  157. package/v4/locales/de.js +1 -0
  158. package/v4/locales/el.cjs +1 -0
  159. package/v4/locales/el.js +1 -0
  160. package/v4/locales/en.cjs +1 -0
  161. package/v4/locales/en.js +1 -0
  162. package/v4/locales/eo.cjs +1 -0
  163. package/v4/locales/eo.js +1 -0
  164. package/v4/locales/es.cjs +1 -0
  165. package/v4/locales/es.js +1 -0
  166. package/v4/locales/fa.cjs +1 -0
  167. package/v4/locales/fa.js +1 -0
  168. package/v4/locales/fi.cjs +1 -0
  169. package/v4/locales/fi.js +1 -0
  170. package/v4/locales/fr-CA.cjs +1 -0
  171. package/v4/locales/fr-CA.js +1 -0
  172. package/v4/locales/fr.cjs +1 -0
  173. package/v4/locales/fr.js +1 -0
  174. package/v4/locales/gu.cjs +1 -0
  175. package/v4/locales/gu.js +1 -0
  176. package/v4/locales/he.cjs +1 -0
  177. package/v4/locales/he.js +1 -0
  178. package/v4/locales/hi.cjs +1 -0
  179. package/v4/locales/hi.js +1 -0
  180. package/v4/locales/hr.cjs +1 -0
  181. package/v4/locales/hr.js +1 -0
  182. package/v4/locales/hu.cjs +1 -0
  183. package/v4/locales/hu.js +1 -0
  184. package/v4/locales/hy.cjs +1 -0
  185. package/v4/locales/hy.js +1 -0
  186. package/v4/locales/id.cjs +1 -0
  187. package/v4/locales/id.js +1 -0
  188. package/v4/locales/is.cjs +1 -0
  189. package/v4/locales/is.js +1 -0
  190. package/v4/locales/it.cjs +1 -0
  191. package/v4/locales/it.js +1 -0
  192. package/v4/locales/ja.cjs +1 -0
  193. package/v4/locales/ja.js +1 -0
  194. package/v4/locales/ka.cjs +1 -0
  195. package/v4/locales/ka.js +1 -0
  196. package/v4/locales/km.cjs +1 -0
  197. package/v4/locales/km.js +1 -0
  198. package/v4/locales/kn.cjs +1 -0
  199. package/v4/locales/kn.js +1 -0
  200. package/v4/locales/ko.cjs +1 -0
  201. package/v4/locales/ko.js +1 -0
  202. package/v4/locales/lt.cjs +1 -0
  203. package/v4/locales/lt.js +1 -0
  204. package/v4/locales/mk.cjs +1 -0
  205. package/v4/locales/mk.js +1 -0
  206. package/v4/locales/ms.cjs +1 -0
  207. package/v4/locales/ms.js +1 -0
  208. package/v4/locales/ne.cjs +1 -0
  209. package/v4/locales/ne.js +1 -0
  210. package/v4/locales/nl.cjs +1 -0
  211. package/v4/locales/nl.js +1 -0
  212. package/v4/locales/nn.cjs +1 -0
  213. package/v4/locales/nn.js +1 -0
  214. package/v4/locales/no.cjs +1 -0
  215. package/v4/locales/no.js +1 -0
  216. package/v4/locales/ota.cjs +1 -0
  217. package/v4/locales/ota.js +1 -0
  218. package/v4/locales/pl.cjs +1 -0
  219. package/v4/locales/pl.js +1 -0
  220. package/v4/locales/ps.cjs +1 -0
  221. package/v4/locales/ps.js +1 -0
  222. package/v4/locales/pt-BR.cjs +1 -0
  223. package/v4/locales/pt-BR.js +1 -0
  224. package/v4/locales/pt.cjs +1 -0
  225. package/v4/locales/pt.js +1 -0
  226. package/v4/locales/ro.cjs +1 -0
  227. package/v4/locales/ro.js +1 -0
  228. package/v4/locales/ru.cjs +1 -0
  229. package/v4/locales/ru.js +1 -0
  230. package/v4/locales/sk.cjs +1 -0
  231. package/v4/locales/sk.js +1 -0
  232. package/v4/locales/sl.cjs +1 -0
  233. package/v4/locales/sl.js +1 -0
  234. package/v4/locales/sv.cjs +1 -0
  235. package/v4/locales/sv.js +1 -0
  236. package/v4/locales/ta.cjs +1 -0
  237. package/v4/locales/ta.js +1 -0
  238. package/v4/locales/tg.cjs +1 -0
  239. package/v4/locales/tg.js +1 -0
  240. package/v4/locales/th.cjs +1 -0
  241. package/v4/locales/th.js +1 -0
  242. package/v4/locales/tk.cjs +1 -0
  243. package/v4/locales/tk.js +1 -0
  244. package/v4/locales/tr.cjs +1 -0
  245. package/v4/locales/tr.js +1 -0
  246. package/v4/locales/uk.cjs +1 -0
  247. package/v4/locales/uk.js +1 -0
  248. package/v4/locales/ur.cjs +1 -0
  249. package/v4/locales/ur.js +1 -0
  250. package/v4/locales/uz.cjs +1 -0
  251. package/v4/locales/uz.js +1 -0
  252. package/v4/locales/vi.cjs +1 -0
  253. package/v4/locales/vi.js +1 -0
  254. package/v4/locales/yo.cjs +1 -0
  255. package/v4/locales/yo.js +1 -0
  256. package/v4/locales/zh-CN.cjs +1 -0
  257. package/v4/locales/zh-CN.js +1 -0
  258. package/v4/locales/zh-TW.cjs +1 -0
  259. package/v4/locales/zh-TW.js +1 -0
  260. package/v4/mini/checks.cjs +2 -1
  261. package/v4/mini/checks.d.cts +1 -1
  262. package/v4/mini/checks.d.ts +1 -1
  263. package/v4/mini/checks.js +1 -1
  264. package/v4/mini/schemas.cjs +11 -13
  265. package/v4/mini/schemas.d.cts +1 -4
  266. package/v4/mini/schemas.d.ts +1 -4
  267. package/v4/mini/schemas.js +9 -11
package/v4/locales/pl.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "ciąg znaków w formacie JSON",
66
66
  e164: "liczba E.164",
67
67
  credit_card: "numer karty kredytowej",
68
+ currency_code: "kod waluty",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "wejście",
package/v4/locales/pl.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ciąg znaków w formacie JSON",
40
40
  e164: "liczba E.164",
41
41
  credit_card: "numer karty kredytowej",
42
+ currency_code: "kod waluty",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "wejście",
package/v4/locales/ps.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON متن",
66
66
  e164: "د E.164 شمېره",
67
67
  credit_card: "د کریډیټ کارت شمیره",
68
+ currency_code: "د اسعارو کوډ",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "ورودي",
package/v4/locales/ps.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON متن",
40
40
  e164: "د E.164 شمېره",
41
41
  credit_card: "د کریډیټ کارت شمیره",
42
+ currency_code: "د اسعارو کوډ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ورودي",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "o texto JSON",
66
66
  e164: "o número E.164",
67
67
  credit_card: "o número de cartão de crédito",
68
+ currency_code: "o código de moeda",
68
69
  iban: "o IBAN",
69
70
  jwt: "o JWT",
70
71
  template_literal: "a entrada",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
42
43
  iban: "o IBAN",
43
44
  jwt: "o JWT",
44
45
  template_literal: "a entrada",
package/v4/locales/pt.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "o texto JSON",
66
66
  e164: "o número E.164",
67
67
  credit_card: "o número de cartão de crédito",
68
+ currency_code: "o código de moeda",
68
69
  iban: "o IBAN",
69
70
  jwt: "o JWT",
70
71
  template_literal: "a entrada",
package/v4/locales/pt.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
42
43
  iban: "o IBAN",
43
44
  jwt: "o JWT",
44
45
  template_literal: "a entrada",
package/v4/locales/ro.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "șir JSON",
66
66
  e164: "număr E.164",
67
67
  credit_card: "număr de card de credit",
68
+ currency_code: "cod valutar",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "intrare",
package/v4/locales/ro.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "șir JSON",
40
40
  e164: "număr E.164",
41
41
  credit_card: "număr de card de credit",
42
+ currency_code: "cod valutar",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "intrare",
package/v4/locales/ru.cjs CHANGED
@@ -115,6 +115,7 @@ const error = () => {
115
115
  json_string: "JSON строка",
116
116
  e164: "номер E.164",
117
117
  credit_card: "номер кредитной карты",
118
+ currency_code: "код валюты",
118
119
  iban: "IBAN",
119
120
  jwt: "JWT",
120
121
  template_literal: "ввод",
package/v4/locales/ru.js CHANGED
@@ -89,6 +89,7 @@ const error = () => {
89
89
  json_string: "JSON строка",
90
90
  e164: "номер E.164",
91
91
  credit_card: "номер кредитной карты",
92
+ currency_code: "код валюты",
92
93
  iban: "IBAN",
93
94
  jwt: "JWT",
94
95
  template_literal: "ввод",
package/v4/locales/sk.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "reťazec vo formáte JSON",
66
66
  e164: "číslo E.164",
67
67
  credit_card: "číslo kreditnej karty",
68
+ currency_code: "kód meny",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "vstup",
package/v4/locales/sk.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "reťazec vo formáte JSON",
40
40
  e164: "číslo E.164",
41
41
  credit_card: "číslo kreditnej karty",
42
+ currency_code: "kód meny",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vstup",
package/v4/locales/sl.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON niz",
66
66
  e164: "E.164 številka",
67
67
  credit_card: "številka kreditne kartice",
68
+ currency_code: "koda valute",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "vnos",
package/v4/locales/sl.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON niz",
40
40
  e164: "E.164 številka",
41
41
  credit_card: "številka kreditne kartice",
42
+ currency_code: "koda valute",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vnos",
package/v4/locales/sv.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON-sträng",
66
66
  e164: "E.164-nummer",
67
67
  credit_card: "kreditkortsnummer",
68
+ currency_code: "valutakod",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "mall-literal",
package/v4/locales/sv.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-sträng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kreditkortsnummer",
42
+ currency_code: "valutakod",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "mall-literal",
package/v4/locales/ta.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON சரம்",
66
66
  e164: "E.164 எண்",
67
67
  credit_card: "கடன் அட்டை எண்",
68
+ currency_code: "நாணயக் குறியீடு",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "input",
package/v4/locales/ta.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON சரம்",
40
40
  e164: "E.164 எண்",
41
41
  credit_card: "கடன் அட்டை எண்",
42
+ currency_code: "நாணயக் குறியீடு",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
package/v4/locales/tg.cjs CHANGED
@@ -66,6 +66,7 @@ const error = () => {
66
66
  json_string: "сатри JSON",
67
67
  e164: "рақами E.164",
68
68
  credit_card: "рақами корти кредитӣ",
69
+ currency_code: "рамзи асъор",
69
70
  iban: "IBAN",
70
71
  jwt: "JWT",
71
72
  template_literal: "вуруд",
package/v4/locales/tg.js CHANGED
@@ -40,6 +40,7 @@ const error = () => {
40
40
  json_string: "сатри JSON",
41
41
  e164: "рақами E.164",
42
42
  credit_card: "рақами корти кредитӣ",
43
+ currency_code: "рамзи асъор",
43
44
  iban: "IBAN",
44
45
  jwt: "JWT",
45
46
  template_literal: "вуруд",
package/v4/locales/th.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "ข้อความแบบ JSON",
66
66
  e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
67
67
  credit_card: "หมายเลขบัตรเครดิต",
68
+ currency_code: "รหัสสกุลเงิน",
68
69
  iban: "IBAN",
69
70
  jwt: "โทเคน JWT",
70
71
  template_literal: "ข้อมูลที่ป้อน",
package/v4/locales/th.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ข้อความแบบ JSON",
40
40
  e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
41
41
  credit_card: "หมายเลขบัตรเครดิต",
42
+ currency_code: "รหัสสกุลเงิน",
42
43
  iban: "IBAN",
43
44
  jwt: "โทเคน JWT",
44
45
  template_literal: "ข้อมูลที่ป้อน",
package/v4/locales/tk.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON setiri",
66
66
  e164: "E.164 nomeri",
67
67
  credit_card: "kredit kartynyň nomeri",
68
+ currency_code: "walýuta kody",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "şablon",
package/v4/locales/tk.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON setiri",
40
40
  e164: "E.164 nomeri",
41
41
  credit_card: "kredit kartynyň nomeri",
42
+ currency_code: "walýuta kody",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "şablon",
package/v4/locales/tr.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON dizesi",
66
66
  e164: "E.164 sayısı",
67
67
  credit_card: "kredi kartı numarası",
68
+ currency_code: "para birimi kodu",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "Şablon dizesi",
package/v4/locales/tr.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON dizesi",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "kredi kartı numarası",
42
+ currency_code: "para birimi kodu",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "Şablon dizesi",
package/v4/locales/uk.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "рядок JSON",
66
66
  e164: "номер E.164",
67
67
  credit_card: "номер кредитної картки",
68
+ currency_code: "код валюти",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "вхідні дані",
package/v4/locales/uk.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "рядок JSON",
40
40
  e164: "номер E.164",
41
41
  credit_card: "номер кредитної картки",
42
+ currency_code: "код валюти",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "вхідні дані",
package/v4/locales/ur.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "جے ایس او این سٹرنگ",
66
66
  e164: "ای 164 نمبر",
67
67
  credit_card: "کریڈٹ کارڈ نمبر",
68
+ currency_code: "کرنسی کوڈ",
68
69
  iban: "IBAN",
69
70
  jwt: "جے ڈبلیو ٹی",
70
71
  template_literal: "ان پٹ",
package/v4/locales/ur.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "جے ایس او این سٹرنگ",
40
40
  e164: "ای 164 نمبر",
41
41
  credit_card: "کریڈٹ کارڈ نمبر",
42
+ currency_code: "کرنسی کوڈ",
42
43
  iban: "IBAN",
43
44
  jwt: "جے ڈبلیو ٹی",
44
45
  template_literal: "ان پٹ",
package/v4/locales/uz.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON satr",
66
66
  e164: "E.164 raqam",
67
67
  credit_card: "kredit karta raqami",
68
+ currency_code: "valyuta kodi",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "kirish",
package/v4/locales/uz.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON satr",
40
40
  e164: "E.164 raqam",
41
41
  credit_card: "kredit karta raqami",
42
+ currency_code: "valyuta kodi",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "kirish",
package/v4/locales/vi.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "chuỗi JSON",
66
66
  e164: "số E.164",
67
67
  credit_card: "số thẻ tín dụng",
68
+ currency_code: "mã tiền tệ",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "đầu vào",
package/v4/locales/vi.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "chuỗi JSON",
40
40
  e164: "số E.164",
41
41
  credit_card: "số thẻ tín dụng",
42
+ currency_code: "mã tiền tệ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "đầu vào",
package/v4/locales/yo.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "ọ̀rọ̀ JSON",
66
66
  e164: "nọ́mbà E.164",
67
67
  credit_card: "nọmba kaadi gbese",
68
+ currency_code: "koodu owó",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "ẹ̀rọ ìbáwọlé",
package/v4/locales/yo.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ọ̀rọ̀ JSON",
40
40
  e164: "nọ́mbà E.164",
41
41
  credit_card: "nọmba kaadi gbese",
42
+ currency_code: "koodu owó",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ẹ̀rọ ìbáwọlé",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON字符串",
66
66
  e164: "E.164号码",
67
67
  credit_card: "信用卡号",
68
+ currency_code: "货币代码",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "输入",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON字符串",
40
40
  e164: "E.164号码",
41
41
  credit_card: "信用卡号",
42
+ currency_code: "货币代码",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "输入",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON 字串",
66
66
  e164: "E.164 數值",
67
67
  credit_card: "信用卡號",
68
+ currency_code: "貨幣代碼",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "輸入",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON 字串",
40
40
  e164: "E.164 數值",
41
41
  credit_card: "信用卡號",
42
+ currency_code: "貨幣代碼",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "輸入",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toUpperCase = exports.toLowerCase = exports.trim = exports.normalize = exports.overwrite = exports.mime = exports.property = exports.endsWith = exports.startsWith = exports.includes = exports.uppercase = exports.lowercase = exports.regex = exports.length = exports.minLength = exports.maxLength = exports.size = exports.minSize = exports.maxSize = exports.multipleOf = exports.nonnegative = exports.nonpositive = exports.negative = exports.positive = exports.minimum = exports.gte = exports.gt = exports.maximum = exports.lte = exports.lt = void 0;
3
+ exports.toUpperCase = exports.toLowerCase = exports.trim = exports.normalize = exports.overwrite = exports.mime = exports.properties = exports.property = exports.endsWith = exports.startsWith = exports.includes = exports.uppercase = exports.lowercase = exports.regex = exports.length = exports.minLength = exports.maxLength = exports.size = exports.minSize = exports.maxSize = exports.multipleOf = exports.nonnegative = exports.nonpositive = exports.negative = exports.positive = exports.minimum = exports.gte = exports.gt = exports.maximum = exports.lte = exports.lt = void 0;
4
4
  var index_js_1 = require("../core/index.cjs");
5
5
  Object.defineProperty(exports, "lt", { enumerable: true, get: function () { return index_js_1._lt; } });
6
6
  Object.defineProperty(exports, "lte", { enumerable: true, get: function () { return index_js_1._lte; } });
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "includes", { enumerable: true, get: function ()
26
26
  Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return index_js_1._startsWith; } });
27
27
  Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return index_js_1._endsWith; } });
28
28
  Object.defineProperty(exports, "property", { enumerable: true, get: function () { return index_js_1._property; } });
29
+ Object.defineProperty(exports, "properties", { enumerable: true, get: function () { return index_js_1._properties; } });
29
30
  Object.defineProperty(exports, "mime", { enumerable: true, get: function () { return index_js_1._mime; } });
30
31
  Object.defineProperty(exports, "overwrite", { enumerable: true, get: function () { return index_js_1._overwrite; } });
31
32
  Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return index_js_1._normalize; } });
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.cjs";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.cjs";
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
package/v4/mini/checks.js CHANGED
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ZodMiniEnum = exports.ZodMiniSet = exports.ZodMiniMap = exports.ZodMiniRecord = exports.ZodMiniTuple = exports.ZodMiniIntersection = exports.ZodMiniDiscriminatedUnion = exports.ZodMiniXor = exports.ZodMiniUnion = exports.ZodMiniObject = exports.ZodMiniArray = exports.ZodMiniDate = exports.ZodMiniVoid = exports.ZodMiniNever = exports.ZodMiniUnknown = exports.ZodMiniAny = exports.ZodMiniNull = exports.ZodMiniUndefined = exports.ZodMiniSymbol = exports.ZodMiniBigIntFormat = exports.ZodMiniBigInt = exports.ZodMiniBoolean = exports.ZodMiniNumberFormat = exports.ZodMiniNumber = exports.ZodMiniCustomStringFormat = exports.ZodMiniJWT = exports.ZodMiniIBAN = exports.ZodMiniCreditCard = exports.ZodMiniE164 = exports.ZodMiniBase64URL = exports.ZodMiniBase64 = exports.ZodMiniMAC = exports.ZodMiniCIDRv6 = exports.ZodMiniCIDRv4 = exports.ZodMiniIPv6 = exports.ZodMiniIPv4 = exports.ZodMiniKSUID = exports.ZodMiniXID = exports.ZodMiniULID = exports.ZodMiniCUID2 = exports.ZodMiniCUID = exports.ZodMiniNanoID = exports.ZodMiniEmoji = exports.ZodMiniURL = exports.ZodMiniUUID = exports.ZodMiniGUID = exports.ZodMiniEmail = exports.ZodMiniStringFormat = exports.ZodMiniString = exports.ZodMiniType = void 0;
27
- exports.ZodMiniFunction = exports.stringbool = exports.meta = exports.describe = exports.ZodMiniProperties = exports.ZodMiniCustom = exports.ZodMiniPromise = exports.ZodMiniLazy = exports.ZodMiniTemplateLiteral = exports.ZodMiniReadonly = exports.ZodMiniCodec = exports.ZodMiniPipe = exports.ZodMiniNaN = exports.ZodMiniCatch = exports.ZodMiniSuccess = exports.ZodMiniNonOptional = exports.ZodMiniPrefault = exports.ZodMiniDefault = exports.ZodMiniNullable = exports.ZodMiniExactOptional = exports.ZodMiniOptional = exports.ZodMiniTransform = exports.ZodMiniFile = exports.ZodMiniLiteral = void 0;
27
+ exports.ZodMiniFunction = exports.stringbool = exports.meta = exports.describe = exports.ZodMiniCustom = exports.ZodMiniPromise = exports.ZodMiniLazy = exports.ZodMiniTemplateLiteral = exports.ZodMiniReadonly = exports.ZodMiniCodec = exports.ZodMiniPipe = exports.ZodMiniNaN = exports.ZodMiniCatch = exports.ZodMiniSuccess = exports.ZodMiniNonOptional = exports.ZodMiniPrefault = exports.ZodMiniDefault = exports.ZodMiniNullable = exports.ZodMiniExactOptional = exports.ZodMiniOptional = exports.ZodMiniTransform = exports.ZodMiniFile = exports.ZodMiniLiteral = void 0;
28
28
  exports.string = string;
29
29
  exports.email = email;
30
30
  exports.guid = guid;
@@ -55,6 +55,7 @@ exports.jwt = jwt;
55
55
  exports.stringFormat = stringFormat;
56
56
  exports.hostname = hostname;
57
57
  exports.hex = hex;
58
+ exports.currencyCode = currencyCode;
58
59
  exports.hash = hash;
59
60
  exports.number = number;
60
61
  exports.int = int;
@@ -120,7 +121,6 @@ exports.readonly = readonly;
120
121
  exports.templateLiteral = templateLiteral;
121
122
  exports.lazy = _lazy;
122
123
  exports.promise = promise;
123
- exports.properties = properties;
124
124
  exports.check = check;
125
125
  exports.custom = custom;
126
126
  exports.refine = refine;
@@ -132,6 +132,7 @@ exports.function = _function;
132
132
  exports._function = _function;
133
133
  exports.function = _function;
134
134
  const core = __importStar(require("../core/index.cjs"));
135
+ const regexes = __importStar(require("../core/regexes.cjs"));
135
136
  const util = __importStar(require("../core/util.cjs"));
136
137
  const parse = __importStar(require("./parse.cjs"));
137
138
  exports.ZodMiniType = core.$constructor("ZodMiniType", (inst, def) => {
@@ -245,8 +246,8 @@ function url(params) {
245
246
  // @__NO_SIDE_EFFECTS__
246
247
  function httpUrl(params) {
247
248
  return core._url(exports.ZodMiniURL, {
248
- protocol: core.regexes.httpProtocol,
249
- hostname: core.regexes.domain,
249
+ protocol: regexes.httpProtocol,
250
+ hostname: regexes.domain,
250
251
  ...util.normalizeParams(params),
251
252
  });
252
253
  }
@@ -416,11 +417,15 @@ function stringFormat(format, fnOrRegex, _params = {}) {
416
417
  }
417
418
  // @__NO_SIDE_EFFECTS__
418
419
  function hostname(_params) {
419
- return core._stringFormat(exports.ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params);
420
+ return core._stringFormat(exports.ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
420
421
  }
421
422
  // @__NO_SIDE_EFFECTS__
422
423
  function hex(_params) {
423
- return core._stringFormat(exports.ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params);
424
+ return core._stringFormat(exports.ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
425
+ }
426
+ // @__NO_SIDE_EFFECTS__
427
+ function currencyCode(_params) {
428
+ return core._stringFormat(exports.ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
424
429
  }
425
430
  // @__NO_SIDE_EFFECTS__
426
431
  function hash(alg, params) {
@@ -1045,13 +1050,6 @@ exports.ZodMiniCustom = core.$constructor("ZodMiniCustom", (inst, def) => {
1045
1050
  core.$ZodCustom.init(inst, def);
1046
1051
  exports.ZodMiniType.init(inst, def);
1047
1052
  });
1048
- exports.ZodMiniProperties = core.$constructor("ZodMiniProperties", (inst, def) => {
1049
- core.$ZodProperties.init(inst, def);
1050
- exports.ZodMiniType.init(inst, def);
1051
- });
1052
- function properties(shape, params) {
1053
- return core._properties(exports.ZodMiniProperties, shape, params);
1054
- }
1055
1053
  // custom checks
1056
1054
  // @__NO_SIDE_EFFECTS__
1057
1055
  function check(fn, params) {
@@ -147,6 +147,7 @@ export declare const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomS
147
147
  export declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format>;
148
148
  export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">;
149
149
  export declare function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex">;
150
+ export declare function currencyCode(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"currency_code">;
150
151
  export declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(alg: Alg, params?: {
151
152
  enc?: Enc;
152
153
  } & core.$ZodStringFormatParams): ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
@@ -419,10 +420,6 @@ export declare function promise<T extends SomeType>(innerType: T): ZodMiniPromis
419
420
  export interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> {
420
421
  }
421
422
  export declare const ZodMiniCustom: core.$constructor<ZodMiniCustom>;
422
- export interface ZodMiniProperties<Shape extends core.$ZodShape = core.$ZodShape> extends _ZodMiniType<core.$ZodPropertiesInternals<Shape>>, core.$ZodProperties<Shape> {
423
- }
424
- export declare const ZodMiniProperties: core.$constructor<ZodMiniProperties>;
425
- export declare function properties<Shape extends core.$ZodShape>(shape: Shape, params?: string | core.$ZodPropertiesParams): ZodMiniProperties<Shape>;
426
423
  export declare function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O>;
427
424
  export declare function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I>;
428
425
  export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
@@ -147,6 +147,7 @@ export declare const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomS
147
147
  export declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format>;
148
148
  export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">;
149
149
  export declare function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex">;
150
+ export declare function currencyCode(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"currency_code">;
150
151
  export declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(alg: Alg, params?: {
151
152
  enc?: Enc;
152
153
  } & core.$ZodStringFormatParams): ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
@@ -419,10 +420,6 @@ export declare function promise<T extends SomeType>(innerType: T): ZodMiniPromis
419
420
  export interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> {
420
421
  }
421
422
  export declare const ZodMiniCustom: core.$constructor<ZodMiniCustom>;
422
- export interface ZodMiniProperties<Shape extends core.$ZodShape = core.$ZodShape> extends _ZodMiniType<core.$ZodPropertiesInternals<Shape>>, core.$ZodProperties<Shape> {
423
- }
424
- export declare const ZodMiniProperties: core.$constructor<ZodMiniProperties>;
425
- export declare function properties<Shape extends core.$ZodShape>(shape: Shape, params?: string | core.$ZodPropertiesParams): ZodMiniProperties<Shape>;
426
423
  export declare function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O>;
427
424
  export declare function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I>;
428
425
  export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
@@ -1,4 +1,5 @@
1
1
  import * as core from "../core/index.js";
2
+ import * as regexes from "../core/regexes.js";
2
3
  import * as util from "../core/util.js";
3
4
  import * as parse from "./parse.js";
4
5
  export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst, def) => {
@@ -112,8 +113,8 @@ export function url(params) {
112
113
  // @__NO_SIDE_EFFECTS__
113
114
  export function httpUrl(params) {
114
115
  return core._url(ZodMiniURL, {
115
- protocol: core.regexes.httpProtocol,
116
- hostname: core.regexes.domain,
116
+ protocol: regexes.httpProtocol,
117
+ hostname: regexes.domain,
117
118
  ...util.normalizeParams(params),
118
119
  });
119
120
  }
@@ -283,11 +284,15 @@ export function stringFormat(format, fnOrRegex, _params = {}) {
283
284
  }
284
285
  // @__NO_SIDE_EFFECTS__
285
286
  export function hostname(_params) {
286
- return core._stringFormat(ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params);
287
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
287
288
  }
288
289
  // @__NO_SIDE_EFFECTS__
289
290
  export function hex(_params) {
290
- return core._stringFormat(ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params);
291
+ return core._stringFormat(ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
292
+ }
293
+ // @__NO_SIDE_EFFECTS__
294
+ export function currencyCode(_params) {
295
+ return core._stringFormat(ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
291
296
  }
292
297
  // @__NO_SIDE_EFFECTS__
293
298
  export function hash(alg, params) {
@@ -918,13 +923,6 @@ export const ZodMiniCustom = /*@__PURE__*/ core.$constructor("ZodMiniCustom", (i
918
923
  core.$ZodCustom.init(inst, def);
919
924
  ZodMiniType.init(inst, def);
920
925
  });
921
- export const ZodMiniProperties = /*@__PURE__*/ core.$constructor("ZodMiniProperties", (inst, def) => {
922
- core.$ZodProperties.init(inst, def);
923
- ZodMiniType.init(inst, def);
924
- });
925
- export function properties(shape, params) {
926
- return core._properties(ZodMiniProperties, shape, params);
927
- }
928
926
  // custom checks
929
927
  // @__NO_SIDE_EFFECTS__
930
928
  export function check(fn, params) {