@nullix/zod-mongoose-studio 3.3.1 → 3.3.3

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 (325) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BCIlnd0g.js → 5ZXm4f56.js} +1 -1
  3. package/.output/public/_nuxt/{DcJ7oPvZ.js → B2fcLSyW.js} +1 -1
  4. package/.output/public/_nuxt/{B0N6xv5E.js → BBN7l5Hn.js} +1 -1
  5. package/.output/public/_nuxt/BBTTtb8r.js +41 -0
  6. package/.output/public/_nuxt/{5Tu2WUJz.js → BDbISGvP.js} +1 -1
  7. package/.output/public/_nuxt/{D87QMS6j.js → BijI4RNx.js} +1 -1
  8. package/.output/public/_nuxt/{C2BHp-MG.js → Bp9qkJ9m.js} +1 -1
  9. package/.output/public/_nuxt/{I3Ucam2s.js → Bu3-sqCf.js} +1 -1
  10. package/.output/public/_nuxt/{BO4hqv6q.js → C-FtTvwz.js} +1 -1
  11. package/.output/public/_nuxt/C02JV0Aj.js +1 -0
  12. package/.output/public/_nuxt/{sKEJiAHO.js → C1UkIsDc.js} +1 -1
  13. package/.output/public/_nuxt/{CKULsFUz.js → CJT28r6J.js} +1 -1
  14. package/.output/public/_nuxt/{BNDnV2op.js → CL7qtgl2.js} +3 -3
  15. package/.output/public/_nuxt/{DA0pQuyP.js → CRMd2YH2.js} +3 -3
  16. package/.output/public/_nuxt/{DpKrXpkK.js → CRkdQgFz.js} +1 -1
  17. package/.output/public/_nuxt/{B0cUlOSM.js → Cw1XFOz5.js} +1 -1
  18. package/.output/public/_nuxt/{CzbCpNnc.js → D5yWk6Ly.js} +1 -1
  19. package/.output/public/_nuxt/{BOsJJ_ZU.js → DA9GjKpR.js} +1 -1
  20. package/.output/public/_nuxt/{Dce9SnGa.js → DaWAlZhp.js} +1 -1
  21. package/.output/public/_nuxt/{tqQNlhT9.js → DafLMUHo.js} +1 -1
  22. package/.output/public/_nuxt/{ypRHVLFO.js → Dyaldc-t.js} +1 -1
  23. package/.output/public/_nuxt/{o-NCh2rp.js → UU9fpRNQ.js} +1 -1
  24. package/.output/public/_nuxt/builds/latest.json +1 -1
  25. package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
  26. package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
  27. package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
  28. package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
  29. package/.output/public/_nuxt/{CMH9iX_E.js → kFZJW2-u.js} +2 -2
  30. package/.output/public/_nuxt/{DsnIpnT9.js → u3DlT5Mh.js} +1 -1
  31. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  32. package/.output/server/chunks/_/parse-request.mjs +29 -0
  33. package/.output/server/chunks/_/parse-request.mjs.map +1 -0
  34. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  35. package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
  36. package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
  37. package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
  38. package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
  39. package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
  40. package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
  41. package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
  42. package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
  43. package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
  44. package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
  45. package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
  46. package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
  47. package/.output/server/chunks/build/server.mjs +3913 -3378
  48. package/.output/server/chunks/build/server.mjs.map +1 -1
  49. package/.output/server/chunks/build/styles.mjs +4 -4
  50. package/.output/server/chunks/nitro/nitro.mjs +652 -2278
  51. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  52. package/.output/server/chunks/routes/api/editor-types.get.mjs +91 -28
  53. package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
  54. package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
  55. package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
  56. package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
  57. package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
  58. package/.output/server/chunks/routes/api/studio/run.post.mjs +50 -12
  59. package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
  60. package/.output/server/chunks/routes/renderer.mjs +21 -44
  61. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  62. package/.output/server/index.mjs +1 -7
  63. package/.output/server/index.mjs.map +1 -1
  64. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
  65. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
  66. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
  67. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
  68. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
  69. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
  70. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
  71. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
  72. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
  73. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
  74. package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
  75. package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
  76. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
  77. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
  78. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
  79. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
  80. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
  81. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
  82. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
  83. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
  84. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
  85. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
  86. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
  87. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
  88. package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
  89. package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
  90. package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
  91. package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
  92. package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
  93. package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
  94. package/.output/server/node_modules/@babel/parser/package.json +7 -7
  95. package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  96. package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
  97. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
  98. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
  99. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
  100. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
  101. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
  102. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
  103. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
  104. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
  105. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
  106. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
  107. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
  108. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
  109. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
  110. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
  111. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
  112. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
  113. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
  114. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
  115. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
  116. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
  117. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
  118. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
  119. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
  120. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
  121. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
  122. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
  123. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
  124. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
  125. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
  126. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
  127. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
  128. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
  129. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
  130. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
  131. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
  132. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
  133. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
  134. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
  135. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
  136. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
  137. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
  138. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
  139. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
  140. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
  141. package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
  142. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
  143. package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
  144. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
  145. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
  146. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
  147. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
  148. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
  149. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
  150. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
  151. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
  152. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
  153. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
  154. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
  155. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
  156. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
  157. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
  158. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
  159. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
  160. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
  161. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
  162. package/.output/server/node_modules/@iconify/utils/package.json +15 -13
  163. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
  164. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  165. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
  166. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
  167. package/.output/server/node_modules/devalue/index.js +15 -2
  168. package/.output/server/node_modules/devalue/package.json +5 -3
  169. package/.output/server/node_modules/devalue/src/base64.js +46 -96
  170. package/.output/server/node_modules/devalue/src/constants.js +5 -0
  171. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  172. package/.output/server/node_modules/devalue/src/parse.js +76 -62
  173. package/.output/server/node_modules/devalue/src/stringify.js +164 -81
  174. package/.output/server/node_modules/devalue/src/uneval.js +312 -104
  175. package/.output/server/node_modules/devalue/src/utils.js +61 -19
  176. package/.output/server/node_modules/esbuild/lib/main.js +12 -8
  177. package/.output/server/node_modules/esbuild/package.json +50 -50
  178. package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
  179. package/.output/server/node_modules/hookable/package.json +23 -22
  180. package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
  181. package/.output/server/node_modules/ip-address/package.json +1 -1
  182. package/.output/server/node_modules/zod/package.json +20 -8
  183. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
  184. package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
  185. package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
  186. package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
  187. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
  188. package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
  189. package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
  190. package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
  191. package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
  192. package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
  193. package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
  194. package/.output/server/node_modules/zod/v4/core/api.js +51 -26
  195. package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
  196. package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
  197. package/.output/server/node_modules/zod/v4/core/core.js +87 -22
  198. package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
  199. package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
  200. package/.output/server/node_modules/zod/v4/core/index.js +3 -0
  201. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  202. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
  203. package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
  204. package/.output/server/node_modules/zod/v4/core/package.json +2 -1
  205. package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
  206. package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
  207. package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
  208. package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
  209. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
  210. package/.output/server/node_modules/zod/v4/core/util.js +383 -175
  211. package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
  212. package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
  213. package/.output/server/node_modules/zod/v4/index.js +3 -2
  214. package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
  215. package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
  216. package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
  217. package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
  218. package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
  219. package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
  220. package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
  221. package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
  222. package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
  223. package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
  224. package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
  225. package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
  226. package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
  227. package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
  228. package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
  229. package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
  230. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
  231. package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
  232. package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
  233. package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
  234. package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
  235. package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
  236. package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
  237. package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
  238. package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
  239. package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
  240. package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
  241. package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
  242. package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
  243. package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
  244. package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
  245. package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
  246. package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
  247. package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
  248. package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
  249. package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
  250. package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
  251. package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
  252. package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
  253. package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
  254. package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
  255. package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
  256. package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
  257. package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
  258. package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
  259. package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
  260. package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
  261. package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
  262. package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
  263. package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
  264. package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
  265. package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
  266. package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
  267. package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
  268. package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
  269. package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
  270. package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
  271. package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
  272. package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
  273. package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
  274. package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
  275. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
  276. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
  277. package/.output/server/node_modules/zod/v4/package.json +2 -1
  278. package/.output/server/package.json +18 -18
  279. package/README.md +12 -1
  280. package/package.json +10 -9
  281. package/server/api/editor-types.get.ts +2 -23
  282. package/server/api/studio/run.post.ts +18 -6
  283. package/server/utils/editor-types.json +1 -0
  284. package/.output/public/_nuxt/B9paGgN0.js +0 -33
  285. package/.output/public/_nuxt/builds/meta/51f1351c-0667-4235-9ddc-16582a51ce03.json +0 -1
  286. package/.output/public/_nuxt/entry.B-vs1tRH.css +0 -1
  287. package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
  288. package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
  289. package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
  290. package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
  291. package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
  292. package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
  293. package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
  294. package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
  295. package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
  296. /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
  297. /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
  298. /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
  299. /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
  300. /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
  301. /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
  302. /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
  303. /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
  304. /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
  305. /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
  306. /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
  307. /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
  308. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
  309. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
  310. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
  311. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
  312. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
  313. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
  314. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
  315. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
  316. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
  317. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
  318. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
  319. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
  320. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
  321. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
  322. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
  323. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
  324. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
  325. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
@@ -1,29 +1,86 @@
1
+ var _a;
2
+ import { members as installMembers } from "./util.js";
1
3
  /** A special constant with type `never` */
2
- export const NEVER = Object.freeze({
4
+ export const NEVER = /*@__PURE__*/ Object.freeze({
3
5
  status: "aborted",
4
6
  });
5
- export /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params) {
7
+ /* Shared descriptor for installing `_zod`; defineProperty reads it
8
+ * synchronously, so reusing one object avoids a per-instance allocation. */
9
+ const _zodDesc = { value: undefined, enumerable: false };
10
+ // null where suppressing the capture would be unrecoverable: `parse()` puts the frames back with `captureStackTrace`, so without it the throw would lose its stack. also latched to null once `stackTraceLimit` proves unassignable, which a realm can do at any point by hardening Error
11
+ let _E = "captureStackTrace" in Error ? Error : null;
12
+ // v8 captures a stack trace inside the Error constructor, which dominates a failed parse; costs only the frames, and parse() restores those. the constructor must RUN: Object.create is cheaper and passes instanceof, but Error.isError and util.types.isNativeError check an internal slot
13
+ function newError(Definition) {
14
+ const E = _E;
15
+ if (E) {
16
+ const saved = E.stackTraceLimit;
17
+ if (typeof saved === "number") {
18
+ try {
19
+ E.stackTraceLimit = 0;
20
+ }
21
+ catch {
22
+ _E = null;
23
+ return new Definition();
24
+ }
25
+ try {
26
+ return new Definition();
27
+ }
28
+ finally {
29
+ E.stackTraceLimit = saved;
30
+ }
31
+ }
32
+ }
33
+ return new Definition();
34
+ }
35
+ export /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer,
36
+ /** This trait's members, installed once on every prototype that composes it. They cannot be declared in the initializer above: that runs per instance, and the prototype is shared. */
37
+ proto, params) {
38
+ // Prototype for this constructor's `_zod` internals. Lazily-derived fields (`values`, `pattern`, `optin`, …) install here once rather than as an accessor on every instance.
39
+ const zodProto = {};
40
+ // Assigning the fields in the constructor body is what gives instances in-object slots; building the object literally and reparenting it costs a second allocation and a generic property copy.
41
+ function Internals(def) {
42
+ this.def = def;
43
+ this.constr = _;
44
+ this.traits = new Set();
45
+ }
46
+ Internals.prototype = zodProto;
47
+ const protoMembers = proto;
48
+ // One trait's members land on every prototype whose chain composes it, so the answer is per prototype rather than per trait.
49
+ const initialized = protoMembers && new WeakSet();
6
50
  function init(inst, def) {
7
51
  if (!inst._zod) {
8
- Object.defineProperty(inst, "_zod", {
9
- value: {
10
- def,
11
- constr: _,
12
- traits: new Set(),
13
- },
14
- enumerable: false,
15
- });
52
+ _zodDesc.value = new Internals(def);
53
+ try {
54
+ Object.defineProperty(inst, "_zod", _zodDesc);
55
+ }
56
+ finally {
57
+ // Cleared even on throw, so the shared descriptor never leaks one instance's internals into the next.
58
+ _zodDesc.value = undefined;
59
+ }
16
60
  }
17
- if (inst._zod.traits.has(name)) {
61
+ else if (inst._zod.traits.has(name)) {
18
62
  return;
19
63
  }
20
64
  inst._zod.traits.add(name);
21
65
  initializer(inst, def);
22
- // support prototype modifications
66
+ if (initialized) {
67
+ // `super(def)` from a user subclass gives `this` a prototype the subclass owns, and installing there would overwrite whatever the subclass declared. `constr` built the instance, so its prototype is the one below the subclass's that should carry the members. A receiver whose chain never reaches that prototype installs on its own, which for a plain object handed straight to `init` means `Object.prototype` — unchanged from before.
68
+ const own = Object.getPrototypeOf(inst);
69
+ const ctorProto = inst._zod.constr.prototype;
70
+ let up = own;
71
+ while (up && up !== ctorProto)
72
+ up = Object.getPrototypeOf(up);
73
+ const target = up ?? own;
74
+ if (!initialized.has(target)) {
75
+ initialized.add(target);
76
+ installMembers(target, protoMembers);
77
+ }
78
+ }
79
+ // support prototype modifications; for-in avoids the array allocation of Object.keys on the (usually empty) prototype
23
80
  const proto = _.prototype;
24
- const keys = Object.keys(proto);
25
- for (let i = 0; i < keys.length; i++) {
26
- const k = keys[i];
81
+ for (const k in proto) {
82
+ if (!Object.prototype.hasOwnProperty.call(proto, k))
83
+ continue;
27
84
  if (!(k in inst)) {
28
85
  inst[k] = proto[k].bind(inst);
29
86
  }
@@ -35,13 +92,20 @@ export /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params)
35
92
  }
36
93
  Object.defineProperty(Definition, "name", { value: name });
37
94
  function _(def) {
38
- var _a;
39
- const inst = params?.Parent ? new Definition() : this;
95
+ const inst = params?.Parent ? newError(Definition) : this;
40
96
  init(inst, def);
41
- (_a = inst._zod).deferred ?? (_a.deferred = []);
42
- for (const fn of inst._zod.deferred) {
43
- fn();
97
+ const deferred = inst._zod.deferred;
98
+ if (deferred) {
99
+ for (const fn of deferred) {
100
+ fn();
101
+ }
102
+ // Released: initializers run once, and the list would otherwise be retained for the schema's lifetime.
103
+ inst._zod.deferred = undefined;
44
104
  }
105
+ // Global post-processor hook. Internal: installed by `import "zod/compile"` to enable AOT compilation for every constructed schema. Runs last, once the instance is fully built, because it hands the instance to compile(). The post-processor is expected to be reentrancy-guarded by its own implementation.
106
+ const pp = globalThis.__zod_globalConfig?.postProcessor;
107
+ if (pp)
108
+ pp(inst);
45
109
  return inst;
46
110
  }
47
111
  Object.defineProperty(_, "init", { value: init });
@@ -56,7 +120,7 @@ export /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params)
56
120
  return _;
57
121
  }
58
122
  ////////////////////////////// UTILITIES ///////////////////////////////////////
59
- export const $brand = Symbol("zod_brand");
123
+ export const $brand = /*@__PURE__*/ Symbol("zod_brand");
60
124
  export class $ZodAsyncError extends Error {
61
125
  constructor() {
62
126
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -68,7 +132,8 @@ export class $ZodEncodeError extends Error {
68
132
  this.name = "ZodEncodeError";
69
133
  }
70
134
  }
71
- export const globalConfig = {};
135
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
136
+ export const globalConfig = globalThis.__zod_globalConfig;
72
137
  export function config(newConfig) {
73
138
  if (newConfig)
74
139
  Object.assign(globalConfig, newConfig);
@@ -1,14 +1,19 @@
1
1
  export class Doc {
2
- constructor(args = []) {
2
+ constructor(args = [], closed = {}) {
3
3
  this.content = [];
4
4
  this.indent = 0;
5
- if (this)
6
- this.args = args;
5
+ this.args = args;
6
+ this.closed = closed;
7
7
  }
8
+ // the compiler catches a child's throw and keeps writing into this doc, so the indent has to unwind with it
8
9
  indented(fn) {
9
10
  this.indent += 1;
10
- fn(this);
11
- this.indent -= 1;
11
+ try {
12
+ fn(this);
13
+ }
14
+ finally {
15
+ this.indent -= 1;
16
+ }
12
17
  }
13
18
  write(arg) {
14
19
  if (typeof arg === "function") {
@@ -26,10 +31,8 @@ export class Doc {
26
31
  }
27
32
  compile() {
28
33
  const F = Function;
29
- const args = this?.args;
30
34
  const content = this?.content ?? [``];
31
- const lines = [...content.map((x) => ` ${x}`)];
32
- // console.log(lines.join("\n"));
33
- return new F(...args, lines.join("\n"));
35
+ const factory = new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`);
36
+ return factory(...Object.values(this.closed));
34
37
  }
35
38
  }
@@ -1,30 +1,82 @@
1
1
  import { $constructor } from "./core.js";
2
2
  import * as util from "./util.js";
3
+ /* Computing the message eagerly is expensive (pretty-printed JSON of all
4
+ * issues), so defer it until first read. The accessor functions and
5
+ * descriptors are shared across instances to keep error construction
6
+ * cheap; the computed message is cached on the internals object. The
7
+ * setter preserves plain assignment semantics for consumers that
8
+ * overwrite `message`. */
9
+ function _getMessage() {
10
+ const internals = this._zod;
11
+ internals.message ?? (internals.message = JSON.stringify(internals.def, util.jsonStringifyReplacer, 2));
12
+ return internals.message;
13
+ }
14
+ function _setMessage(value) {
15
+ this._zod.message = value;
16
+ }
17
+ const _messageDesc = {
18
+ get: _getMessage,
19
+ set: _setMessage,
20
+ enumerable: true,
21
+ configurable: true,
22
+ };
23
+ const _issuesDesc = { value: undefined, enumerable: false };
24
+ /* Prototypes that already carry the lazy `toString`. Seeded with the
25
+ * intrinsics so that `init` on a foreign object — it accepts any object —
26
+ * can never install an accessor onto a prototype we do not own. */
27
+ const _installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3
28
  const initializer = (inst, def) => {
4
29
  inst.name = "$ZodError";
5
- Object.defineProperty(inst, "_zod", {
6
- value: inst._zod,
7
- enumerable: false,
8
- });
9
- Object.defineProperty(inst, "issues", {
10
- value: def,
11
- enumerable: false,
12
- });
13
- inst.message = JSON.stringify(def, util.jsonStringifyReplacer, 2);
14
- Object.defineProperty(inst, "toString", {
15
- value: () => inst.message,
16
- enumerable: false,
17
- });
30
+ // `_zod` is already non-enumerable: $constructor's init defined it with this same descriptor
31
+ _issuesDesc.value = def;
32
+ Object.defineProperty(inst, "issues", _issuesDesc);
33
+ // Clear the shared slot; a retained `value` pins the last error's issues.
34
+ _issuesDesc.value = undefined;
35
+ Object.defineProperty(inst, "message", _messageDesc);
36
+ /* `toString` lives as a non-enumerable lazy getter on the shared
37
+ * prototype; on first access it caches a per-instance closure so
38
+ * detached usage still works. */
39
+ const proto = Object.getPrototypeOf(inst);
40
+ if (!_installedToString.has(proto)) {
41
+ _installedToString.add(proto);
42
+ Object.defineProperty(proto, "toString", {
43
+ configurable: true,
44
+ enumerable: false,
45
+ get() {
46
+ const value = () => this.message;
47
+ Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
48
+ return value;
49
+ },
50
+ set(value) {
51
+ Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
52
+ },
53
+ });
54
+ }
18
55
  };
19
56
  export const $ZodError = $constructor("$ZodError", initializer);
20
- export const $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
57
+ export const $ZodRealError = $constructor("$ZodError", initializer, undefined, {
58
+ Parent: Error,
59
+ });
60
+ /** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
61
+ * ("toString", "constructor") would otherwise read through to the prototype, and assigning
62
+ * "__proto__" would hit the setter instead of creating a key. */
63
+ function node(obj, key, make) {
64
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) {
65
+ if (key === "__proto__") {
66
+ Object.defineProperty(obj, key, { value: make(), writable: true, enumerable: true, configurable: true });
67
+ }
68
+ else {
69
+ obj[key] = make();
70
+ }
71
+ }
72
+ return obj[key];
73
+ }
21
74
  export function flattenError(error, mapper = (issue) => issue.message) {
22
75
  const fieldErrors = {};
23
76
  const formErrors = [];
24
77
  for (const sub of error.issues) {
25
78
  if (sub.path.length > 0) {
26
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
27
- fieldErrors[sub.path[0]].push(mapper(sub));
79
+ node(fieldErrors, sub.path[0], () => []).push(mapper(sub));
28
80
  }
29
81
  else {
30
82
  formErrors.push(mapper(sub));
@@ -34,35 +86,56 @@ export function flattenError(error, mapper = (issue) => issue.message) {
34
86
  }
35
87
  export function formatError(error, mapper = (issue) => issue.message) {
36
88
  const fieldErrors = { _errors: [] };
37
- const processError = (error) => {
89
+ const processError = (error, path = []) => {
38
90
  for (const issue of error.issues) {
39
91
  if (issue.code === "invalid_union" && issue.errors.length) {
40
- issue.errors.map((issues) => processError({ issues }));
92
+ issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
41
93
  }
42
94
  else if (issue.code === "invalid_key") {
43
- processError({ issues: issue.issues });
95
+ processError({ issues: issue.issues }, [...path, ...issue.path]);
44
96
  }
45
97
  else if (issue.code === "invalid_element") {
46
- processError({ issues: issue.issues });
47
- }
48
- else if (issue.path.length === 0) {
49
- fieldErrors._errors.push(mapper(issue));
98
+ processError({ issues: issue.issues }, [...path, ...issue.path]);
50
99
  }
51
100
  else {
52
- let curr = fieldErrors;
53
- let i = 0;
54
- while (i < issue.path.length) {
55
- const el = issue.path[i];
56
- const terminal = i === issue.path.length - 1;
57
- if (!terminal) {
58
- curr[el] = curr[el] || { _errors: [] };
59
- }
60
- else {
61
- curr[el] = curr[el] || { _errors: [] };
62
- curr[el]._errors.push(mapper(issue));
101
+ const fullpath = [...path, ...issue.path];
102
+ if (fullpath.length === 0) {
103
+ fieldErrors._errors.push(mapper(issue));
104
+ }
105
+ else {
106
+ let curr = fieldErrors;
107
+ let i = 0;
108
+ while (i < fullpath.length) {
109
+ const el = fullpath[i];
110
+ const terminal = i === fullpath.length - 1;
111
+ // `_errors` is reserved by this legacy format, so merge a matching path segment into the current node instead of treating its array as a child.
112
+ if (el === "_errors") {
113
+ if (terminal)
114
+ curr._errors.push(mapper(issue));
115
+ i++;
116
+ continue;
117
+ }
118
+ // A path element may collide with an inherited property name such as
119
+ // "__proto__" or "constructor". Truthiness checks read the prototype
120
+ // (so no node is created, then ._errors.push throws), and bracket
121
+ // assignment of "__proto__" hits the setter instead of creating an
122
+ // own key. Guard the read with hasOwnProperty and create the node
123
+ // with defineProperty so any path element becomes a real own key.
124
+ if (!Object.prototype.hasOwnProperty.call(curr, el)) {
125
+ Object.defineProperty(curr, el, {
126
+ value: { _errors: [] },
127
+ enumerable: true,
128
+ writable: true,
129
+ configurable: true,
130
+ });
131
+ }
132
+ const node = curr[el];
133
+ if (terminal) {
134
+ node._errors.push(mapper(issue));
135
+ }
136
+ curr = node;
137
+ i++;
63
138
  }
64
- curr = curr[el];
65
- i++;
66
139
  }
67
140
  }
68
141
  }
@@ -73,17 +146,17 @@ export function formatError(error, mapper = (issue) => issue.message) {
73
146
  export function treeifyError(error, mapper = (issue) => issue.message) {
74
147
  const result = { errors: [] };
75
148
  const processError = (error, path = []) => {
76
- var _a, _b;
149
+ var _a;
77
150
  for (const issue of error.issues) {
78
151
  if (issue.code === "invalid_union" && issue.errors.length) {
79
152
  // regular union error
80
- issue.errors.map((issues) => processError({ issues }, issue.path));
153
+ issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
81
154
  }
82
155
  else if (issue.code === "invalid_key") {
83
- processError({ issues: issue.issues }, issue.path);
156
+ processError({ issues: issue.issues }, [...path, ...issue.path]);
84
157
  }
85
158
  else if (issue.code === "invalid_element") {
86
- processError({ issues: issue.issues }, issue.path);
159
+ processError({ issues: issue.issues }, [...path, ...issue.path]);
87
160
  }
88
161
  else {
89
162
  const fullpath = [...path, ...issue.path];
@@ -98,12 +171,24 @@ export function treeifyError(error, mapper = (issue) => issue.message) {
98
171
  const terminal = i === fullpath.length - 1;
99
172
  if (typeof el === "string") {
100
173
  curr.properties ?? (curr.properties = {});
101
- (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
174
+ // el may collide with an inherited property name ("__proto__",
175
+ // "constructor", ...); ??= reads the prototype so the node is never
176
+ // created and curr.errors.push throws. Guard with hasOwnProperty and
177
+ // create the node with defineProperty so "__proto__" becomes a real
178
+ // own key rather than invoking the prototype setter.
179
+ if (!Object.prototype.hasOwnProperty.call(curr.properties, el)) {
180
+ Object.defineProperty(curr.properties, el, {
181
+ value: { errors: [] },
182
+ enumerable: true,
183
+ writable: true,
184
+ configurable: true,
185
+ });
186
+ }
102
187
  curr = curr.properties[el];
103
188
  }
104
189
  else {
105
190
  curr.items ?? (curr.items = []);
106
- (_b = curr.items)[el] ?? (_b[el] = { errors: [] });
191
+ (_a = curr.items)[el] ?? (_a[el] = { errors: [] });
107
192
  curr = curr.items[el];
108
193
  }
109
194
  if (terminal) {
@@ -2,13 +2,16 @@ export * from "./core.js";
2
2
  export * from "./parse.js";
3
3
  export * from "./errors.js";
4
4
  export * from "./schemas.js";
5
+ export * from "./memoizer.js";
5
6
  export * from "./checks.js";
6
7
  export * from "./versions.js";
7
8
  export * as util from "./util.js";
9
+ export { toZod } from "./util.js";
8
10
  export * as regexes from "./regexes.js";
9
11
  export * as locales from "../locales/index.js";
10
12
  export * from "./registries.js";
11
13
  export * from "./doc.js";
14
+ export * from "./compile.js";
12
15
  export * from "./api.js";
13
16
  export * from "./to-json-schema.js";
14
17
  export { toJSONSchema } from "./json-schema-processors.js";
@@ -1,5 +1,5 @@
1
1
  import { allProcessors } from "./json-schema-processors.js";
2
- import { extractDefs, finalize, initializeContext, process, } from "./to-json-schema.js";
2
+ import { extractDefs, finalize, initializeContext, processSchema, } from "./to-json-schema.js";
3
3
  /**
4
4
  * Legacy class-based interface for JSON Schema generation.
5
5
  * This class wraps the new functional implementation to provide backward compatibility.
@@ -26,6 +26,7 @@ export class JSONSchemaGenerator {
26
26
  get target() {
27
27
  return this.ctx.target;
28
28
  }
29
+ // annotated so the .d.cts emits an indexed access rather than an inline `import()` of an ESM path
29
30
  /** @deprecated Access via ctx instead */
30
31
  get unrepresentable() {
31
32
  return this.ctx.unrepresentable;
@@ -70,7 +71,7 @@ export class JSONSchemaGenerator {
70
71
  * This must be called before emit().
71
72
  */
72
73
  process(schema, _params = { path: [], schemaPath: [] }) {
73
- return process(schema, this.ctx, _params);
74
+ return processSchema(schema, this.ctx, _params);
74
75
  }
75
76
  /**
76
77
  * Emit the final JSON Schema after processing.
@@ -86,6 +87,9 @@ export class JSONSchemaGenerator {
86
87
  if (_params.external)
87
88
  this.ctx.external = _params.external;
88
89
  }
90
+ // extractDefs/finalize skip their whole-map passes when they have already run for this `external`, but they also branch on `cycles`, `reused`, `seen.count` and the metadata registry — any of which can change between emits, including with no params at all. Drop the guards so the passes re-run. The registry conversion calls extractDefs/finalize directly and never routes through here, so it keeps skipping them.
91
+ this.ctx.sharedDefsExtractedFor = undefined;
92
+ this.ctx.sharedEmitDoneFor = undefined;
89
93
  extractDefs(this.ctx, schema);
90
94
  const result = finalize(this.ctx, schema);
91
95
  // Strip ~standard property to match old implementation's return type