@highstate/designer 0.20.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/.output/nitro.json +4 -4
  2. package/.output/public/_nuxt/{BkNNRtnm.js → -aI73seg.js} +1 -1
  3. package/.output/public/_nuxt/32ctXXKs.js +1 -0
  4. package/.output/public/_nuxt/39D0VL7r.js +1 -0
  5. package/.output/public/_nuxt/{ByBNG4eo.js → 3T5CmBSF.js} +1 -1
  6. package/.output/public/_nuxt/4R6BJ3GI.js +1 -0
  7. package/.output/public/_nuxt/77UvFSdd.js +18 -0
  8. package/.output/public/_nuxt/{G13IRnB2.js → B0E2rEnI.js} +1 -1
  9. package/.output/public/_nuxt/B1x03f8R.js +1 -0
  10. package/.output/public/_nuxt/B2CVdECd.js +1 -0
  11. package/.output/public/_nuxt/{DWQRqdcR.js → B2_u9ZKl.js} +1 -1
  12. package/.output/public/_nuxt/{DCR009rv.js → B8uKU-iG.js} +1 -1
  13. package/.output/public/_nuxt/{CxEW7TG8.js → B9BJCsIg.js} +1 -1
  14. package/.output/public/_nuxt/BA47KaF1.js +1 -0
  15. package/.output/public/_nuxt/{DRfxs3PN.js → BBmoak6l.js} +1 -1
  16. package/.output/public/_nuxt/BEOSfHJT.js +1 -0
  17. package/.output/public/_nuxt/{D2aToa54.js → BJV0IIsR.js} +1 -1
  18. package/.output/public/_nuxt/{DCBCRx0O.js → BKaSp7fy.js} +1 -1
  19. package/.output/public/_nuxt/BN7gUcg9.js +1 -0
  20. package/.output/public/_nuxt/{DiTMzCP2.js → BOujskTX.js} +1 -1
  21. package/.output/public/_nuxt/{DJN0y8jO.js → BPboW4rx.js} +1 -1
  22. package/.output/public/_nuxt/{DzWdbJvx.js → BR4jrf3-.js} +1 -1
  23. package/.output/public/_nuxt/{9I37tBe7.js → BSRetNRl.js} +1 -1
  24. package/.output/public/_nuxt/{C1FLL1Qz.js → Ba9NwIJp.js} +1 -1
  25. package/.output/public/_nuxt/{DCinzvm1.js → BbWhHw7B.js} +1 -1
  26. package/.output/public/_nuxt/Bcyj9glE.js +6 -0
  27. package/.output/public/_nuxt/{xA6NntuA.js → Be4ezMZK.js} +1 -1
  28. package/.output/public/_nuxt/BeH2EWoN.js +1 -0
  29. package/.output/public/_nuxt/{CudFwYib.js → BgvYz3Nr.js} +1 -1
  30. package/.output/public/_nuxt/BlGDdimO.js +1 -0
  31. package/.output/public/_nuxt/{ZbicA1ry.js → Bn5R9WlL.js} +1 -1
  32. package/.output/public/_nuxt/{ChaZkl1J.js → BqJDg8iS.js} +1 -1
  33. package/.output/public/_nuxt/BxD6MFcJ.js +1 -0
  34. package/.output/public/_nuxt/{D27ZAKIj.js → BxvmPvww.js} +1 -1
  35. package/.output/public/_nuxt/{BEEt8Am7.js → By1Fxx6d.js} +1 -1
  36. package/.output/public/_nuxt/{xdsXwj_J.js → ByBXn3Vz.js} +1 -1
  37. package/.output/public/_nuxt/C1bzPMRu.js +14 -0
  38. package/.output/public/_nuxt/{CV5MeYf9.js → C29gnYT3.js} +1 -1
  39. package/.output/public/_nuxt/C5BYcBs_.js +1 -0
  40. package/.output/public/_nuxt/{ziXKbM2N.js → C5DRPdxC.js} +1 -1
  41. package/.output/public/_nuxt/{BJK6uMxG.js → C794qwo0.js} +1 -1
  42. package/.output/public/_nuxt/{RCBWmVHz.js → C9OJ0gQB.js} +1 -1
  43. package/.output/public/_nuxt/{B13uiJCv.js → C9n5vGW7.js} +1 -1
  44. package/.output/public/_nuxt/{rcFevLEP.js → CCBTuGSI.js} +2 -2
  45. package/.output/public/_nuxt/CENFIVCM.js +1 -0
  46. package/.output/public/_nuxt/{CzSiA7V6.js → CGLWlIpJ.js} +1 -1
  47. package/.output/public/_nuxt/CI40hKzv.js +2 -0
  48. package/.output/public/_nuxt/{CcOKGYBt.js → CLsyMJ1X.js} +1 -1
  49. package/.output/public/_nuxt/{CaJ-zn_Z.js → CNWyx-82.js} +1 -1
  50. package/.output/public/_nuxt/CRZrAKrA.js +2 -0
  51. package/.output/public/_nuxt/{BxaP9l2T.js → CRb2z3Pg.js} +1 -1
  52. package/.output/public/_nuxt/{BDAHnC4j.js → CWA5Cfde.js} +1 -1
  53. package/.output/public/_nuxt/CYpkKp66.js +1 -0
  54. package/.output/public/_nuxt/{n0RAZLbO.js → C_yayEmb.js} +1 -1
  55. package/.output/public/_nuxt/{rgN_MdZl.js → CaZj7sno.js} +1 -1
  56. package/.output/public/_nuxt/{CGscLIrv.js → CgK0fS9t.js} +1 -1
  57. package/.output/public/_nuxt/CiaugisX.js +1 -0
  58. package/.output/public/_nuxt/Cjs5trkS.js +1 -0
  59. package/.output/public/_nuxt/Cn-bp-IR.js +1 -0
  60. package/.output/public/_nuxt/CoqwalnO.js +2 -0
  61. package/.output/public/_nuxt/{d-NZQb9b.js → CscXh7Vy.js} +1 -1
  62. package/.output/public/_nuxt/{DQHHT9y-.js → CwWsKBf5.js} +1 -1
  63. package/.output/public/_nuxt/Cwefpg1x.js +1 -0
  64. package/.output/public/_nuxt/CxoCegAs.js +13 -0
  65. package/.output/public/_nuxt/{8MSfy8uY.js → CyFj-Mv9.js} +1 -1
  66. package/.output/public/_nuxt/Cz2AlsmD.js +1 -0
  67. package/.output/public/_nuxt/{tsyQDnRt.js → D1BdWMiq.js} +1 -1
  68. package/.output/public/_nuxt/D1yXAE_w.js +1 -0
  69. package/.output/public/_nuxt/{xp27HhqZ.js → D2lHwbtX.js} +1 -1
  70. package/.output/public/_nuxt/{DKhcu7kD.js → D46u9gXN.js} +1 -1
  71. package/.output/public/_nuxt/{CJWmG4YP.js → D4H6aUyZ.js} +7 -7
  72. package/.output/public/_nuxt/{Dg5xB15N.js → D82vCrfD.js} +1 -1
  73. package/.output/public/_nuxt/D8l8udqQ.js +1 -0
  74. package/.output/public/_nuxt/D9ITfHnZ.js +269 -0
  75. package/.output/public/_nuxt/{RNghxpo_.js → DDvzSYfr.js} +1 -1
  76. package/.output/public/_nuxt/{Aopv2gwH.js → DFwfZeyL.js} +1 -1
  77. package/.output/public/_nuxt/{GgtqCdye.js → DMM9kDc1.js} +1 -1
  78. package/.output/public/_nuxt/{DOPqH6_T.js → DNVXBFXP.js} +1 -1
  79. package/.output/public/_nuxt/DPOp833l.js +1 -0
  80. package/.output/public/_nuxt/{D2obegTF.js → DPQHj1GW.js} +1 -1
  81. package/.output/public/_nuxt/DRJZaHtK.js +1 -0
  82. package/.output/public/_nuxt/{BlfjmxyP.js → DRTFVhVr.js} +1 -1
  83. package/.output/public/_nuxt/{TsXTqZ29.js → DSeZwD4N.js} +1 -1
  84. package/.output/public/_nuxt/{C8lm7lgC.js → DTYY2tCY.js} +1 -1
  85. package/.output/public/_nuxt/{DWa2aw6r.js → DVKmRHSk.js} +1 -1
  86. package/.output/public/_nuxt/DYE7WIF3.js +1 -0
  87. package/.output/public/_nuxt/{D-wGZMZP.js → DYYyOkJe.js} +1 -1
  88. package/.output/public/_nuxt/{BCVaR2pQ.js → DcV32yum.js} +1 -1
  89. package/.output/public/_nuxt/DdhYQ3Tv.js +1 -0
  90. package/.output/public/_nuxt/DgsIRcX7.js +1 -0
  91. package/.output/public/_nuxt/{BtvRca6l.js → DjAJT7YJ.js} +1 -1
  92. package/.output/public/_nuxt/DmMgvbsF.js +1 -0
  93. package/.output/public/_nuxt/{pxXmJ8QX.js → DrQCNsTo.js} +1 -1
  94. package/.output/public/_nuxt/{DNqd6Nek.js → DvCXikgN.js} +1 -1
  95. package/.output/public/_nuxt/DzQULtcW.js +1 -0
  96. package/.output/public/_nuxt/{Cm-2nZ05.js → DzowYWbi.js} +1 -1
  97. package/.output/public/_nuxt/{DQwYQDb2.js → FtFNcQmh.js} +1 -1
  98. package/.output/public/_nuxt/{BPcwi1q2.js → I4u-TRO-.js} +1 -1
  99. package/.output/public/_nuxt/{D5z-4QVk.js → O3nsZ-Uz.js} +1 -1
  100. package/.output/public/_nuxt/Qj4UhtaN.js +1 -0
  101. package/.output/public/_nuxt/{BA0jw7CM.js → VF7GAmoY.js} +1 -1
  102. package/.output/public/_nuxt/Ve4PFQV2.js +1 -0
  103. package/.output/public/_nuxt/{xrNU8mHG.js → YpnHruhZ.js} +1 -1
  104. package/.output/public/_nuxt/_H4v1dQx.js +1 -0
  105. package/.output/public/_nuxt/_pageId_.C5KTkEfy.css +1 -0
  106. package/.output/public/_nuxt/_panelId_.CKSHyLNC.css +1 -0
  107. package/.output/public/_nuxt/builds/latest.json +1 -1
  108. package/.output/public/_nuxt/builds/meta/53add2c3-4d7c-4a4f-a116-e73c3787cf98.json +1 -0
  109. package/.output/public/_nuxt/components.a-P9dVi2.css +1 -0
  110. package/.output/public/_nuxt/{entry.Bc0aTA0K.css → entry.DsBbjDm-.css} +1 -1
  111. package/.output/public/_nuxt/eo99z4R2.js +1 -0
  112. package/.output/public/_nuxt/error-404.DnBTUElh.css +1 -0
  113. package/.output/public/_nuxt/error-500.BNyYF0qG.css +1 -0
  114. package/.output/public/_nuxt/{BUNf2Yb8.js → fbfpKHgl.js} +1 -1
  115. package/.output/public/_nuxt/{BDs6uo3D.js → fxmP1KZw.js} +1 -1
  116. package/.output/public/_nuxt/graph-resolver-DhjyrFRu.js +180 -0
  117. package/.output/public/_nuxt/{mUFnM-_q.js → hunqYsQf.js} +1 -1
  118. package/.output/public/_nuxt/iJghVVcV.js +1 -0
  119. package/.output/public/_nuxt/{DyMmfYiE.js → m4Sxwg8n.js} +1 -1
  120. package/.output/public/_nuxt/monaco-editor.DOXZIHvr.css +1 -0
  121. package/.output/public/_nuxt/oH_c3LbQ.js +1 -0
  122. package/.output/public/_nuxt/rZm6bMo-.js +1 -0
  123. package/.output/public/_nuxt/{DOMRsNpU.js → rpHuDh4d.js} +1 -1
  124. package/.output/public/_nuxt/{vuetify.BzdWZaIq.css → vuetify.DtnS3-VQ.css} +1 -1
  125. package/.output/public/_nuxt/{yaml.worker-C1Cl1y5J.js → yaml.worker-CYOhFCVP.js} +248 -252
  126. package/.output/server/index.mjs +3272 -7573
  127. package/.output/server/index.mjs.map +1 -1
  128. package/.output/server/node_modules/@babel/parser/lib/index.js +1 -1
  129. package/.output/server/node_modules/@babel/parser/package.json +1 -1
  130. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.cjs +57 -0
  131. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +2 -2
  132. package/.output/server/node_modules/@trpc/server/dist/codes-BfZsPdy-.cjs +222 -0
  133. package/.output/server/node_modules/@trpc/server/dist/{contentTypeParsers-SN4WL9ze.mjs → contentTypeParsers-iAFF_pJG.cjs} +7 -2
  134. package/.output/server/node_modules/@trpc/server/dist/getErrorShape-MR4DZeb7.cjs +341 -0
  135. package/.output/server/node_modules/@trpc/server/dist/http.cjs +14 -0
  136. package/.output/server/node_modules/@trpc/server/dist/index.cjs +22 -0
  137. package/.output/server/node_modules/@trpc/server/dist/index.mjs +2 -2
  138. package/.output/server/node_modules/@trpc/server/dist/{initTRPC-RoZMIBeA.mjs → initTRPC-B1ggxyJl.mjs} +2 -2
  139. package/.output/server/node_modules/@trpc/server/dist/initTRPC-BXPPV9Tx.cjs +416 -0
  140. package/.output/server/node_modules/@trpc/server/dist/observable/index.cjs +13 -0
  141. package/.output/server/node_modules/@trpc/server/dist/observable-B1Nk6r1H.cjs +181 -0
  142. package/.output/server/node_modules/@trpc/server/dist/{observable-CUiPknO-.mjs → observable-BVzLuBs6.cjs} +42 -8
  143. package/.output/server/node_modules/@trpc/server/dist/{parseTRPCMessage-CTow-umk.mjs → parseTRPCMessage-7Ltmq-Fb.cjs} +14 -4
  144. package/.output/server/node_modules/@trpc/server/dist/resolveResponse-B0CCg8nq.cjs +2365 -0
  145. package/.output/server/node_modules/@trpc/server/dist/{resolveResponse-BVDlNZwN.mjs → resolveResponse-C5I6V_wc.mjs} +67 -18
  146. package/.output/server/node_modules/@trpc/server/dist/rpc.cjs +6 -0
  147. package/.output/server/node_modules/@trpc/server/dist/{tracked-Bjtgv3wJ.mjs → tracked-DiE3uR1B.mjs} +12 -3
  148. package/.output/server/node_modules/@trpc/server/dist/tracked-Dj_dpOJE.cjs +486 -0
  149. package/.output/server/node_modules/@trpc/server/package.json +15 -5
  150. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +2 -2
  151. package/.output/server/node_modules/@vue/compiler-core/package.json +3 -3
  152. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
  153. package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
  154. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1 -1
  155. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  156. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +31 -13
  157. package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
  158. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +144 -81
  159. package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
  160. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +70 -9
  161. package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
  162. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +6 -2
  163. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  164. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
  165. package/.output/server/node_modules/@vue/shared/package.json +1 -1
  166. package/.output/server/node_modules/devalue/package.json +5 -2
  167. package/.output/server/node_modules/devalue/src/base64.js +46 -96
  168. package/.output/server/node_modules/devalue/src/parse.js +32 -10
  169. package/.output/server/node_modules/devalue/src/stringify.js +13 -28
  170. package/.output/server/node_modules/devalue/src/uneval.js +117 -55
  171. package/.output/server/node_modules/devalue/src/utils.js +3 -7
  172. package/.output/server/node_modules/hookable/dist/index.mjs +5 -14
  173. package/.output/server/node_modules/hookable/package.json +24 -23
  174. package/.output/server/node_modules/trpc-bun-adapter/dist/index.js +406 -0
  175. package/.output/server/node_modules/trpc-bun-adapter/package.json +44 -0
  176. package/.output/server/node_modules/unhead/dist/plugins.mjs +3 -3
  177. package/.output/server/node_modules/unhead/dist/server.mjs +2 -2
  178. package/.output/server/node_modules/unhead/dist/shared/{unhead.eK9_7LaY.mjs → unhead.B5FWS6X0.mjs} +22 -13
  179. package/.output/server/node_modules/unhead/dist/shared/{unhead.BFfcxOoW.mjs → unhead.Ct24BOby.mjs} +4 -2
  180. package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  181. package/.output/server/node_modules/unhead/dist/shared/{unhead.ckV6dpEQ.mjs → unhead.TxTMM7cM.mjs} +1 -1
  182. package/.output/server/node_modules/unhead/dist/utils.mjs +1 -1
  183. package/.output/server/node_modules/unhead/package.json +1 -1
  184. package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
  185. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
  186. package/.output/server/node_modules/vue/package.json +7 -7
  187. package/.output/server/node_modules/ws/lib/permessage-deflate.js +6 -6
  188. package/.output/server/node_modules/ws/lib/websocket-server.js +5 -5
  189. package/.output/server/node_modules/ws/lib/websocket.js +6 -6
  190. package/.output/server/node_modules/ws/package.json +4 -3
  191. package/.output/server/node_modules/ws/wrapper.mjs +14 -1
  192. package/.output/server/package.json +17 -16
  193. package/package.json +20 -14
  194. package/.output/public/_nuxt/57B6Rca8.js +0 -1
  195. package/.output/public/_nuxt/83L43bj1.js +0 -1
  196. package/.output/public/_nuxt/B8nw2aST.js +0 -2
  197. package/.output/public/_nuxt/B93PlW-d.js +0 -1
  198. package/.output/public/_nuxt/BDa1f6PF.js +0 -2
  199. package/.output/public/_nuxt/BE_Meo09.js +0 -269
  200. package/.output/public/_nuxt/BLF3u89x.js +0 -1
  201. package/.output/public/_nuxt/Ba13S78F.js +0 -1
  202. package/.output/public/_nuxt/BhRPY-oY.js +0 -1
  203. package/.output/public/_nuxt/Bhrxn6JZ.js +0 -1
  204. package/.output/public/_nuxt/Bo8jzlL1.js +0 -18
  205. package/.output/public/_nuxt/BpkvlDNi.js +0 -1
  206. package/.output/public/_nuxt/BrzmwbiE.js +0 -1
  207. package/.output/public/_nuxt/BuJgCY_C.js +0 -1
  208. package/.output/public/_nuxt/C-sUppwS.js +0 -1
  209. package/.output/public/_nuxt/C47S-Tmv.js +0 -1
  210. package/.output/public/_nuxt/CMjwMIkn.js +0 -1
  211. package/.output/public/_nuxt/CPZSvMBB.js +0 -1
  212. package/.output/public/_nuxt/CPpO8vcZ.js +0 -1
  213. package/.output/public/_nuxt/CQ8jqdy-.js +0 -1
  214. package/.output/public/_nuxt/CjoLj4QM.js +0 -1
  215. package/.output/public/_nuxt/D6fh7rEe.js +0 -2
  216. package/.output/public/_nuxt/D91rOou-.js +0 -13
  217. package/.output/public/_nuxt/DMwsHuHA.js +0 -1
  218. package/.output/public/_nuxt/DYoxhk2S.js +0 -1
  219. package/.output/public/_nuxt/Dbwml2gB.js +0 -1
  220. package/.output/public/_nuxt/DsS90Fp6.js +0 -1
  221. package/.output/public/_nuxt/Dv7Oe6Be.js +0 -1
  222. package/.output/public/_nuxt/DxERyYWQ.js +0 -1
  223. package/.output/public/_nuxt/GDxZ_Nvm.js +0 -14
  224. package/.output/public/_nuxt/VCDPK7BO.js +0 -1
  225. package/.output/public/_nuxt/builds/meta/a1fec520-0c95-4ae0-af5e-964780fad341.json +0 -1
  226. package/.output/public/_nuxt/components.CIe9upZ4.css +0 -1
  227. package/.output/public/_nuxt/error-404.X7H_YhdC.css +0 -1
  228. package/.output/public/_nuxt/error-500.BOQe1fsk.css +0 -1
  229. package/.output/public/_nuxt/f3TOpYbw.js +0 -1
  230. package/.output/public/_nuxt/graph-resolver-DKNtntr2.js +0 -180
  231. package/.output/public/_nuxt/monaco-editor.D_J4ItrK.css +0 -1
  232. package/.output/public/_nuxt/o_m1mZtJ.js +0 -6
  233. package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +0 -15
  234. package/.output/server/node_modules/@trpc/server/dist/node-http-DtA2iLK9.mjs +0 -224
  235. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import-9NNw8uQM.mjs +0 -31
  236. package/.output/server/node_modules/@trpc/server/dist/ws-CJgZE7Hg.mjs +0 -460
  237. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +0 -148
  238. package/LICENSE +0 -21
  239. /package/.output/public/_nuxt/{XEA9GSJd.js → B69Z0Xk1.js} +0 -0
  240. /package/.output/server/node_modules/@trpc/server/dist/{http-CWyjOa1l.mjs → http-DXy3XyhL.cjs} +0 -0
@@ -78,9 +78,7 @@ export function uneval(value, replacer) {
78
78
 
79
79
  case 'Map':
80
80
  for (const [key, value] of thing) {
81
- keys.push(
82
- `.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`
83
- );
81
+ keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`);
84
82
  walk(value);
85
83
  keys.pop();
86
84
  }
@@ -91,12 +89,14 @@ export function uneval(value, replacer) {
91
89
  case 'Uint8ClampedArray':
92
90
  case 'Int16Array':
93
91
  case 'Uint16Array':
92
+ case 'Float16Array':
94
93
  case 'Int32Array':
95
94
  case 'Uint32Array':
96
95
  case 'Float32Array':
97
96
  case 'Float64Array':
98
97
  case 'BigInt64Array':
99
98
  case 'BigUint64Array':
99
+ case 'DataView':
100
100
  walk(thing.buffer);
101
101
  return;
102
102
 
@@ -115,21 +115,11 @@ export function uneval(value, replacer) {
115
115
 
116
116
  default:
117
117
  if (!is_plain_object(thing)) {
118
- throw new DevalueError(
119
- `Cannot stringify arbitrary non-POJOs`,
120
- keys,
121
- thing,
122
- value
123
- );
118
+ throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
124
119
  }
125
120
 
126
121
  if (enumerable_symbols(thing).length > 0) {
127
- throw new DevalueError(
128
- `Cannot stringify POJOs with symbolic keys`,
129
- keys,
130
- thing,
131
- value
132
- );
122
+ throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
133
123
  }
134
124
 
135
125
  for (const key of Object.keys(thing)) {
@@ -147,6 +137,8 @@ export function uneval(value, replacer) {
147
137
  keys.pop();
148
138
  }
149
139
  }
140
+ } else if (typeof thing === 'symbol') {
141
+ throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
150
142
  }
151
143
  }
152
144
 
@@ -184,12 +176,14 @@ export function uneval(value, replacer) {
184
176
  case 'Number':
185
177
  case 'String':
186
178
  case 'Boolean':
179
+ case 'BigInt':
187
180
  return `Object(${stringify(thing.valueOf())})`;
188
181
 
189
182
  case 'RegExp':
190
- return `new RegExp(${stringify_string(thing.source)}, "${
191
- thing.flags
192
- }")`;
183
+ const { source, flags } = thing;
184
+ return flags
185
+ ? `new RegExp(${stringify_string(source)},"${flags}")`
186
+ : `new RegExp(${stringify_string(source)})`;
193
187
 
194
188
  case 'Date':
195
189
  return `new Date(${thing.getTime()})`;
@@ -259,12 +253,10 @@ export function uneval(value, replacer) {
259
253
  const d = String(thing.length).length;
260
254
 
261
255
  const hole_cost = thing.length + 2;
262
- const sparse_cost = (25 + d) + population * (d + 2);
256
+ const sparse_cost = 25 + d + population * (d + 2);
263
257
 
264
258
  if (hole_cost > sparse_cost) {
265
- const entries = populated_keys
266
- .map((k) => `${k}:${stringify(thing[k])}`)
267
- .join(',');
259
+ const entries = populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(',');
268
260
  return `Object.assign(Array(${thing.length}),{${entries}})`;
269
261
  }
270
262
 
@@ -289,6 +281,7 @@ export function uneval(value, replacer) {
289
281
  case 'Uint8ClampedArray':
290
282
  case 'Int16Array':
291
283
  case 'Uint16Array':
284
+ case 'Float16Array':
292
285
  case 'Int32Array':
293
286
  case 'Uint32Array':
294
287
  case 'Float32Array':
@@ -297,25 +290,40 @@ export function uneval(value, replacer) {
297
290
  case 'BigUint64Array': {
298
291
  let str = `new ${type}`;
299
292
 
300
- if (counts.get(thing.buffer) === 1) {
293
+ if (!names.has(thing.buffer)) {
301
294
  const array = new thing.constructor(thing.buffer);
302
295
  str += `([${array}])`;
303
296
  } else {
304
- str += `([${stringify(thing.buffer)}])`;
297
+ str += `(${stringify(thing.buffer)})`;
305
298
  }
306
299
 
307
- const a = thing.byteOffset;
308
- const b = a + thing.byteLength;
309
-
310
300
  // handle subarrays
311
- if (a > 0 || b !== thing.buffer.byteLength) {
312
- const m = +/(\d+)/.exec(type)[1] / 8;
313
- str += `.subarray(${a / m},${b / m})`;
301
+ if (thing.byteLength !== thing.buffer.byteLength) {
302
+ const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
303
+ const end = start + thing.length;
304
+ str += `.subarray(${start},${end})`;
314
305
  }
315
306
 
316
307
  return str;
317
308
  }
318
309
 
310
+ case 'DataView': {
311
+ let str = `new DataView`;
312
+
313
+ if (!names.has(thing.buffer)) {
314
+ str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
315
+ } else {
316
+ str += `(${stringify(thing.buffer)}`;
317
+ }
318
+
319
+ // handle subviews
320
+ if (thing.byteLength !== thing.buffer.byteLength) {
321
+ str += `,${thing.startOffset},${thing.byteLength}`;
322
+ }
323
+
324
+ return str + ')';
325
+ }
326
+
319
327
  case 'ArrayBuffer': {
320
328
  const ui8 = new Uint8Array(thing);
321
329
  return `new Uint8Array([${ui8.toString()}]).buffer`;
@@ -333,14 +341,10 @@ export function uneval(value, replacer) {
333
341
 
334
342
  default:
335
343
  const keys = Object.keys(thing);
336
- const obj = keys
337
- .map((key) => `${safe_key(key)}:${stringify(thing[key])}`)
338
- .join(',');
344
+ const obj = keys.map((key) => `${safe_key(key)}:${stringify(thing[key])}`).join(',');
339
345
  const proto = Object.getPrototypeOf(thing);
340
346
  if (proto === null) {
341
- return keys.length > 0
342
- ? `{${obj},__proto__:null}`
343
- : `{__proto__:null}`;
347
+ return keys.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;
344
348
  }
345
349
 
346
350
  return `{${obj}}`;
@@ -378,17 +382,30 @@ export function uneval(value, replacer) {
378
382
  case 'Number':
379
383
  case 'String':
380
384
  case 'Boolean':
385
+ case 'BigInt':
381
386
  values.push(`Object(${stringify(thing.valueOf())})`);
382
387
  break;
383
388
 
384
389
  case 'RegExp':
385
- values.push(thing.toString());
390
+ const { source, flags } = thing;
391
+ const regexp = flags
392
+ ? `new RegExp(${stringify_string(source)},"${flags}")`
393
+ : `new RegExp(${stringify_string(source)})`
394
+ values.push(regexp);
386
395
  break;
387
396
 
388
397
  case 'Date':
389
398
  values.push(`new Date(${thing.getTime()})`);
390
399
  break;
391
400
 
401
+ case 'URL':
402
+ values.push(`new URL(${stringify_string(thing.toString())})`);
403
+ break;
404
+
405
+ case 'URLSearchParams':
406
+ values.push(`new URLSearchParams(${stringify_string(thing.toString())})`);
407
+ break;
408
+
392
409
  case 'Array':
393
410
  values.push(`Array(${thing.length})`);
394
411
  /** @type {any[]} */ (thing).forEach((v, i) => {
@@ -414,29 +431,75 @@ export function uneval(value, replacer) {
414
431
  );
415
432
  break;
416
433
 
434
+ case 'Int8Array':
435
+ case 'Uint8Array':
436
+ case 'Uint8ClampedArray':
437
+ case 'Int16Array':
438
+ case 'Uint16Array':
439
+ case 'Float16Array':
440
+ case 'Int32Array':
441
+ case 'Uint32Array':
442
+ case 'Float32Array':
443
+ case 'Float64Array':
444
+ case 'BigInt64Array':
445
+ case 'BigUint64Array': {
446
+ let str = `new ${type}`;
447
+
448
+ if (!names.has(thing.buffer)) {
449
+ const array = new thing.constructor(thing.buffer);
450
+ str += `([${array}])`;
451
+ } else {
452
+ str += `(${stringify(thing.buffer)})`;
453
+ }
454
+
455
+ // handle subarrays
456
+ if (thing.byteLength !== thing.buffer.byteLength) {
457
+ const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
458
+ const end = start + thing.length;
459
+ str += `.subarray(${start},${end})`;
460
+ }
461
+
462
+ values.push(`{}`);
463
+ statements.push(`${name}=${str}`);
464
+ break;
465
+ }
466
+
467
+ case 'DataView': {
468
+ let str = `new DataView`;
469
+
470
+ if (!names.has(thing.buffer)) {
471
+ str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
472
+ } else {
473
+ str += `(${stringify(thing.buffer)}`;
474
+ }
475
+
476
+ // handle subviews
477
+ if (thing.byteLength !== thing.buffer.byteLength) {
478
+ str += `,${thing.byteOffset},${thing.byteLength}`;
479
+ }
480
+
481
+ str += ')';
482
+
483
+ values.push(`{}`);
484
+ statements.push(`${name}=${str}`);
485
+ break;
486
+ }
487
+
417
488
  case 'ArrayBuffer':
418
- values.push(
419
- `new Uint8Array([${new Uint8Array(thing).join(',')}]).buffer`
420
- );
489
+ values.push(`new Uint8Array([${new Uint8Array(thing)}]).buffer`);
421
490
  break;
422
491
 
423
492
  default:
424
- values.push(
425
- Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}'
426
- );
493
+ values.push(Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}');
427
494
  Object.keys(thing).forEach((key) => {
428
- statements.push(
429
- `${name}${safe_prop(key)}=${stringify(thing[key])}`
430
- );
495
+ statements.push(`${name}${safe_prop(key)}=${stringify(thing[key])}`);
431
496
  });
432
497
  }
433
498
  });
434
499
 
435
500
  statements.push(`return ${str}`);
436
501
 
437
- return `(function(${params.join(',')}){${statements.join(
438
- ';'
439
- )}}(${values.join(',')}))`;
502
+ return `(function(${params.join(',')}){${statements.join(';')}}(${values.join(',')}))`;
440
503
  } else {
441
504
  return str;
442
505
  }
@@ -466,9 +529,7 @@ function escape_unsafe_chars(str) {
466
529
 
467
530
  /** @param {string} key */
468
531
  function safe_key(key) {
469
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key)
470
- ? key
471
- : escape_unsafe_chars(JSON.stringify(key));
532
+ return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));
472
533
  }
473
534
 
474
535
  /** @param {string} key */
@@ -480,11 +541,12 @@ function safe_prop(key) {
480
541
 
481
542
  /** @param {any} thing */
482
543
  function stringify_primitive(thing) {
483
- if (typeof thing === 'string') return stringify_string(thing);
544
+ const type = typeof thing;
545
+ if (type === 'string') return stringify_string(thing);
484
546
  if (thing === void 0) return 'void 0';
485
547
  if (thing === 0 && 1 / thing < 0) return '-0';
486
548
  const str = String(thing);
487
- if (typeof thing === 'number') return str.replace(/^(-)?0\./, '$1.');
488
- if (typeof thing === 'bigint') return thing + 'n';
549
+ if (type === 'number') return str.replace(/^(-)?0\./, '$1.');
550
+ if (type === 'bigint') return thing + 'n';
489
551
  return str;
490
552
  }
@@ -29,12 +29,10 @@ export class DevalueError extends Error {
29
29
 
30
30
  /** @param {any} thing */
31
31
  export function is_primitive(thing) {
32
- return Object(thing) !== thing;
32
+ return thing === null || (typeof thing !== 'object' && typeof thing !== 'function');
33
33
  }
34
34
 
35
- const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(
36
- Object.prototype
37
- )
35
+ const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype)
38
36
  .sort()
39
37
  .join('\0');
40
38
 
@@ -79,9 +77,7 @@ function get_escaped_char(char) {
79
77
  case '\u2029':
80
78
  return '\\u2029';
81
79
  default:
82
- return char < ' '
83
- ? `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}`
84
- : '';
80
+ return char < ' ' ? `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}` : '';
85
81
  }
86
82
  }
87
83
 
@@ -1,4 +1,3 @@
1
- //#region src/utils.ts
2
1
  function flatHooks(configHooks, hooks = {}, parentName) {
3
2
  for (const key in configHooks) {
4
3
  const subHook = configHooks[key];
@@ -32,7 +31,7 @@ const createTask = /* @__PURE__ */ (() => {
32
31
  function callHooks(hooks, args, startIndex, task) {
33
32
  for (let i = startIndex; i < hooks.length; i += 1) try {
34
33
  const result = task ? task.run(() => hooks[i](...args)) : hooks[i](...args);
35
- if (result instanceof Promise) return result.then(() => callHooks(hooks, args, i + 1, task));
34
+ if (result && typeof result.then === "function") return Promise.resolve(result).then(() => callHooks(hooks, args, i + 1, task));
36
35
  } catch (error) {
37
36
  return Promise.reject(error);
38
37
  }
@@ -46,20 +45,15 @@ function parallelTaskCaller(hooks, args, name) {
46
45
  return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
47
46
  }
48
47
  }
49
- /** @deprecated */
50
48
  function serialCaller(hooks, arguments_) {
51
49
  return hooks.reduce((promise, hookFunction) => promise.then(() => hookFunction(...arguments_ || [])), Promise.resolve());
52
50
  }
53
- /** @deprecated */
54
51
  function parallelCaller(hooks, args) {
55
52
  return Promise.all(hooks.map((hook) => hook(...args || [])));
56
53
  }
57
54
  function callEachWith(callbacks, arg0) {
58
55
  for (const callback of [...callbacks]) callback(arg0);
59
56
  }
60
-
61
- //#endregion
62
- //#region src/hookable.ts
63
57
  var Hookable = class {
64
58
  _hooks;
65
59
  _before;
@@ -127,6 +121,9 @@ var Hookable = class {
127
121
  if (hooks.length === 0) this._hooks[name] = void 0;
128
122
  }
129
123
  }
124
+ clearHook(name) {
125
+ this._hooks[name] = void 0;
126
+ }
130
127
  deprecateHook(name, deprecated) {
131
128
  this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
132
129
  const _hooks = this._hooks[name] || [];
@@ -225,11 +222,7 @@ var HookableCore = class {
225
222
  return callHooks(hooks, args, 0);
226
223
  }
227
224
  };
228
-
229
- //#endregion
230
- //#region src/debugger.ts
231
225
  const isBrowser = typeof window !== "undefined";
232
- /** Start debugging hook names and timing in console */
233
226
  function createDebugger(hooks, _options = {}) {
234
227
  const options = {
235
228
  inspect: isBrowser,
@@ -261,6 +254,4 @@ function createDebugger(hooks, _options = {}) {
261
254
  unsubscribeAfter();
262
255
  } };
263
256
  }
264
-
265
- //#endregion
266
- export { Hookable, HookableCore, createDebugger, createHooks, flatHooks, mergeHooks, parallelCaller, serial, serialCaller };
257
+ export { Hookable, HookableCore, createDebugger, createHooks, flatHooks, mergeHooks, parallelCaller, serial, serialCaller };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hookable",
3
- "version": "6.0.1",
3
+ "version": "6.1.1",
4
4
  "description": "Awaitable hook system",
5
5
  "keywords": [
6
6
  "hook",
@@ -9,44 +9,45 @@
9
9
  "tapable",
10
10
  "tappable"
11
11
  ],
12
- "repository": "unjs/hookable",
13
12
  "license": "MIT",
14
- "sideEffects": false,
13
+ "repository": "unjs/hookable",
14
+ "files": [
15
+ "dist"
16
+ ],
15
17
  "type": "module",
18
+ "sideEffects": false,
19
+ "main": "./dist/index.mjs",
20
+ "types": "./dist/index.d.mts",
16
21
  "exports": {
17
22
  ".": "./dist/index.mjs"
18
23
  },
19
- "main": "./dist/index.mjs",
20
- "types": "./dist/index.d.mts",
21
- "files": [
22
- "dist"
23
- ],
24
24
  "scripts": {
25
25
  "bench": "node --expose-gc --allow-natives-syntax test/bench.ts",
26
26
  "build": "obuild src/index.ts",
27
27
  "dev": "vitest",
28
- "lint": "eslint --cache . && prettier -c src test",
29
- "lint:fix": "eslint --cache . --fix && prettier -c src test -w",
28
+ "lint": "oxlint . && oxfmt --check src test",
29
+ "lint:fix": "oxlint . --fix && oxfmt src test",
30
30
  "prepublish": "pnpm build",
31
31
  "release": "pnpm test && pnpm build && changelogen --release --publish --push",
32
32
  "test": "pnpm lint && vitest run --coverage",
33
- "test:types": "tsc --noEmit"
33
+ "test:types": "tsgo --noEmit"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^25.0.3",
37
- "@vitest/coverage-v8": "^4.0.16",
36
+ "@types/node": "^25.6.0",
37
+ "@typescript/native-preview": "^7.0.0-dev.20260414.1",
38
+ "@vitest/coverage-v8": "^4.1.4",
38
39
  "changelogen": "^0.6.2",
39
- "esbuild": "^0.27.2",
40
- "eslint": "^9.39.2",
41
- "eslint-config-unjs": "^0.5.0",
40
+ "esbuild": "^0.28.0",
41
+ "eslint-config-unjs": "^0.6.2",
42
42
  "expect-type": "^1.3.0",
43
- "hookable-prev": "npm:hookable@^5.5.3",
43
+ "hookable-prev": "npm:hookable@^6.1.0",
44
44
  "mitata": "^1.0.34",
45
- "obuild": "^0.4.9",
46
- "prettier": "^3.7.4",
47
- "typescript": "^5.9.3",
48
- "vite": "^7.3.0",
49
- "vitest": "^4.0.16"
45
+ "obuild": "^0.4.33",
46
+ "oxfmt": "^0.45.0",
47
+ "oxlint": "^1.60.0",
48
+ "typescript": "^6.0.2",
49
+ "vite": "^8.0.8",
50
+ "vitest": "^4.1.4"
50
51
  },
51
- "packageManager": "pnpm@10.26.0"
52
+ "packageManager": "pnpm@10.33.0"
52
53
  }