@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,13 +1,4 @@
1
- import {
2
- DevalueError,
3
- enumerable_symbols,
4
- get_type,
5
- is_plain_object,
6
- is_primitive,
7
- stringify_key,
8
- stringify_string,
9
- valid_array_indices
10
- } from './utils.js';
1
+ import { DevalueError, stringify_key, stringify_string } from './utils.js';
11
2
  import {
12
3
  HOLE,
13
4
  NAN,
@@ -18,13 +9,67 @@ import {
18
9
  UNDEFINED
19
10
  } from './constants.js';
20
11
  import { encode64 } from './base64.js';
12
+ import { default_stringify_operations, merge_operations } from './operations.js';
21
13
 
22
14
  /**
23
15
  * Turn a value into a JSON string that can be parsed with `devalue.parse`
24
16
  * @param {any} value
25
17
  * @param {Record<string, (value: any) => any>} [reducers]
18
+ * @param {import('./types.js').StringifyOptions} [options]
26
19
  */
27
- export function stringify(value, reducers) {
20
+ export function stringify(value, reducers, options) {
21
+ const stringified = run(false, value, reducers, options);
22
+ return typeof stringified === 'string' ? stringified : `[${stringified.join(',')}]`;
23
+ }
24
+
25
+ /**
26
+ * Turn a value into a JSON string that can be parsed with `devalue.parse`
27
+ * @param {any} value
28
+ * @param {Record<string, (value: any) => any>} [reducers]
29
+ * @param {import('./types.js').StringifyOptions} [options]
30
+ */
31
+ export async function stringifyAsync(value, reducers, options) {
32
+ const stringified = run(true, value, reducers, options);
33
+
34
+ if (typeof stringified === 'string') {
35
+ return stringified;
36
+ }
37
+
38
+ let out = '[';
39
+
40
+ for (let i = 0; i < stringified.length; i += 1) {
41
+ let value = stringified[i];
42
+
43
+ if (typeof value !== 'string') {
44
+ await value;
45
+ value = stringified[i];
46
+
47
+ if (i === 0 && value < 0) {
48
+ return `${value}`;
49
+ }
50
+ }
51
+
52
+ out += value;
53
+
54
+ if (i < stringified.length - 1) {
55
+ out += ',';
56
+ }
57
+ }
58
+
59
+ out += ']';
60
+
61
+ return out;
62
+ }
63
+
64
+ /**
65
+ * @param {boolean} async
66
+ * @param {any} value
67
+ * @param {Record<string, (value: any) => any>} [reducers]
68
+ * @param {import('./types.js').StringifyOptions} [options]
69
+ */
70
+ function run(async, value, reducers, options) {
71
+ const ops = merge_operations(default_stringify_operations, options?.operations);
72
+
28
73
  /** @type {any[]} */
29
74
  const stringified = [];
30
75
 
@@ -44,18 +89,35 @@ export function stringify(value, reducers) {
44
89
 
45
90
  let p = 0;
46
91
 
47
- /** @param {any} thing */
48
- function flatten(thing) {
49
- if (thing === undefined) return UNDEFINED;
50
- if (Number.isNaN(thing)) return NAN;
51
- if (thing === Infinity) return POSITIVE_INFINITY;
52
- if (thing === -Infinity) return NEGATIVE_INFINITY;
53
- if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO;
92
+ /**
93
+ * @param {any} thing
94
+ * @param {number} [index]
95
+ */
96
+ function flatten(thing, index) {
97
+ const type = ops.typeOf(thing);
98
+
99
+ if (type === 'undefined') return UNDEFINED;
100
+
101
+ /** @type {number | undefined} */
102
+ let number;
103
+
104
+ // `ops.toPrimitive` is the boundary between the value being serialized and
105
+ // plain host JavaScript: everything below operates on the extracted host
106
+ // primitive, so native comparisons and arithmetic are correct there.
107
+ if (type === 'number') {
108
+ number = /** @type {number} */ (ops.toPrimitive(thing));
109
+ if (Number.isNaN(number)) return NAN;
110
+ if (number === Infinity) return POSITIVE_INFINITY;
111
+ if (number === -Infinity) return NEGATIVE_INFINITY;
112
+ if (number === 0 && 1 / number < 0) return NEGATIVE_ZERO;
113
+ }
114
+
115
+ const id = ops.identify(thing);
54
116
 
55
- if (indexes.has(thing)) return indexes.get(thing);
117
+ if (indexes.has(id)) return /** @type {number} */ (indexes.get(id));
56
118
 
57
- const index = p++;
58
- indexes.set(thing, index);
119
+ index ??= p++;
120
+ indexes.set(id, index);
59
121
 
60
122
  for (const { key, fn } of custom) {
61
123
  const value = fn(thing);
@@ -65,43 +127,61 @@ export function stringify(value, reducers) {
65
127
  }
66
128
  }
67
129
 
68
- if (typeof thing === 'function') {
130
+ if (type === 'function') {
69
131
  throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
132
+ } else if (type === 'symbol') {
133
+ throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
70
134
  }
71
135
 
136
+ /** @type {string | Promise<any>} */
72
137
  let str = '';
73
138
 
74
- if (is_primitive(thing)) {
75
- str = stringify_primitive(thing);
139
+ if (type !== 'object') {
140
+ str = stringify_primitive(type === 'number' ? number : ops.toPrimitive(thing));
141
+ } else if (ops.isThenable(thing)) {
142
+ if (!async) {
143
+ throw new DevalueError(
144
+ `Cannot stringify a Promise or thenable — use stringifyAsync instead`,
145
+ keys,
146
+ thing,
147
+ value
148
+ );
149
+ }
150
+
151
+ str = ops.toPromise(thing).then((value) => {
152
+ const i = flatten(value, index);
153
+ if (i < 0) stringified[index] = i;
154
+ });
155
+
156
+ // Promises are awaited sequentially, and traversal may throw before
157
+ // reaching them. Handle rejections immediately, but keep the original
158
+ // promise so awaiting it still propagates the error to the caller.
159
+ str.catch(() => {});
76
160
  } else {
77
- const type = get_type(thing);
161
+ const tag = ops.tagOf(thing);
78
162
 
79
- switch (type) {
163
+ switch (tag) {
80
164
  case 'Number':
81
165
  case 'String':
82
166
  case 'Boolean':
83
- str = `["Object",${stringify_primitive(thing)}]`;
84
- break;
85
-
86
167
  case 'BigInt':
87
- str = `["BigInt",${thing}]`;
168
+ str = `["Object",${flatten(ops.unbox(thing))}]`;
88
169
  break;
89
170
 
90
171
  case 'Date':
91
- const valid = !isNaN(thing.getDate());
92
- str = `["Date","${valid ? thing.toISOString() : ''}"]`;
172
+ str = `["Date","${ops.toISOString(thing)}"]`;
93
173
  break;
94
174
 
95
175
  case 'URL':
96
- str = `["URL",${stringify_string(thing.toString())}]`;
176
+ str = `["URL",${stringify_string(ops.toStringValue(thing))}]`;
97
177
  break;
98
178
 
99
179
  case 'URLSearchParams':
100
- str = `["URLSearchParams",${stringify_string(thing.toString())}]`;
180
+ str = `["URLSearchParams",${stringify_string(ops.toStringValue(thing))}]`;
101
181
  break;
102
182
 
103
183
  case 'RegExp':
104
- const { source, flags } = thing;
184
+ const { source, flags } = ops.regExpInfo(thing);
105
185
  str = flags
106
186
  ? `["RegExp",${stringify_string(source)},"${flags}"]`
107
187
  : `["RegExp",${stringify_string(source)}]`;
@@ -117,14 +197,16 @@ export function stringify(value, reducers) {
117
197
  // is what protects against the DoS of e.g. `arr[1000000] = 1`.
118
198
  let mostly_dense = false;
119
199
 
200
+ const length = ops.lengthOf(thing);
201
+
120
202
  str = '[';
121
203
 
122
- for (let i = 0; i < thing.length; i += 1) {
204
+ for (let i = 0; i < length; i += 1) {
123
205
  if (i > 0) str += ',';
124
206
 
125
- if (Object.hasOwn(thing, i)) {
207
+ if (ops.hasOwn(thing, i)) {
126
208
  keys.push(`[${i}]`);
127
- str += flatten(thing[i]);
209
+ str += flatten(ops.get(thing, i));
128
210
  keys.pop();
129
211
  } else if (mostly_dense) {
130
212
  // Use dense encoding. The heuristic guarantees the
@@ -163,19 +245,19 @@ export function stringify(value, reducers) {
163
245
  //
164
246
  // Sparse encoding is cheaper when:
165
247
  // (4 + d) + P * (d + 1) < (L - P) * 3
166
- const populated_keys = valid_array_indices(/** @type {any[]} */ (thing));
248
+ const populated_keys = ops.indicesOf(thing);
167
249
  const population = populated_keys.length;
168
- const d = String(thing.length).length;
250
+ const d = String(length).length;
169
251
 
170
- const hole_cost = (thing.length - population) * 3;
252
+ const hole_cost = (length - population) * 3;
171
253
  const sparse_cost = 4 + d + population * (d + 1);
172
254
 
173
255
  if (hole_cost > sparse_cost) {
174
- str = '[' + SPARSE + ',' + thing.length;
256
+ str = '[' + SPARSE + ',' + length;
175
257
  for (let j = 0; j < populated_keys.length; j++) {
176
258
  const key = populated_keys[j];
177
259
  keys.push(`[${key}]`);
178
- str += ',' + key + ',' + flatten(thing[key]);
260
+ str += ',' + key + ',' + flatten(ops.get(thing, key));
179
261
  keys.pop();
180
262
  }
181
263
  break;
@@ -194,7 +276,7 @@ export function stringify(value, reducers) {
194
276
  case 'Set':
195
277
  str = '["Set"';
196
278
 
197
- for (const value of thing) {
279
+ for (const value of ops.valuesOf(thing)) {
198
280
  str += `,${flatten(value)}`;
199
281
  }
200
282
 
@@ -204,9 +286,12 @@ export function stringify(value, reducers) {
204
286
  case 'Map':
205
287
  str = '["Map"';
206
288
 
207
- for (const [key, value] of thing) {
289
+ for (const [key, value] of ops.entriesOf(thing)) {
290
+ const key_type = ops.typeOf(key);
291
+ const key_is_primitive =
292
+ key_type !== 'object' && key_type !== 'function' && key_type !== 'symbol';
208
293
  keys.push(
209
- `.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`
294
+ `.get(${key_is_primitive ? stringify_primitive(ops.toPrimitive(key)) : '...'})`
210
295
  );
211
296
  str += `,${flatten(key)},${flatten(value)}`;
212
297
  keys.pop();
@@ -220,23 +305,31 @@ export function stringify(value, reducers) {
220
305
  case 'Uint8ClampedArray':
221
306
  case 'Int16Array':
222
307
  case 'Uint16Array':
308
+ case 'Float16Array':
223
309
  case 'Int32Array':
224
310
  case 'Uint32Array':
225
311
  case 'Float32Array':
226
312
  case 'Float64Array':
227
313
  case 'BigInt64Array':
228
314
  case 'BigUint64Array': {
229
- /** @type {import("./types.js").TypedArray} */
230
- const typedArray = thing;
231
- str = '["' + type + '",' + flatten(typedArray.buffer);
232
-
233
- const a = thing.byteOffset;
234
- const b = a + thing.byteLength;
315
+ const info = ops.viewInfo(thing);
316
+ str = '["' + tag + '",' + flatten(info.buffer);
235
317
 
236
318
  // handle subarrays
237
- if (a > 0 || b !== typedArray.buffer.byteLength) {
238
- const m = +/(\d+)/.exec(type)[1] / 8;
239
- str += `,${a / m},${b / m}`;
319
+ if (info.byteLength !== info.bufferByteLength) {
320
+ str += `,${info.byteOffset},${info.length}`;
321
+ }
322
+
323
+ str += ']';
324
+ break;
325
+ }
326
+
327
+ case 'DataView': {
328
+ const info = ops.viewInfo(thing);
329
+ str = '["' + tag + '",' + flatten(info.buffer);
330
+
331
+ if (info.byteLength !== info.bufferByteLength) {
332
+ str += `,${info.byteOffset},${info.byteLength}`;
240
333
  }
241
334
 
242
335
  str += ']';
@@ -244,9 +337,7 @@ export function stringify(value, reducers) {
244
337
  }
245
338
 
246
339
  case 'ArrayBuffer': {
247
- /** @type {ArrayBuffer} */
248
- const arraybuffer = thing;
249
- const base64 = encode64(arraybuffer);
340
+ const base64 = encode64(ops.toArrayBuffer(thing));
250
341
 
251
342
  str = `["ArrayBuffer","${base64}"]`;
252
343
  break;
@@ -260,31 +351,23 @@ export function stringify(value, reducers) {
260
351
  case 'Temporal.PlainMonthDay':
261
352
  case 'Temporal.PlainYearMonth':
262
353
  case 'Temporal.ZonedDateTime':
263
- str = `["${type}",${stringify_string(thing.toString())}]`;
354
+ str = `["${tag}",${stringify_string(ops.toStringValue(thing))}]`;
264
355
  break;
265
356
 
266
- default:
267
- if (!is_plain_object(thing)) {
268
- throw new DevalueError(
269
- `Cannot stringify arbitrary non-POJOs`,
270
- keys,
271
- thing,
272
- value
273
- );
357
+ default: {
358
+ const shape = ops.shapeOf(thing);
359
+
360
+ if (shape.kind === 'not-plain') {
361
+ throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
274
362
  }
275
363
 
276
- if (enumerable_symbols(thing).length > 0) {
277
- throw new DevalueError(
278
- `Cannot stringify POJOs with symbolic keys`,
279
- keys,
280
- thing,
281
- value
282
- );
364
+ if (shape.kind === 'symbol-keys') {
365
+ throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
283
366
  }
284
367
 
285
- if (Object.getPrototypeOf(thing) === null) {
368
+ if (shape.kind === 'null-proto') {
286
369
  str = '["null"';
287
- for (const key of Object.keys(thing)) {
370
+ for (const key of shape.keys) {
288
371
  if (key === '__proto__') {
289
372
  throw new DevalueError(
290
373
  `Cannot stringify objects with __proto__ keys`,
@@ -295,14 +378,14 @@ export function stringify(value, reducers) {
295
378
  }
296
379
 
297
380
  keys.push(stringify_key(key));
298
- str += `,${stringify_string(key)},${flatten(thing[key])}`;
381
+ str += `,${stringify_string(key)},${flatten(ops.get(thing, key))}`;
299
382
  keys.pop();
300
383
  }
301
384
  str += ']';
302
385
  } else {
303
386
  str = '{';
304
387
  let started = false;
305
- for (const key of Object.keys(thing)) {
388
+ for (const key of shape.keys) {
306
389
  if (key === '__proto__') {
307
390
  throw new DevalueError(
308
391
  `Cannot stringify objects with __proto__ keys`,
@@ -315,11 +398,12 @@ export function stringify(value, reducers) {
315
398
  if (started) str += ',';
316
399
  started = true;
317
400
  keys.push(stringify_key(key));
318
- str += `${stringify_string(key)}:${flatten(thing[key])}`;
401
+ str += `${stringify_string(key)}:${flatten(ops.get(thing, key))}`;
319
402
  keys.pop();
320
403
  }
321
404
  str += '}';
322
405
  }
406
+ }
323
407
  }
324
408
  }
325
409
 
@@ -332,7 +416,7 @@ export function stringify(value, reducers) {
332
416
  // special case — value is represented as a negative index
333
417
  if (index < 0) return `${index}`;
334
418
 
335
- return `[${stringified.join(',')}]`;
419
+ return stringified;
336
420
  }
337
421
 
338
422
  /**
@@ -342,7 +426,6 @@ export function stringify(value, reducers) {
342
426
  function stringify_primitive(thing) {
343
427
  const type = typeof thing;
344
428
  if (type === 'string') return stringify_string(thing);
345
- if (thing instanceof String) return stringify_string(thing.toString());
346
429
  if (thing === void 0) return UNDEFINED.toString();
347
430
  if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO.toString();
348
431
  if (type === 'bigint') return `["BigInt","${thing}"]`;