typenative 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1131) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +18 -8
  3. package/bin/go/overrides.js +21 -1
  4. package/bin/index.js +48 -25
  5. package/bin/main.js +2 -1
  6. package/bin/node/assert.js +56 -17
  7. package/bin/node/async_hooks.js +69 -10
  8. package/bin/node/buffer.js +321 -7
  9. package/bin/node/child_process.js +220 -16
  10. package/bin/node/cluster.js +436 -32
  11. package/bin/node/crypto.js +814 -5
  12. package/bin/node/crypto_curves.js +142 -0
  13. package/bin/node/crypto_keys.js +1147 -48
  14. package/bin/node/crypto_pem.js +313 -0
  15. package/bin/node/crypto_pkcs12.js +17 -0
  16. package/bin/node/dgram.js +161 -10
  17. package/bin/node/diagnostics_channel.js +5 -1
  18. package/bin/node/events.js +358 -8
  19. package/bin/node/ffi.js +933 -0
  20. package/bin/node/fs.js +1346 -10
  21. package/bin/node/histogram.js +1991 -0
  22. package/bin/node/http.js +630 -55
  23. package/bin/node/http2.js +1141 -88
  24. package/bin/node/intl.js +4576 -0
  25. package/bin/node/intl_data.js +65412 -0
  26. package/bin/node/module_v8.js +155 -16
  27. package/bin/node/net.js +59 -10
  28. package/bin/node/path.js +5 -1
  29. package/bin/node/process.js +355 -4
  30. package/bin/node/readline.js +558 -8
  31. package/bin/node/registry.js +2 -0
  32. package/bin/node/sqlite.js +1539 -7
  33. package/bin/node/stream.js +371 -32
  34. package/bin/node/stream_web.js +422 -15
  35. package/bin/node/system_extra.js +40 -154
  36. package/bin/node/temporal.js +96 -0
  37. package/bin/node/temporal_runtime.js +5075 -0
  38. package/bin/node/temporal_zones.js +460 -0
  39. package/bin/node/test.js +191 -8
  40. package/bin/node/test_coverage.js +58 -0
  41. package/bin/node/test_report.js +50 -4
  42. package/bin/node/test_run.js +64 -3
  43. package/bin/node/timers.js +123 -0
  44. package/bin/node/tls.js +346 -12
  45. package/bin/node/tls_roots.js +122 -0
  46. package/bin/node/typed_arrays.js +867 -93
  47. package/bin/node/url.js +657 -0
  48. package/bin/node/util.js +449 -7
  49. package/bin/node/util_extra.js +6 -0
  50. package/bin/node/wasi.js +214 -0
  51. package/bin/node/webassembly.js +1137 -0
  52. package/bin/node/websocket.js +763 -0
  53. package/bin/node/webview.js +3257 -244
  54. package/bin/node/worker_threads.js +434 -52
  55. package/bin/node/zlib.js +455 -22
  56. package/bin/node/zlib_iter.js +585 -0
  57. package/bin/node/zlib_zip.js +2392 -0
  58. package/bin/transpiler.js +3417 -501
  59. package/bin/typecheck-node.js +49 -17
  60. package/bin/version.js +1 -1
  61. package/govendor/github.com/cloudflare/circl/.golangci.yaml +64 -0
  62. package/govendor/github.com/cloudflare/circl/.semgrepignore +1 -0
  63. package/govendor/github.com/cloudflare/circl/AGENTS.md +91 -0
  64. package/govendor/github.com/cloudflare/circl/CITATION.cff +30 -0
  65. package/govendor/github.com/cloudflare/circl/LICENSE +57 -0
  66. package/govendor/github.com/cloudflare/circl/Makefile +70 -0
  67. package/govendor/github.com/cloudflare/circl/README.md +206 -0
  68. package/govendor/github.com/cloudflare/circl/REVIEW.md +83 -0
  69. package/govendor/github.com/cloudflare/circl/codecov.yml +21 -0
  70. package/govendor/github.com/cloudflare/circl/dh/x448/curve.go +104 -0
  71. package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.go +30 -0
  72. package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.h +111 -0
  73. package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.s +194 -0
  74. package/govendor/github.com/cloudflare/circl/dh/x448/curve_generic.go +100 -0
  75. package/govendor/github.com/cloudflare/circl/dh/x448/curve_noasm.go +11 -0
  76. package/govendor/github.com/cloudflare/circl/dh/x448/doc.go +19 -0
  77. package/govendor/github.com/cloudflare/circl/dh/x448/key.go +46 -0
  78. package/govendor/github.com/cloudflare/circl/dh/x448/table.go +460 -0
  79. package/govendor/github.com/cloudflare/circl/doc.go +8 -0
  80. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/constants.go +71 -0
  81. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/curve.go +90 -0
  82. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/isogeny.go +52 -0
  83. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/point.go +181 -0
  84. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/scalar.go +203 -0
  85. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twist.go +138 -0
  86. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twistPoint.go +135 -0
  87. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twistTables.go +216 -0
  88. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twist_basemult.go +62 -0
  89. package/govendor/github.com/cloudflare/circl/go.mod +3 -0
  90. package/govendor/github.com/cloudflare/circl/internal/conv/conv.go +173 -0
  91. package/govendor/github.com/cloudflare/circl/internal/sha3/doc.go +62 -0
  92. package/govendor/github.com/cloudflare/circl/internal/sha3/hashes.go +69 -0
  93. package/govendor/github.com/cloudflare/circl/internal/sha3/keccakf.go +391 -0
  94. package/govendor/github.com/cloudflare/circl/internal/sha3/rc.go +29 -0
  95. package/govendor/github.com/cloudflare/circl/internal/sha3/sha3.go +200 -0
  96. package/govendor/github.com/cloudflare/circl/internal/sha3/sha3_s390x.s +33 -0
  97. package/govendor/github.com/cloudflare/circl/internal/sha3/shake.go +119 -0
  98. package/govendor/github.com/cloudflare/circl/internal/sha3/xor.go +15 -0
  99. package/govendor/github.com/cloudflare/circl/internal/sha3/xor_generic.go +33 -0
  100. package/govendor/github.com/cloudflare/circl/internal/sha3/xor_unaligned.go +61 -0
  101. package/govendor/github.com/cloudflare/circl/math/fp448/fp.go +164 -0
  102. package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.go +43 -0
  103. package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.h +591 -0
  104. package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.s +75 -0
  105. package/govendor/github.com/cloudflare/circl/math/fp448/fp_generic.go +339 -0
  106. package/govendor/github.com/cloudflare/circl/math/fp448/fp_noasm.go +12 -0
  107. package/govendor/github.com/cloudflare/circl/math/fp448/fuzzer.go +75 -0
  108. package/govendor/github.com/cloudflare/circl/math/integer.go +16 -0
  109. package/govendor/github.com/cloudflare/circl/math/mlsbset/mlsbset.go +145 -0
  110. package/govendor/github.com/cloudflare/circl/math/mlsbset/power.go +64 -0
  111. package/govendor/github.com/cloudflare/circl/math/primes.go +34 -0
  112. package/govendor/github.com/cloudflare/circl/math/wnaf.go +84 -0
  113. package/govendor/github.com/cloudflare/circl/sign/ed448/ed448.go +417 -0
  114. package/govendor/github.com/cloudflare/circl/sign/ed448/signapi.go +89 -0
  115. package/govendor/github.com/cloudflare/circl/sign/sign.go +119 -0
  116. package/{examples/react-compiler/vendor/picocolors → govendor/github.com/decred/dcrd/dcrec/secp256k1/v4}/LICENSE +4 -2
  117. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/README.md +72 -0
  118. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/compressedbytepoints.go +18 -0
  119. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve.go +1310 -0
  120. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve_embedded.go +14 -0
  121. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve_precompute.go +14 -0
  122. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/doc.go +59 -0
  123. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdh.go +21 -0
  124. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/README.md +52 -0
  125. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/doc.go +42 -0
  126. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/error.go +134 -0
  127. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/signature.go +1001 -0
  128. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ellipticadaptor.go +296 -0
  129. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/error.go +67 -0
  130. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/field.go +1696 -0
  131. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/go.mod +3 -0
  132. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/loadprecomputed.go +91 -0
  133. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/modnscalar.go +1105 -0
  134. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/nonce.go +263 -0
  135. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/privkey.go +111 -0
  136. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/pubkey.go +236 -0
  137. package/govendor/github.com/ebitengine/purego/LICENSE +201 -0
  138. package/govendor/github.com/ebitengine/purego/README.md +124 -0
  139. package/govendor/github.com/ebitengine/purego/abi_amd64.h +99 -0
  140. package/govendor/github.com/ebitengine/purego/abi_arm64.h +39 -0
  141. package/govendor/github.com/ebitengine/purego/abi_loong64.h +60 -0
  142. package/govendor/github.com/ebitengine/purego/cdecl.go +11 -0
  143. package/govendor/github.com/ebitengine/purego/cgo.go +19 -0
  144. package/govendor/github.com/ebitengine/purego/dlerror.go +17 -0
  145. package/govendor/github.com/ebitengine/purego/dlfcn.go +99 -0
  146. package/govendor/github.com/ebitengine/purego/dlfcn_android.go +34 -0
  147. package/govendor/github.com/ebitengine/purego/dlfcn_darwin.go +20 -0
  148. package/govendor/github.com/ebitengine/purego/dlfcn_freebsd.go +14 -0
  149. package/govendor/github.com/ebitengine/purego/dlfcn_linux.go +16 -0
  150. package/govendor/github.com/ebitengine/purego/dlfcn_netbsd.go +15 -0
  151. package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_freebsd.go +11 -0
  152. package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_linux.go +19 -0
  153. package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_netbsd.go +11 -0
  154. package/govendor/github.com/ebitengine/purego/dlfcn_playground.go +24 -0
  155. package/govendor/github.com/ebitengine/purego/dlfcn_stubs.s +22 -0
  156. package/govendor/github.com/ebitengine/purego/func.go +780 -0
  157. package/govendor/github.com/ebitengine/purego/gen.go +6 -0
  158. package/govendor/github.com/ebitengine/purego/go.mod +3 -0
  159. package/govendor/github.com/ebitengine/purego/go_runtime.go +19 -0
  160. package/govendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0
  161. package/govendor/github.com/ebitengine/purego/internal/cgo/empty.go +6 -0
  162. package/govendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go +49 -0
  163. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_amd64.h +99 -0
  164. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_arm64.h +39 -0
  165. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_loong64.h +60 -0
  166. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_ppc64x.h +195 -0
  167. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_riscv64.h +72 -0
  168. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_386.s +29 -0
  169. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_amd64.s +39 -0
  170. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm.s +58 -0
  171. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm64.s +35 -0
  172. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_loong64.s +38 -0
  173. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_ppc64le.s +79 -0
  174. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_riscv64.s +36 -0
  175. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_s390x.s +52 -0
  176. package/govendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go +93 -0
  177. package/govendor/github.com/ebitengine/purego/internal/fakecgo/doc.go +32 -0
  178. package/govendor/github.com/ebitengine/purego/internal/fakecgo/fakecgo.go +14 -0
  179. package/govendor/github.com/ebitengine/purego/internal/fakecgo/freebsd.go +27 -0
  180. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin.go +86 -0
  181. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd.go +77 -0
  182. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +72 -0
  183. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_linux.go +77 -0
  184. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_netbsd.go +83 -0
  185. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go +18 -0
  186. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go +38 -0
  187. package/govendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go +19 -0
  188. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go +37 -0
  189. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go +37 -0
  190. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go +27 -0
  191. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go +27 -0
  192. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_netbsd.go +36 -0
  193. package/govendor/github.com/ebitengine/purego/internal/fakecgo/linux.go +189 -0
  194. package/govendor/github.com/ebitengine/purego/internal/fakecgo/netbsd.go +23 -0
  195. package/govendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go +19 -0
  196. package/govendor/github.com/ebitengine/purego/internal/fakecgo/threadentry_amd64.go +15 -0
  197. package/govendor/github.com/ebitengine/purego/internal/fakecgo/threadentry_noasm.go +24 -0
  198. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_386.s +130 -0
  199. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_amd64.s +124 -0
  200. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm.s +131 -0
  201. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm64.s +81 -0
  202. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_386.s +78 -0
  203. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_amd64.s +69 -0
  204. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_arm.s +69 -0
  205. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_arm64.s +60 -0
  206. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_loong64.s +60 -0
  207. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_ppc64le.s +69 -0
  208. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_riscv64.s +60 -0
  209. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_s390x.s +51 -0
  210. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_loong64.s +78 -0
  211. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_ppc64le.s +132 -0
  212. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_riscv64.s +76 -0
  213. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_s390x.s +158 -0
  214. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols.go +165 -0
  215. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_darwin.go +59 -0
  216. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_freebsd.go +48 -0
  217. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_linux.go +158 -0
  218. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_netbsd.go +59 -0
  219. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_darwin.s +19 -0
  220. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_freebsd.s +16 -0
  221. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_linux.s +46 -0
  222. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_netbsd.s +19 -0
  223. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_stubs.s +55 -0
  224. package/govendor/github.com/ebitengine/purego/internal/strings/strings.go +40 -0
  225. package/govendor/github.com/ebitengine/purego/is_ios.go +13 -0
  226. package/govendor/github.com/ebitengine/purego/nocgo.go +25 -0
  227. package/govendor/github.com/ebitengine/purego/struct_amd64.go +518 -0
  228. package/govendor/github.com/ebitengine/purego/struct_arm.go +100 -0
  229. package/govendor/github.com/ebitengine/purego/struct_arm64.go +757 -0
  230. package/govendor/github.com/ebitengine/purego/struct_loong64.go +244 -0
  231. package/govendor/github.com/ebitengine/purego/struct_other.go +54 -0
  232. package/govendor/github.com/ebitengine/purego/struct_ppc64le.go +180 -0
  233. package/govendor/github.com/ebitengine/purego/struct_riscv64.go +158 -0
  234. package/govendor/github.com/ebitengine/purego/struct_s390x.go +158 -0
  235. package/govendor/github.com/ebitengine/purego/sys_386.s +153 -0
  236. package/govendor/github.com/ebitengine/purego/sys_amd64.s +206 -0
  237. package/govendor/github.com/ebitengine/purego/sys_arm.s +153 -0
  238. package/govendor/github.com/ebitengine/purego/sys_arm64.s +133 -0
  239. package/govendor/github.com/ebitengine/purego/sys_loong64.s +131 -0
  240. package/govendor/github.com/ebitengine/purego/sys_ppc64le.s +126 -0
  241. package/govendor/github.com/ebitengine/purego/sys_riscv64.s +135 -0
  242. package/govendor/github.com/ebitengine/purego/sys_s390x.s +148 -0
  243. package/govendor/github.com/ebitengine/purego/sys_unix_386.s +234 -0
  244. package/govendor/github.com/ebitengine/purego/sys_unix_arm.s +99 -0
  245. package/govendor/github.com/ebitengine/purego/sys_unix_arm64.s +75 -0
  246. package/govendor/github.com/ebitengine/purego/sys_unix_loong64.s +79 -0
  247. package/govendor/github.com/ebitengine/purego/sys_unix_ppc64le.s +114 -0
  248. package/govendor/github.com/ebitengine/purego/sys_unix_riscv64.s +79 -0
  249. package/govendor/github.com/ebitengine/purego/sys_unix_s390x.s +111 -0
  250. package/govendor/github.com/ebitengine/purego/syscall.go +95 -0
  251. package/govendor/github.com/ebitengine/purego/syscall_32bit.go +97 -0
  252. package/govendor/github.com/ebitengine/purego/syscall_cgo_linux.go +20 -0
  253. package/govendor/github.com/ebitengine/purego/syscall_notstackargs.go +55 -0
  254. package/govendor/github.com/ebitengine/purego/syscall_ppc64le.go +73 -0
  255. package/govendor/github.com/ebitengine/purego/syscall_stackargs_ppc64le.go +38 -0
  256. package/govendor/github.com/ebitengine/purego/syscall_stackargs_s390x.go +38 -0
  257. package/govendor/github.com/ebitengine/purego/syscall_unix.go +392 -0
  258. package/govendor/github.com/ebitengine/purego/syscall_windows.go +54 -0
  259. package/govendor/github.com/ebitengine/purego/zcallback_386.s +4014 -0
  260. package/govendor/github.com/ebitengine/purego/zcallback_amd64.s +2014 -0
  261. package/govendor/github.com/ebitengine/purego/zcallback_arm.s +4014 -0
  262. package/govendor/github.com/ebitengine/purego/zcallback_arm64.s +4014 -0
  263. package/govendor/github.com/ebitengine/purego/zcallback_loong64.s +4014 -0
  264. package/govendor/github.com/ebitengine/purego/zcallback_ppc64le.s +4014 -0
  265. package/govendor/github.com/ebitengine/purego/zcallback_riscv64.s +4051 -0
  266. package/govendor/github.com/ebitengine/purego/zcallback_s390x.s +4015 -0
  267. package/govendor/github.com/klauspost/compress/.gitattributes +3 -0
  268. package/govendor/github.com/klauspost/compress/.goreleaser.yml +132 -0
  269. package/govendor/github.com/klauspost/compress/AGENTS.md +106 -0
  270. package/govendor/github.com/klauspost/compress/LICENSE +304 -0
  271. package/govendor/github.com/klauspost/compress/README.md +766 -0
  272. package/govendor/github.com/klauspost/compress/SECURITY.md +25 -0
  273. package/govendor/github.com/klauspost/compress/compressible.go +85 -0
  274. package/govendor/github.com/klauspost/compress/fse/README.md +79 -0
  275. package/govendor/github.com/klauspost/compress/fse/bitreader.go +122 -0
  276. package/govendor/github.com/klauspost/compress/fse/bitwriter.go +167 -0
  277. package/govendor/github.com/klauspost/compress/fse/bytereader.go +47 -0
  278. package/govendor/github.com/klauspost/compress/fse/compress.go +685 -0
  279. package/govendor/github.com/klauspost/compress/fse/decompress.go +383 -0
  280. package/govendor/github.com/klauspost/compress/fse/fse.go +150 -0
  281. package/govendor/github.com/klauspost/compress/gen.sh +4 -0
  282. package/govendor/github.com/klauspost/compress/go.mod +3 -0
  283. package/govendor/github.com/klauspost/compress/huff0/README.md +89 -0
  284. package/govendor/github.com/klauspost/compress/huff0/bitreader.go +323 -0
  285. package/govendor/github.com/klauspost/compress/huff0/bitwriter.go +97 -0
  286. package/govendor/github.com/klauspost/compress/huff0/build_table.go +168 -0
  287. package/govendor/github.com/klauspost/compress/huff0/compress.go +747 -0
  288. package/govendor/github.com/klauspost/compress/huff0/decompress.go +1188 -0
  289. package/govendor/github.com/klauspost/compress/huff0/decompress_amd64.go +128 -0
  290. package/govendor/github.com/klauspost/compress/huff0/decompress_amd64.s +3476 -0
  291. package/govendor/github.com/klauspost/compress/huff0/decompress_arm64.go +72 -0
  292. package/govendor/github.com/klauspost/compress/huff0/decompress_arm64.s +1648 -0
  293. package/govendor/github.com/klauspost/compress/huff0/decompress_asm.go +252 -0
  294. package/govendor/github.com/klauspost/compress/huff0/decompress_generic.go +278 -0
  295. package/govendor/github.com/klauspost/compress/huff0/huff0.go +337 -0
  296. package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo.go +34 -0
  297. package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.go +10 -0
  298. package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.s +34 -0
  299. package/govendor/github.com/klauspost/compress/internal/le/le.go +5 -0
  300. package/govendor/github.com/klauspost/compress/internal/le/unsafe_disabled.go +42 -0
  301. package/govendor/github.com/klauspost/compress/internal/le/unsafe_enabled.go +52 -0
  302. package/govendor/github.com/klauspost/compress/internal/regmask/regmask.go +50 -0
  303. package/govendor/github.com/klauspost/compress/internal/regmask/regmask_386.go +39 -0
  304. package/govendor/github.com/klauspost/compress/internal/snapref/LICENSE +27 -0
  305. package/govendor/github.com/klauspost/compress/internal/snapref/decode.go +264 -0
  306. package/govendor/github.com/klauspost/compress/internal/snapref/decode_other.go +113 -0
  307. package/govendor/github.com/klauspost/compress/internal/snapref/encode.go +291 -0
  308. package/govendor/github.com/klauspost/compress/internal/snapref/encode_other.go +250 -0
  309. package/govendor/github.com/klauspost/compress/internal/snapref/snappy.go +98 -0
  310. package/govendor/github.com/klauspost/compress/s2sx.mod +3 -0
  311. package/govendor/github.com/klauspost/compress/s2sx.sum +0 -0
  312. package/govendor/github.com/klauspost/compress/zstd/README.md +487 -0
  313. package/govendor/github.com/klauspost/compress/zstd/bitreader.go +176 -0
  314. package/govendor/github.com/klauspost/compress/zstd/bitwriter.go +151 -0
  315. package/govendor/github.com/klauspost/compress/zstd/blockdec.go +728 -0
  316. package/govendor/github.com/klauspost/compress/zstd/blockenc.go +923 -0
  317. package/govendor/github.com/klauspost/compress/zstd/blocktype_string.go +85 -0
  318. package/govendor/github.com/klauspost/compress/zstd/bytebuf.go +131 -0
  319. package/govendor/github.com/klauspost/compress/zstd/bytereader.go +82 -0
  320. package/govendor/github.com/klauspost/compress/zstd/decodeheader.go +261 -0
  321. package/govendor/github.com/klauspost/compress/zstd/decoder.go +995 -0
  322. package/govendor/github.com/klauspost/compress/zstd/decoder_options.go +213 -0
  323. package/govendor/github.com/klauspost/compress/zstd/dict.go +605 -0
  324. package/govendor/github.com/klauspost/compress/zstd/enc_base.go +200 -0
  325. package/govendor/github.com/klauspost/compress/zstd/enc_best.go +572 -0
  326. package/govendor/github.com/klauspost/compress/zstd/enc_better.go +1262 -0
  327. package/govendor/github.com/klauspost/compress/zstd/enc_dfast.go +1136 -0
  328. package/govendor/github.com/klauspost/compress/zstd/enc_fast.go +892 -0
  329. package/govendor/github.com/klauspost/compress/zstd/enc_jobs.go +352 -0
  330. package/govendor/github.com/klauspost/compress/zstd/encoder.go +881 -0
  331. package/govendor/github.com/klauspost/compress/zstd/encoder_options.go +422 -0
  332. package/govendor/github.com/klauspost/compress/zstd/framedec.go +404 -0
  333. package/govendor/github.com/klauspost/compress/zstd/frameenc.go +137 -0
  334. package/govendor/github.com/klauspost/compress/zstd/fse_decoder.go +333 -0
  335. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_amd64.s +132 -0
  336. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_arm64.s +148 -0
  337. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_asm.go +70 -0
  338. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_generic.go +71 -0
  339. package/govendor/github.com/klauspost/compress/zstd/fse_encoder.go +701 -0
  340. package/govendor/github.com/klauspost/compress/zstd/fse_predefined.go +168 -0
  341. package/govendor/github.com/klauspost/compress/zstd/hash.go +57 -0
  342. package/govendor/github.com/klauspost/compress/zstd/history.go +119 -0
  343. package/{examples/react-compiler/vendor/jsesc/LICENSE-MIT.txt → govendor/github.com/klauspost/compress/zstd/internal/xxhash/LICENSE.txt} +3 -1
  344. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/README.md +71 -0
  345. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash.go +242 -0
  346. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.s +210 -0
  347. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_arm64.s +184 -0
  348. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_asm.go +11 -0
  349. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_other.go +75 -0
  350. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go +11 -0
  351. package/govendor/github.com/klauspost/compress/zstd/matchlen_amd64.go +15 -0
  352. package/govendor/github.com/klauspost/compress/zstd/matchlen_amd64.s +66 -0
  353. package/govendor/github.com/klauspost/compress/zstd/matchlen_generic.go +37 -0
  354. package/govendor/github.com/klauspost/compress/zstd/seqdec.go +620 -0
  355. package/govendor/github.com/klauspost/compress/zstd/seqdec_amd64.go +115 -0
  356. package/govendor/github.com/klauspost/compress/zstd/seqdec_amd64.s +4762 -0
  357. package/govendor/github.com/klauspost/compress/zstd/seqdec_arm64.go +81 -0
  358. package/govendor/github.com/klauspost/compress/zstd/seqdec_arm64.s +2919 -0
  359. package/govendor/github.com/klauspost/compress/zstd/seqdec_asm.go +327 -0
  360. package/govendor/github.com/klauspost/compress/zstd/seqdec_generic.go +258 -0
  361. package/govendor/github.com/klauspost/compress/zstd/seqenc.go +159 -0
  362. package/govendor/github.com/klauspost/compress/zstd/simple.go +54 -0
  363. package/govendor/github.com/klauspost/compress/zstd/snappy.go +447 -0
  364. package/govendor/github.com/klauspost/compress/zstd/zip.go +141 -0
  365. package/govendor/github.com/klauspost/compress/zstd/zstd.go +126 -0
  366. package/govendor/github.com/tetratelabs/wazero/.editorconfig +7 -0
  367. package/govendor/github.com/tetratelabs/wazero/.gitattributes +2 -0
  368. package/govendor/github.com/tetratelabs/wazero/.gitmodules +3 -0
  369. package/govendor/github.com/tetratelabs/wazero/CONTRIBUTING.md +75 -0
  370. package/govendor/github.com/tetratelabs/wazero/LICENSE +201 -0
  371. package/govendor/github.com/tetratelabs/wazero/Makefile +385 -0
  372. package/govendor/github.com/tetratelabs/wazero/NOTICE +2 -0
  373. package/govendor/github.com/tetratelabs/wazero/RATIONALE.md +1577 -0
  374. package/govendor/github.com/tetratelabs/wazero/README.md +135 -0
  375. package/govendor/github.com/tetratelabs/wazero/api/features.go +228 -0
  376. package/govendor/github.com/tetratelabs/wazero/api/wasm.go +766 -0
  377. package/govendor/github.com/tetratelabs/wazero/builder.go +367 -0
  378. package/govendor/github.com/tetratelabs/wazero/cache.go +123 -0
  379. package/govendor/github.com/tetratelabs/wazero/codecov.yml +9 -0
  380. package/govendor/github.com/tetratelabs/wazero/config.go +899 -0
  381. package/govendor/github.com/tetratelabs/wazero/experimental/checkpoint.go +35 -0
  382. package/govendor/github.com/tetratelabs/wazero/experimental/close.go +63 -0
  383. package/govendor/github.com/tetratelabs/wazero/experimental/compilationworkers.go +19 -0
  384. package/govendor/github.com/tetratelabs/wazero/experimental/experimental.go +41 -0
  385. package/govendor/github.com/tetratelabs/wazero/experimental/features.go +39 -0
  386. package/govendor/github.com/tetratelabs/wazero/experimental/importresolver.go +19 -0
  387. package/govendor/github.com/tetratelabs/wazero/experimental/listener.go +324 -0
  388. package/govendor/github.com/tetratelabs/wazero/experimental/memory.go +52 -0
  389. package/govendor/github.com/tetratelabs/wazero/experimental/sys/dir.go +92 -0
  390. package/govendor/github.com/tetratelabs/wazero/experimental/sys/errno.go +98 -0
  391. package/govendor/github.com/tetratelabs/wazero/experimental/sys/error.go +45 -0
  392. package/govendor/github.com/tetratelabs/wazero/experimental/sys/file.go +356 -0
  393. package/govendor/github.com/tetratelabs/wazero/experimental/sys/fs.go +292 -0
  394. package/govendor/github.com/tetratelabs/wazero/experimental/sys/oflag.go +70 -0
  395. package/govendor/github.com/tetratelabs/wazero/experimental/sys/poll.go +48 -0
  396. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno.go +106 -0
  397. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_notwindows.go +13 -0
  398. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_unsupported.go +7 -0
  399. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_windows.go +37 -0
  400. package/govendor/github.com/tetratelabs/wazero/experimental/sys/time.go +10 -0
  401. package/govendor/github.com/tetratelabs/wazero/experimental/sys/unimplemented.go +160 -0
  402. package/govendor/github.com/tetratelabs/wazero/fsconfig.go +213 -0
  403. package/govendor/github.com/tetratelabs/wazero/go.mod +3 -0
  404. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/args.go +97 -0
  405. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/clock.go +116 -0
  406. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/environ.go +100 -0
  407. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/fs.go +2015 -0
  408. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/poll.go +247 -0
  409. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/proc.go +44 -0
  410. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/random.go +55 -0
  411. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/sched.go +22 -0
  412. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/sock.go +188 -0
  413. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/wasi.go +314 -0
  414. package/govendor/github.com/tetratelabs/wazero/internal/descriptor/table.go +149 -0
  415. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/compiler.go +3884 -0
  416. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/format.go +22 -0
  417. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/interpreter.go +4963 -0
  418. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/operations.go +2978 -0
  419. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/signature.go +825 -0
  420. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/abi.go +170 -0
  421. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/backend.go +3 -0
  422. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/compiler.go +402 -0
  423. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/compiler_lower.go +226 -0
  424. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/go_call.go +33 -0
  425. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi.go +186 -0
  426. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_amd64.go +9 -0
  427. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_amd64.s +29 -0
  428. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_preamble.go +248 -0
  429. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_go_call.go +440 -0
  430. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/cond.go +168 -0
  431. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/ext.go +35 -0
  432. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/instr.go +2495 -0
  433. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/instr_encoding.go +1714 -0
  434. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/lower_constant.go +71 -0
  435. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/lower_mem.go +187 -0
  436. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine.go +3782 -0
  437. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_pro_epi_logue.go +334 -0
  438. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_regalloc.go +352 -0
  439. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_vec.go +992 -0
  440. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/operands.go +336 -0
  441. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/reg.go +181 -0
  442. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/stack.go +130 -0
  443. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi.go +376 -0
  444. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_arm64.go +9 -0
  445. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_arm64.s +29 -0
  446. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go +233 -0
  447. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go +430 -0
  448. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/cond.go +215 -0
  449. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/instr.go +2562 -0
  450. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go +2357 -0
  451. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_constant.go +301 -0
  452. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_instr.go +2227 -0
  453. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go +340 -0
  454. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_mem.go +451 -0
  455. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine.go +631 -0
  456. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go +486 -0
  457. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go +351 -0
  458. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go +128 -0
  459. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/reg.go +397 -0
  460. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/unwind_stack.go +84 -0
  461. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/machine.go +119 -0
  462. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/api.go +124 -0
  463. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/reg.go +123 -0
  464. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/regalloc.go +1189 -0
  465. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/regset.go +96 -0
  466. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/vdef.go +19 -0
  467. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go +884 -0
  468. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/engine.go +1008 -0
  469. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/engine_cache.go +347 -0
  470. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_amd64.go +13 -0
  471. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_arm64.go +13 -0
  472. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_other.go +15 -0
  473. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/frontend.go +663 -0
  474. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/lower.go +5045 -0
  475. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/misc.go +10 -0
  476. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/sort_id.go +13 -0
  477. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/hostmodule.go +88 -0
  478. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_amd64.go +30 -0
  479. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_arm64.go +32 -0
  480. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_other.go +29 -0
  481. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/memmove.go +11 -0
  482. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/module_engine.go +403 -0
  483. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/basic_block.go +381 -0
  484. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/basic_block_sort.go +32 -0
  485. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/builder.go +790 -0
  486. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/cmp.go +107 -0
  487. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/funcref.go +12 -0
  488. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/instructions.go +3024 -0
  489. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass.go +393 -0
  490. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass_blk_layouts.go +334 -0
  491. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass_cfg.go +313 -0
  492. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/signature.go +49 -0
  493. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/ssa.go +14 -0
  494. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/type.go +115 -0
  495. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/vs.go +114 -0
  496. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/debug_options.go +189 -0
  497. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/exitcode.go +150 -0
  498. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/offsetdata.go +248 -0
  499. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap.go +96 -0
  500. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap_disabled.go +5 -0
  501. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap_enabled.go +5 -0
  502. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/pool.go +215 -0
  503. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/ptr.go +15 -0
  504. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/queue.go +26 -0
  505. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/resetmap.go +11 -0
  506. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/checkpoint.go +10 -0
  507. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/close.go +5 -0
  508. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/compilationworkers.go +6 -0
  509. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/expctxkeys.go +2 -0
  510. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/importresolver.go +6 -0
  511. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/listener.go +7 -0
  512. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/memory.go +4 -0
  513. package/govendor/github.com/tetratelabs/wazero/internal/filecache/compilationcache.go +42 -0
  514. package/govendor/github.com/tetratelabs/wazero/internal/filecache/file_cache.go +76 -0
  515. package/govendor/github.com/tetratelabs/wazero/internal/ieee754/ieee754.go +29 -0
  516. package/govendor/github.com/tetratelabs/wazero/internal/internalapi/internal.go +9 -0
  517. package/govendor/github.com/tetratelabs/wazero/internal/leb128/leb128.go +285 -0
  518. package/govendor/github.com/tetratelabs/wazero/internal/moremath/moremath.go +271 -0
  519. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid.go +26 -0
  520. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_amd64.go +22 -0
  521. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_arm64.go +13 -0
  522. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_unsupported.go +5 -0
  523. package/govendor/github.com/tetratelabs/wazero/internal/platform/crypto.go +17 -0
  524. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_linux.go +72 -0
  525. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_other.go +19 -0
  526. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_unix.go +14 -0
  527. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_unsupported.go +22 -0
  528. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_windows.go +31 -0
  529. package/govendor/github.com/tetratelabs/wazero/internal/platform/path.go +6 -0
  530. package/govendor/github.com/tetratelabs/wazero/internal/platform/path_windows.go +17 -0
  531. package/govendor/github.com/tetratelabs/wazero/internal/platform/platform.go +71 -0
  532. package/govendor/github.com/tetratelabs/wazero/internal/platform/time.go +76 -0
  533. package/govendor/github.com/tetratelabs/wazero/internal/platform/time_notwindows.go +11 -0
  534. package/govendor/github.com/tetratelabs/wazero/internal/platform/time_windows.go +40 -0
  535. package/govendor/github.com/tetratelabs/wazero/internal/sock/sock.go +89 -0
  536. package/govendor/github.com/tetratelabs/wazero/internal/sock/sock_supported.go +11 -0
  537. package/govendor/github.com/tetratelabs/wazero/internal/sock/sock_unsupported.go +10 -0
  538. package/govendor/github.com/tetratelabs/wazero/internal/sys/fs.go +458 -0
  539. package/govendor/github.com/tetratelabs/wazero/internal/sys/lazy.go +135 -0
  540. package/govendor/github.com/tetratelabs/wazero/internal/sys/stdio.go +125 -0
  541. package/govendor/github.com/tetratelabs/wazero/internal/sys/sys.go +228 -0
  542. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/adapter.go +105 -0
  543. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_linux.go +12 -0
  544. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_unsupported.go +14 -0
  545. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/dir.go +24 -0
  546. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/dirfs.go +137 -0
  547. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file.go +576 -0
  548. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_unix.go +39 -0
  549. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_unsupported.go +28 -0
  550. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_windows.go +133 -0
  551. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens.go +29 -0
  552. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_darwin.go +42 -0
  553. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_darwin.s +8 -0
  554. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_linux.go +38 -0
  555. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_unsupported.go +18 -0
  556. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_windows.go +42 -0
  557. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_unix.go +22 -0
  558. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_unsupported.go +17 -0
  559. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_windows.go +28 -0
  560. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_unix.go +17 -0
  561. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_unsupported.go +13 -0
  562. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_windows.go +23 -0
  563. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/oflag.go +38 -0
  564. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_bsd.go +26 -0
  565. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_darwin.go +26 -0
  566. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_supported.go +30 -0
  567. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_unix.go +20 -0
  568. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_unsupported.go +16 -0
  569. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_windows.go +163 -0
  570. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/osfile.go +318 -0
  571. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll.go +17 -0
  572. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_darwin.go +55 -0
  573. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_darwin.s +8 -0
  574. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_linux.go +57 -0
  575. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_unsupported.go +12 -0
  576. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_windows.go +224 -0
  577. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/readfs.go +117 -0
  578. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_unix.go +16 -0
  579. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_unsupported.go +16 -0
  580. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_windows.go +55 -0
  581. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock.go +186 -0
  582. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_supported.go +76 -0
  583. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_unix.go +48 -0
  584. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_unsupported.go +79 -0
  585. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_windows.go +80 -0
  586. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat.go +16 -0
  587. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_supported.go +40 -0
  588. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_unsupported.go +40 -0
  589. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_windows.go +118 -0
  590. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sync.go +13 -0
  591. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sync_windows.go +20 -0
  592. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/syscall6_darwin.go +13 -0
  593. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sysfs.go +6 -0
  594. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_unix.go +17 -0
  595. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_unsupported.go +14 -0
  596. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_windows.go +25 -0
  597. package/govendor/github.com/tetratelabs/wazero/internal/u32/u32.go +11 -0
  598. package/govendor/github.com/tetratelabs/wazero/internal/u64/u64.go +15 -0
  599. package/govendor/github.com/tetratelabs/wazero/internal/version/version.go +52 -0
  600. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/args.go +6 -0
  601. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go +16 -0
  602. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/environ.go +6 -0
  603. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/errno.go +314 -0
  604. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/fs.go +164 -0
  605. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/poll.go +15 -0
  606. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/proc.go +6 -0
  607. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/random.go +3 -0
  608. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/rights.go +148 -0
  609. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/sched.go +3 -0
  610. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/sock.go +71 -0
  611. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/wasi.go +26 -0
  612. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/code.go +124 -0
  613. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/const_expr.go +116 -0
  614. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/custom.go +22 -0
  615. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/data.go +79 -0
  616. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/decoder.go +235 -0
  617. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/element.go +250 -0
  618. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/errors.go +11 -0
  619. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/export.go +32 -0
  620. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/function.go +56 -0
  621. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/global.go +50 -0
  622. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/header.go +9 -0
  623. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/import.go +68 -0
  624. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/limits.go +47 -0
  625. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/memory.go +42 -0
  626. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/names.go +151 -0
  627. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/section.go +309 -0
  628. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/table.go +79 -0
  629. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/value.go +97 -0
  630. package/govendor/github.com/tetratelabs/wazero/internal/wasm/const_expr.go +259 -0
  631. package/govendor/github.com/tetratelabs/wazero/internal/wasm/counts.go +53 -0
  632. package/govendor/github.com/tetratelabs/wazero/internal/wasm/engine.go +76 -0
  633. package/govendor/github.com/tetratelabs/wazero/internal/wasm/exception.go +9 -0
  634. package/govendor/github.com/tetratelabs/wazero/internal/wasm/func_validation.go +2804 -0
  635. package/govendor/github.com/tetratelabs/wazero/internal/wasm/function_definition.go +210 -0
  636. package/govendor/github.com/tetratelabs/wazero/internal/wasm/global.go +55 -0
  637. package/govendor/github.com/tetratelabs/wazero/internal/wasm/gofunc.go +279 -0
  638. package/govendor/github.com/tetratelabs/wazero/internal/wasm/host.go +179 -0
  639. package/govendor/github.com/tetratelabs/wazero/internal/wasm/instruction.go +1962 -0
  640. package/govendor/github.com/tetratelabs/wazero/internal/wasm/memory.go +475 -0
  641. package/govendor/github.com/tetratelabs/wazero/internal/wasm/memory_definition.go +128 -0
  642. package/govendor/github.com/tetratelabs/wazero/internal/wasm/module.go +1359 -0
  643. package/govendor/github.com/tetratelabs/wazero/internal/wasm/module_instance.go +251 -0
  644. package/govendor/github.com/tetratelabs/wazero/internal/wasm/module_instance_lookup.go +73 -0
  645. package/govendor/github.com/tetratelabs/wazero/internal/wasm/store.go +726 -0
  646. package/govendor/github.com/tetratelabs/wazero/internal/wasm/store_module_list.go +95 -0
  647. package/govendor/github.com/tetratelabs/wazero/internal/wasm/table.go +321 -0
  648. package/govendor/github.com/tetratelabs/wazero/internal/wasmdebug/debug.go +170 -0
  649. package/govendor/github.com/tetratelabs/wazero/internal/wasmdebug/dwarf.go +225 -0
  650. package/govendor/github.com/tetratelabs/wazero/internal/wasmruntime/errors.go +54 -0
  651. package/govendor/github.com/tetratelabs/wazero/netlify.toml +15 -0
  652. package/govendor/github.com/tetratelabs/wazero/runtime.go +399 -0
  653. package/govendor/github.com/tetratelabs/wazero/sys/clock.go +26 -0
  654. package/govendor/github.com/tetratelabs/wazero/sys/error.go +83 -0
  655. package/govendor/github.com/tetratelabs/wazero/sys/stat.go +105 -0
  656. package/govendor/github.com/tetratelabs/wazero/sys/stat_bsd.go +29 -0
  657. package/govendor/github.com/tetratelabs/wazero/sys/stat_posix.go +29 -0
  658. package/govendor/github.com/tetratelabs/wazero/sys/stat_unsupported.go +14 -0
  659. package/govendor/github.com/tetratelabs/wazero/sys/stat_windows.go +24 -0
  660. package/govendor/golang.org/x/crypto/LICENSE +27 -0
  661. package/govendor/golang.org/x/crypto/PATENTS +22 -0
  662. package/govendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go +46 -0
  663. package/govendor/golang.org/x/crypto/cryptobyte/asn1.go +825 -0
  664. package/govendor/golang.org/x/crypto/cryptobyte/builder.go +350 -0
  665. package/govendor/golang.org/x/crypto/cryptobyte/string.go +183 -0
  666. package/govendor/golang.org/x/crypto/go.mod +3 -0
  667. package/govendor/golang.org/x/crypto/pbkdf2/pbkdf2.go +30 -0
  668. package/govendor/golang.org/x/net/LICENSE +27 -0
  669. package/govendor/golang.org/x/net/PATENTS +22 -0
  670. package/govendor/golang.org/x/net/dns/dnsmessage/message.go +2733 -0
  671. package/govendor/golang.org/x/net/dns/dnsmessage/svcb.go +333 -0
  672. package/govendor/golang.org/x/net/go.mod +3 -0
  673. package/govendor/golang.org/x/net/http/httpguts/guts.go +50 -0
  674. package/govendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
  675. package/govendor/golang.org/x/net/http2/README.md +19 -0
  676. package/govendor/golang.org/x/net/http2/ascii.go +65 -0
  677. package/govendor/golang.org/x/net/http2/ciphers.go +641 -0
  678. package/govendor/golang.org/x/net/http2/client_conn_pool.go +301 -0
  679. package/govendor/golang.org/x/net/http2/client_priority_go126.go +20 -0
  680. package/govendor/golang.org/x/net/http2/client_priority_go127.go +13 -0
  681. package/govendor/golang.org/x/net/http2/clientconn.go +57 -0
  682. package/govendor/golang.org/x/net/http2/config.go +171 -0
  683. package/govendor/golang.org/x/net/http2/config_go125.go +15 -0
  684. package/govendor/golang.org/x/net/http2/config_go126.go +15 -0
  685. package/govendor/golang.org/x/net/http2/databuffer.go +146 -0
  686. package/govendor/golang.org/x/net/http2/errors.go +145 -0
  687. package/govendor/golang.org/x/net/http2/flow.go +175 -0
  688. package/govendor/golang.org/x/net/http2/frame.go +1887 -0
  689. package/govendor/golang.org/x/net/http2/gotrack.go +181 -0
  690. package/govendor/golang.org/x/net/http2/hpack/encode.go +244 -0
  691. package/govendor/golang.org/x/net/http2/hpack/hpack.go +522 -0
  692. package/govendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
  693. package/govendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
  694. package/govendor/golang.org/x/net/http2/hpack/tables.go +426 -0
  695. package/govendor/golang.org/x/net/http2/http2.go +415 -0
  696. package/govendor/golang.org/x/net/http2/pipe.go +184 -0
  697. package/govendor/golang.org/x/net/http2/server.go +3239 -0
  698. package/govendor/golang.org/x/net/http2/server_common.go +268 -0
  699. package/govendor/golang.org/x/net/http2/server_wrap.go +217 -0
  700. package/govendor/golang.org/x/net/http2/transport.go +3084 -0
  701. package/govendor/golang.org/x/net/http2/transport_common.go +516 -0
  702. package/govendor/golang.org/x/net/http2/transport_wrap.go +583 -0
  703. package/govendor/golang.org/x/net/http2/unencrypted.go +32 -0
  704. package/govendor/golang.org/x/net/http2/write.go +381 -0
  705. package/govendor/golang.org/x/net/http2/writesched.go +253 -0
  706. package/govendor/golang.org/x/net/http2/writesched_common.go +90 -0
  707. package/govendor/golang.org/x/net/http2/writesched_priority_rfc7540.go +420 -0
  708. package/govendor/golang.org/x/net/http2/writesched_priority_rfc9218.go +226 -0
  709. package/govendor/golang.org/x/net/http2/writesched_random.go +81 -0
  710. package/govendor/golang.org/x/net/http2/writesched_roundrobin.go +121 -0
  711. package/govendor/golang.org/x/net/idna/idna.go +884 -0
  712. package/govendor/golang.org/x/net/idna/punycode.go +220 -0
  713. package/govendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
  714. package/govendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0
  715. package/govendor/golang.org/x/net/idna/trie.go +51 -0
  716. package/govendor/golang.org/x/net/idna/trieval.go +119 -0
  717. package/govendor/golang.org/x/net/internal/httpcommon/README.md +7 -0
  718. package/govendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
  719. package/govendor/golang.org/x/net/internal/httpcommon/gzip.go +132 -0
  720. package/govendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
  721. package/govendor/golang.org/x/net/internal/httpcommon/request.go +503 -0
  722. package/govendor/golang.org/x/net/internal/httpsfv/httpsfv.go +665 -0
  723. package/govendor/golang.org/x/sys/cpu/asm_aix_ppc64.s +17 -0
  724. package/govendor/golang.org/x/sys/cpu/asm_darwin_arm64_gc.s +12 -0
  725. package/govendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s +17 -0
  726. package/govendor/golang.org/x/sys/cpu/byteorder.go +66 -0
  727. package/govendor/golang.org/x/sys/cpu/cpu.go +357 -0
  728. package/govendor/golang.org/x/sys/cpu/cpu_aix.go +33 -0
  729. package/govendor/golang.org/x/sys/cpu/cpu_arm.go +73 -0
  730. package/govendor/golang.org/x/sys/cpu/cpu_arm64.go +191 -0
  731. package/govendor/golang.org/x/sys/cpu/cpu_arm64.s +35 -0
  732. package/govendor/golang.org/x/sys/cpu/cpu_darwin_arm64.go +67 -0
  733. package/govendor/golang.org/x/sys/cpu/cpu_darwin_arm64_other.go +31 -0
  734. package/govendor/golang.org/x/sys/cpu/cpu_darwin_x86.go +61 -0
  735. package/govendor/golang.org/x/sys/cpu/cpu_gc_arm64.go +12 -0
  736. package/govendor/golang.org/x/sys/cpu/cpu_gc_riscv64.go +11 -0
  737. package/govendor/golang.org/x/sys/cpu/cpu_gc_s390x.go +21 -0
  738. package/govendor/golang.org/x/sys/cpu/cpu_gc_x86.go +15 -0
  739. package/govendor/golang.org/x/sys/cpu/cpu_gc_x86.s +26 -0
  740. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go +12 -0
  741. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go +22 -0
  742. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c +37 -0
  743. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go +25 -0
  744. package/govendor/golang.org/x/sys/cpu/cpu_linux.go +15 -0
  745. package/govendor/golang.org/x/sys/cpu/cpu_linux_arm.go +39 -0
  746. package/govendor/golang.org/x/sys/cpu/cpu_linux_arm64.go +120 -0
  747. package/govendor/golang.org/x/sys/cpu/cpu_linux_loong64.go +22 -0
  748. package/govendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go +22 -0
  749. package/govendor/golang.org/x/sys/cpu/cpu_linux_noinit.go +9 -0
  750. package/govendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go +34 -0
  751. package/govendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go +173 -0
  752. package/govendor/golang.org/x/sys/cpu/cpu_linux_s390x.go +40 -0
  753. package/govendor/golang.org/x/sys/cpu/cpu_loong64.go +62 -0
  754. package/govendor/golang.org/x/sys/cpu/cpu_loong64.s +13 -0
  755. package/govendor/golang.org/x/sys/cpu/cpu_mips64x.go +15 -0
  756. package/govendor/golang.org/x/sys/cpu/cpu_mipsx.go +11 -0
  757. package/govendor/golang.org/x/sys/cpu/cpu_netbsd_amd64.go +47 -0
  758. package/govendor/golang.org/x/sys/cpu/cpu_netbsd_arm64.go +173 -0
  759. package/govendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go +65 -0
  760. package/govendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s +11 -0
  761. package/govendor/golang.org/x/sys/cpu/cpu_other_arm.go +9 -0
  762. package/govendor/golang.org/x/sys/cpu/cpu_other_arm64.go +11 -0
  763. package/govendor/golang.org/x/sys/cpu/cpu_other_mips64x.go +11 -0
  764. package/govendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go +12 -0
  765. package/govendor/golang.org/x/sys/cpu/cpu_other_riscv64.go +11 -0
  766. package/govendor/golang.org/x/sys/cpu/cpu_other_x86.go +11 -0
  767. package/govendor/golang.org/x/sys/cpu/cpu_ppc64x.go +16 -0
  768. package/govendor/golang.org/x/sys/cpu/cpu_riscv64.go +33 -0
  769. package/govendor/golang.org/x/sys/cpu/cpu_riscv64.s +17 -0
  770. package/govendor/golang.org/x/sys/cpu/cpu_s390x.go +172 -0
  771. package/govendor/golang.org/x/sys/cpu/cpu_s390x.s +57 -0
  772. package/govendor/golang.org/x/sys/cpu/cpu_sparc64.go +12 -0
  773. package/govendor/golang.org/x/sys/cpu/cpu_wasm.go +17 -0
  774. package/govendor/golang.org/x/sys/cpu/cpu_windows.go +26 -0
  775. package/govendor/golang.org/x/sys/cpu/cpu_windows_arm64.go +38 -0
  776. package/govendor/golang.org/x/sys/cpu/cpu_x86.go +259 -0
  777. package/govendor/golang.org/x/sys/cpu/cpu_zos.go +10 -0
  778. package/govendor/golang.org/x/sys/cpu/cpu_zos_s390x.go +25 -0
  779. package/govendor/golang.org/x/sys/cpu/endian_big.go +10 -0
  780. package/govendor/golang.org/x/sys/cpu/endian_little.go +10 -0
  781. package/govendor/golang.org/x/sys/cpu/hwcap_linux.go +71 -0
  782. package/govendor/golang.org/x/sys/cpu/parse.go +55 -0
  783. package/govendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go +53 -0
  784. package/govendor/golang.org/x/sys/cpu/runtime_auxv.go +16 -0
  785. package/govendor/golang.org/x/sys/cpu/runtime_auxv_go121.go +18 -0
  786. package/govendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go +26 -0
  787. package/govendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go +35 -0
  788. package/govendor/golang.org/x/sys/cpu/syscall_darwin_arm64_gc.go +54 -0
  789. package/govendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go +98 -0
  790. package/govendor/golang.org/x/sys/cpu/zcpu_windows.go +48 -0
  791. package/govendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +20 -0
  792. package/govendor/golang.org/x/sys/unix/asm_linux_sparc64.s +48 -0
  793. package/govendor/golang.org/x/sys/unix/asm_zos_s390x.s +4 -186
  794. package/govendor/golang.org/x/sys/unix/bpxsvc_zos.s +9 -9
  795. package/govendor/golang.org/x/sys/unix/fcntl_darwin.go +2 -2
  796. package/govendor/golang.org/x/sys/unix/mkerrors.sh +1 -1
  797. package/govendor/golang.org/x/sys/unix/ptrace_zos.go +537 -0
  798. package/govendor/golang.org/x/sys/unix/ptrace_zos_singlestep.go +425 -0
  799. package/govendor/golang.org/x/sys/unix/syscall_darwin.go +1 -0
  800. package/govendor/golang.org/x/sys/unix/syscall_freebsd.go +9 -0
  801. package/govendor/golang.org/x/sys/unix/syscall_linux.go +20 -1
  802. package/govendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +3 -3
  803. package/govendor/golang.org/x/sys/unix/syscall_netbsd.go +9 -0
  804. package/govendor/golang.org/x/sys/unix/syscall_unix_gc.go +1 -1
  805. package/govendor/golang.org/x/sys/unix/syscall_zos_s390x.go +0 -4
  806. package/govendor/golang.org/x/sys/unix/xattr_bsd.go +12 -12
  807. package/govendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +6 -0
  808. package/govendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +6 -0
  809. package/govendor/golang.org/x/sys/unix/zerrors_linux.go +32 -0
  810. package/govendor/golang.org/x/sys/unix/zerrors_linux_386.go +2 -0
  811. package/govendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +2 -0
  812. package/govendor/golang.org/x/sys/unix/zerrors_linux_arm.go +2 -0
  813. package/govendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +2 -0
  814. package/govendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +2 -0
  815. package/govendor/golang.org/x/sys/unix/zerrors_linux_mips.go +2 -0
  816. package/govendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +2 -0
  817. package/govendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +2 -0
  818. package/govendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +2 -0
  819. package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +2 -0
  820. package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +2 -0
  821. package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +2 -0
  822. package/govendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +2 -0
  823. package/govendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +2 -0
  824. package/govendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +2 -0
  825. package/govendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +11 -0
  826. package/govendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +11 -0
  827. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +159 -0
  828. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +159 -0
  829. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +159 -0
  830. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +159 -0
  831. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +159 -0
  832. package/govendor/golang.org/x/sys/unix/zsyscall_linux.go +28 -1
  833. package/govendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +3 -3
  834. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +159 -0
  835. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +159 -0
  836. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +159 -0
  837. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +159 -0
  838. package/govendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +13 -0
  839. package/govendor/golang.org/x/sys/unix/ztypes_linux.go +65 -36
  840. package/govendor/golang.org/x/sys/unix/ztypes_linux_386.go +6 -0
  841. package/govendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +7 -0
  842. package/govendor/golang.org/x/sys/unix/ztypes_linux_arm.go +6 -0
  843. package/govendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +7 -0
  844. package/govendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +7 -0
  845. package/govendor/golang.org/x/sys/unix/ztypes_linux_mips.go +6 -0
  846. package/govendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +7 -0
  847. package/govendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +7 -0
  848. package/govendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +6 -0
  849. package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +6 -0
  850. package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +7 -0
  851. package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +7 -0
  852. package/govendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +7 -0
  853. package/govendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +7 -0
  854. package/govendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +10 -5
  855. package/govendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +78 -0
  856. package/govendor/golang.org/x/text/.gitattributes +10 -0
  857. package/govendor/golang.org/x/text/CONTRIBUTING.md +26 -0
  858. package/govendor/golang.org/x/text/LICENSE +27 -0
  859. package/govendor/golang.org/x/text/PATENTS +22 -0
  860. package/govendor/golang.org/x/text/README.md +81 -0
  861. package/govendor/golang.org/x/text/cases/cases.go +162 -0
  862. package/govendor/golang.org/x/text/cases/context.go +376 -0
  863. package/govendor/golang.org/x/text/cases/fold.go +34 -0
  864. package/govendor/golang.org/x/text/cases/icu.go +61 -0
  865. package/govendor/golang.org/x/text/cases/info.go +82 -0
  866. package/govendor/golang.org/x/text/cases/map.go +816 -0
  867. package/govendor/golang.org/x/text/cases/tables15.0.0.go +2527 -0
  868. package/govendor/golang.org/x/text/cases/tables17.0.0.go +2642 -0
  869. package/govendor/golang.org/x/text/cases/trieval.go +217 -0
  870. package/govendor/golang.org/x/text/codereview.cfg +1 -0
  871. package/govendor/golang.org/x/text/collate/collate.go +402 -0
  872. package/govendor/golang.org/x/text/collate/index.go +32 -0
  873. package/govendor/golang.org/x/text/collate/option.go +239 -0
  874. package/govendor/golang.org/x/text/collate/sort.go +81 -0
  875. package/govendor/golang.org/x/text/collate/tables.go +73789 -0
  876. package/govendor/golang.org/x/text/currency/common.go +67 -0
  877. package/govendor/golang.org/x/text/currency/currency.go +185 -0
  878. package/govendor/golang.org/x/text/currency/format.go +220 -0
  879. package/govendor/golang.org/x/text/currency/query.go +152 -0
  880. package/govendor/golang.org/x/text/currency/tables.go +2629 -0
  881. package/govendor/golang.org/x/text/doc.go +16 -0
  882. package/govendor/golang.org/x/text/feature/plural/common.go +70 -0
  883. package/govendor/golang.org/x/text/feature/plural/message.go +244 -0
  884. package/govendor/golang.org/x/text/feature/plural/plural.go +262 -0
  885. package/govendor/golang.org/x/text/feature/plural/tables.go +552 -0
  886. package/govendor/golang.org/x/text/go.mod +3 -0
  887. package/govendor/golang.org/x/text/internal/catmsg/catmsg.go +417 -0
  888. package/govendor/golang.org/x/text/internal/catmsg/codec.go +407 -0
  889. package/govendor/golang.org/x/text/internal/catmsg/varint.go +62 -0
  890. package/govendor/golang.org/x/text/internal/colltab/collelem.go +374 -0
  891. package/govendor/golang.org/x/text/internal/colltab/colltab.go +105 -0
  892. package/govendor/golang.org/x/text/internal/colltab/contract.go +145 -0
  893. package/govendor/golang.org/x/text/internal/colltab/iter.go +178 -0
  894. package/govendor/golang.org/x/text/internal/colltab/numeric.go +236 -0
  895. package/govendor/golang.org/x/text/internal/colltab/table.go +275 -0
  896. package/govendor/golang.org/x/text/internal/colltab/trie.go +159 -0
  897. package/govendor/golang.org/x/text/internal/colltab/weighter.go +31 -0
  898. package/govendor/golang.org/x/text/internal/format/format.go +41 -0
  899. package/govendor/golang.org/x/text/internal/format/parser.go +358 -0
  900. package/govendor/golang.org/x/text/internal/internal.go +49 -0
  901. package/govendor/golang.org/x/text/internal/language/common.go +16 -0
  902. package/govendor/golang.org/x/text/internal/language/compact/compact.go +61 -0
  903. package/govendor/golang.org/x/text/internal/language/compact/language.go +260 -0
  904. package/govendor/golang.org/x/text/internal/language/compact/parents.go +120 -0
  905. package/govendor/golang.org/x/text/internal/language/compact/tables.go +1015 -0
  906. package/govendor/golang.org/x/text/internal/language/compact/tags.go +91 -0
  907. package/govendor/golang.org/x/text/internal/language/compact.go +29 -0
  908. package/govendor/golang.org/x/text/internal/language/compose.go +167 -0
  909. package/govendor/golang.org/x/text/internal/language/coverage.go +28 -0
  910. package/govendor/golang.org/x/text/internal/language/language.go +627 -0
  911. package/govendor/golang.org/x/text/internal/language/lookup.go +412 -0
  912. package/govendor/golang.org/x/text/internal/language/match.go +226 -0
  913. package/govendor/golang.org/x/text/internal/language/parse.go +608 -0
  914. package/govendor/golang.org/x/text/internal/language/tables.go +3494 -0
  915. package/govendor/golang.org/x/text/internal/language/tags.go +48 -0
  916. package/govendor/golang.org/x/text/internal/match.go +67 -0
  917. package/govendor/golang.org/x/text/internal/number/common.go +55 -0
  918. package/govendor/golang.org/x/text/internal/number/decimal.go +500 -0
  919. package/govendor/golang.org/x/text/internal/number/format.go +533 -0
  920. package/govendor/golang.org/x/text/internal/number/number.go +152 -0
  921. package/govendor/golang.org/x/text/internal/number/pattern.go +485 -0
  922. package/govendor/golang.org/x/text/internal/number/roundingmode_string.go +30 -0
  923. package/govendor/golang.org/x/text/internal/number/tables.go +1219 -0
  924. package/govendor/golang.org/x/text/internal/stringset/set.go +86 -0
  925. package/govendor/golang.org/x/text/internal/tag/tag.go +100 -0
  926. package/govendor/golang.org/x/text/language/coverage.go +187 -0
  927. package/govendor/golang.org/x/text/language/display/dict.go +92 -0
  928. package/govendor/golang.org/x/text/language/display/display.go +420 -0
  929. package/govendor/golang.org/x/text/language/display/lookup.go +253 -0
  930. package/govendor/golang.org/x/text/language/display/tables.go +53114 -0
  931. package/govendor/golang.org/x/text/language/doc.go +98 -0
  932. package/govendor/golang.org/x/text/language/language.go +605 -0
  933. package/govendor/golang.org/x/text/language/match.go +735 -0
  934. package/govendor/golang.org/x/text/language/parse.go +258 -0
  935. package/govendor/golang.org/x/text/language/tables.go +298 -0
  936. package/govendor/golang.org/x/text/language/tags.go +145 -0
  937. package/govendor/golang.org/x/text/message/catalog/catalog.go +365 -0
  938. package/govendor/golang.org/x/text/message/catalog/dict.go +133 -0
  939. package/govendor/golang.org/x/text/secure/bidirule/bidirule.go +346 -0
  940. package/govendor/golang.org/x/text/transform/transform.go +709 -0
  941. package/govendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
  942. package/govendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
  943. package/govendor/golang.org/x/text/unicode/bidi/core.go +1050 -0
  944. package/govendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
  945. package/govendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
  946. package/govendor/golang.org/x/text/unicode/bidi/tables17.0.0.go +2135 -0
  947. package/govendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
  948. package/govendor/golang.org/x/text/unicode/norm/composition.go +524 -0
  949. package/govendor/golang.org/x/text/unicode/norm/forminfo.go +296 -0
  950. package/govendor/golang.org/x/text/unicode/norm/input.go +109 -0
  951. package/govendor/golang.org/x/text/unicode/norm/iter.go +454 -0
  952. package/govendor/golang.org/x/text/unicode/norm/normalize.go +613 -0
  953. package/govendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
  954. package/govendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
  955. package/govendor/golang.org/x/text/unicode/norm/tables17.0.0.go +8104 -0
  956. package/govendor/golang.org/x/text/unicode/norm/transform.go +89 -0
  957. package/govendor/golang.org/x/text/unicode/norm/trie.go +54 -0
  958. package/govendor/manifest.txt +11 -2
  959. package/govendor/software.sslmate.com/src/go-pkcs12/.gitattributes +10 -0
  960. package/govendor/software.sslmate.com/src/go-pkcs12/LICENSE +28 -0
  961. package/govendor/software.sslmate.com/src/go-pkcs12/README.md +31 -0
  962. package/govendor/software.sslmate.com/src/go-pkcs12/bmp-string.go +63 -0
  963. package/govendor/software.sslmate.com/src/go-pkcs12/crypto.go +331 -0
  964. package/govendor/software.sslmate.com/src/go-pkcs12/errors.go +23 -0
  965. package/govendor/software.sslmate.com/src/go-pkcs12/go.mod +3 -0
  966. package/govendor/software.sslmate.com/src/go-pkcs12/internal/rc2/rc2.go +271 -0
  967. package/govendor/software.sslmate.com/src/go-pkcs12/mac.go +202 -0
  968. package/govendor/software.sslmate.com/src/go-pkcs12/pbkdf.go +184 -0
  969. package/govendor/software.sslmate.com/src/go-pkcs12/pkcs12.go +1000 -0
  970. package/govendor/software.sslmate.com/src/go-pkcs12/safebags.go +107 -0
  971. package/package.json +11 -1
  972. package/types/tsconfig.json +17 -0
  973. package/types/typenative-npm.d.ts +1327 -80
  974. package/types/typenative.d.ts +1312 -25
  975. package/.gitattributes +0 -1
  976. package/.github/workflows/ci.yml +0 -68
  977. package/.github/workflows/npm-publish-github-packages.yml +0 -88
  978. package/CHANGELOG.md +0 -1358
  979. package/CONTRIBUTION.md +0 -133
  980. package/conformance.md +0 -1450
  981. package/examples/README.md +0 -113
  982. package/examples/angular-templates/README.md +0 -141
  983. package/examples/angular-templates/bench.mjs +0 -173
  984. package/examples/angular-templates/dom-type-globals.d.ts +0 -21
  985. package/examples/angular-templates/dom-type-stubs.ts +0 -21
  986. package/examples/angular-templates/main.ts +0 -135
  987. package/examples/angular-templates/parity.mjs +0 -157
  988. package/examples/angular-templates/run-node.mjs +0 -69
  989. package/examples/angular-templates/vendor/angular/compiler/LICENSE +0 -21
  990. package/examples/desktop-notes/README.md +0 -106
  991. package/examples/desktop-notes/bench.mjs +0 -125
  992. package/examples/desktop-notes/main.ts +0 -131
  993. package/examples/desktop-notes/package-lock.json +0 -726
  994. package/examples/desktop-notes/package.json +0 -9
  995. package/examples/desktop-notes/ui.ts +0 -176
  996. package/examples/dupe-finder/README.md +0 -78
  997. package/examples/dupe-finder/bench.mjs +0 -120
  998. package/examples/dupe-finder/main.ts +0 -87
  999. package/examples/fibonacci/README.md +0 -89
  1000. package/examples/fibonacci/bench.mjs +0 -87
  1001. package/examples/fibonacci/main.ts +0 -21
  1002. package/examples/hello-world/README.md +0 -62
  1003. package/examples/hello-world/bench.mjs +0 -66
  1004. package/examples/hello-world/main.ts +0 -7
  1005. package/examples/json-server/README.md +0 -131
  1006. package/examples/json-server/bench.mjs +0 -263
  1007. package/examples/json-server/main.ts +0 -67
  1008. package/examples/mandelbrot-png/README.md +0 -63
  1009. package/examples/mandelbrot-png/bench.mjs +0 -95
  1010. package/examples/mandelbrot-png/main.ts +0 -98
  1011. package/examples/mandelbrot-png/preview.png +0 -0
  1012. package/examples/marked-cli/README.md +0 -175
  1013. package/examples/marked-cli/bench.mjs +0 -178
  1014. package/examples/marked-cli/main.ts +0 -410
  1015. package/examples/marked-cli/parity.mjs +0 -185
  1016. package/examples/marked-cli/vendor/marked/LICENSE +0 -44
  1017. package/examples/marked-cli/vendor/marked/VENDOR.md +0 -26
  1018. package/examples/openai-chat/README.md +0 -148
  1019. package/examples/openai-chat/bench.mjs +0 -175
  1020. package/examples/openai-chat/main.ts +0 -488
  1021. package/examples/react-compiler/README.md +0 -185
  1022. package/examples/react-compiler/bench.mjs +0 -181
  1023. package/examples/react-compiler/main.ts +0 -324
  1024. package/examples/react-compiler/parity.mjs +0 -362
  1025. package/examples/react-compiler/run-node.mjs +0 -90
  1026. package/examples/react-compiler/vendor/babel/LICENSE +0 -22
  1027. package/examples/react-compiler/vendor/babel/helper-globals/data/builtin-lower.json +0 -15
  1028. package/examples/react-compiler/vendor/babel/helper-globals/data/builtin-upper.json +0 -51
  1029. package/examples/react-compiler/vendor/charcodes/package.json +0 -25
  1030. package/examples/react-compiler/vendor/invariant/LICENSE +0 -21
  1031. package/examples/react-compiler/vendor/invariant/invariant.cjs +0 -51
  1032. package/examples/react-compiler/vendor/invariant/invariant.d.cts +0 -11
  1033. package/examples/react-compiler/vendor/invariant/types/LICENSE +0 -21
  1034. package/examples/react-compiler/vendor/jridgewell/gen-mapping/LICENSE +0 -19
  1035. package/examples/react-compiler/vendor/jridgewell/resolve-uri/LICENSE +0 -19
  1036. package/examples/react-compiler/vendor/jridgewell/sourcemap-codec/LICENSE +0 -19
  1037. package/examples/react-compiler/vendor/jridgewell/trace-mapping/LICENSE +0 -19
  1038. package/examples/react-compiler/vendor/js-tokens/LICENSE +0 -21
  1039. package/examples/react-compiler/vendor/js-tokens/index.cjs +0 -23
  1040. package/examples/react-compiler/vendor/js-tokens/index.d.cts +0 -13
  1041. package/examples/react-compiler/vendor/jsesc/jsesc.cjs +0 -337
  1042. package/examples/react-compiler/vendor/jsesc/jsesc.d.cts +0 -384
  1043. package/examples/react-compiler/vendor/jsesc/types/LICENSE +0 -21
  1044. package/examples/react-compiler/vendor/picocolors/picocolors.cjs +0 -75
  1045. package/examples/react-compiler/vendor/picocolors/picocolors.d.cts +0 -5
  1046. package/examples/react-compiler/vendor/picocolors/types.d.ts +0 -51
  1047. package/examples/react-compiler/vendor/react-compiler/LICENSE +0 -21
  1048. package/examples/react-compiler/vendor/stubs/babel-core.ts +0 -31
  1049. package/examples/react-compiler/vendor/stubs/debug.ts +0 -18
  1050. package/examples/react-compiler/vendor/stubs/js-tokens.d.ts +0 -13
  1051. package/examples/react-compiler/vendor/stubs/pretty-format.ts +0 -18
  1052. package/examples/react-compiler/vendor/zod/LICENSE +0 -21
  1053. package/examples/react-compiler/vendor/zod-validation-error/LICENSE +0 -9
  1054. package/examples/react-compiler/vendor/zod-validation-error/lib/utils/NonEmptyArray.ts +0 -5
  1055. package/examples/react-compiler/vendor/zod-validation-error/lib/utils/joinPath.ts +0 -49
  1056. package/examples/react-compiler/vendor/zod-validation-error/lib/utils/joinValues.ts +0 -48
  1057. package/examples/react-compiler/vendor/zod-validation-error/lib/utils/stringify.ts +0 -50
  1058. package/examples/react-compiler/vendor/zod-validation-error/lib/utils/titleCase.ts +0 -6
  1059. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/MessageBuilder.ts +0 -126
  1060. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/ValidationError.ts +0 -39
  1061. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/custom.ts +0 -12
  1062. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/errorMap.ts +0 -78
  1063. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/index.ts +0 -2
  1064. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidElement.ts +0 -12
  1065. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidKey.ts +0 -12
  1066. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidStringFormat.ts +0 -131
  1067. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidType.ts +0 -54
  1068. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidUnion.ts +0 -12
  1069. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/invalidValue.ts +0 -40
  1070. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/notMultipleOf.ts +0 -12
  1071. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/tooBig.ts +0 -76
  1072. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/tooSmall.ts +0 -76
  1073. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/types.ts +0 -27
  1074. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/errorMap/unrecognizedKeys.ts +0 -27
  1075. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/fromError.ts +0 -13
  1076. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/fromZodError.ts +0 -61
  1077. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/fromZodIssue.ts +0 -38
  1078. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/index.ts +0 -20
  1079. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/isValidationError.ts +0 -5
  1080. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/isValidationErrorLike.ts +0 -8
  1081. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/isZodErrorLike.ts +0 -11
  1082. package/examples/react-compiler/vendor/zod-validation-error/lib/v4/toValidationError.ts +0 -20
  1083. package/examples/react-compiler/vendor.mjs +0 -688
  1084. package/examples/todo-cli/README.md +0 -69
  1085. package/examples/todo-cli/bench.mjs +0 -89
  1086. package/examples/todo-cli/main.ts +0 -92
  1087. package/examples/yaml-cli/README.md +0 -152
  1088. package/examples/yaml-cli/bench.mjs +0 -265
  1089. package/examples/yaml-cli/main.ts +0 -251
  1090. package/examples/yaml-cli/parity.mjs +0 -156
  1091. package/examples/yaml-cli/vendor/yaml/LICENSE +0 -13
  1092. package/examples/yaml-cli/vendor/yaml/VENDOR.md +0 -25
  1093. package/govendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +0 -22
  1094. package/govendor/golang.org/x/sys/windows/types_windows_arm.go +0 -35
  1095. package/performance/README.md +0 -196
  1096. package/performance/any-dynamic.ts +0 -21
  1097. package/performance/any-record-view.ts +0 -20
  1098. package/performance/arr-hof.ts +0 -21
  1099. package/performance/arr-push-index.ts +0 -15
  1100. package/performance/arr-sort.ts +0 -21
  1101. package/performance/async-await.ts +0 -24
  1102. package/performance/class-dispatch.ts +0 -52
  1103. package/performance/events-emit.ts +0 -27
  1104. package/performance/exc-throw-rare.ts +0 -25
  1105. package/performance/exc-try-catch.ts +0 -26
  1106. package/performance/fn-closures.ts +0 -29
  1107. package/performance/fn-recursion-tree.ts +0 -31
  1108. package/performance/gen-for-of.ts +0 -46
  1109. package/performance/json-roundtrip.ts +0 -27
  1110. package/performance/map-delete.ts +0 -24
  1111. package/performance/map-string-keys.ts +0 -22
  1112. package/performance/num-arith-loop.ts +0 -14
  1113. package/performance/num-bitwise.ts +0 -21
  1114. package/performance/num-mod-int.ts +0 -16
  1115. package/performance/num-to-string.ts +0 -16
  1116. package/performance/obj-alloc.ts +0 -32
  1117. package/performance/regex-exec.ts +0 -29
  1118. package/performance/regex-site.ts +0 -28
  1119. package/performance/set-ops.ts +0 -20
  1120. package/performance/str-char-scan.ts +0 -35
  1121. package/performance/str-concat-plus.ts +0 -18
  1122. package/performance/str-concat.ts +0 -24
  1123. package/performance/str-short-scan.ts +0 -26
  1124. package/performance/str-split-join.ts +0 -23
  1125. package/performance/str-template.ts +0 -16
  1126. package/performance/union-switch.ts +0 -57
  1127. package/tsparser/check.go +0 -158
  1128. package/tsparser/go.mod +0 -14
  1129. package/tsparser/go.sum +0 -22
  1130. package/tsparser/main.go +0 -363
  1131. package/tsparser/tsparser.exe +0 -4
package/CHANGELOG.md DELETED
@@ -1,1358 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to TypeNative will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.6.2] - 2026-11-15
11
-
12
- ### Fixed
13
-
14
- - **Self-hosted native build:** `npm run build:native` failed with `cannot use
15
- typedClass (variable of type bool) as string value`. The transpiler typed
16
- `a && b` by its left operand, so a getter-lookup helper written as
17
- `leftGoType?.startsWith('*') && leftGoType.slice(1)` became a `bool` in the
18
- Go build. It is now written as a ternary that yields a string or
19
- `undefined`.
20
- - **`replace` with an inline `new RegExp(…, 'g')`:** only the first match was
21
- replaced, because the `g` flag was only seen on a regex literal or a
22
- `RegExp` read from a variable. Flags written out in `new RegExp(p, 'flags')`
23
- are now read at compile time, and any other `RegExp` expression (a call's
24
- result, flags computed at run time) is evaluated once and its `g` flag
25
- tested at run time. The self-hosted compiler relied on this to map string
26
- enums to `string` in `tnCallValueTyped`, so its build of
27
- examples/react-compiler failed with `duplicate case func(string,
28
- MemoizationLevel) MemoizationLevel in type switch`.
29
-
30
- ### Changed
31
-
32
- - **tsparser:** `github.com/go-json-experiment/json` bumped to v1.27.2.
33
-
34
- ## [0.6.1] - 2026-11-15
35
-
36
- ### Changed
37
-
38
- - **examples/react-compiler: faster than Node at 64 KB.** The React Compiler
39
- now runs a 64 KB component file in 615 ms vs Node's 1,030 ms (1.7x faster;
40
- it was 3.5x slower), and per call is 3.5x faster (100 vs 349 ms). Plain
41
- functions assigned to `NodePath.prototype` declare `this: NodePath`; that
42
- now types `__this` as the class, so Babel's per-node path maintenance
43
- (`visit`, `setScope`, `setContext`, `parentPath` walks) is direct field
44
- access instead of dynamic plan lookups. Dynamic calls of the program's own
45
- function types go through a generated `tnCallValueTyped` case per Go func
46
- type (no `reflect.Value.Call`), and optional calls to prototype methods
47
- added at run time are guarded dynamic calls. For large files the example
48
- compiles independent top-level functions in parallel worker processes and
49
- joins their output; under Node each worker re-imports the compiler, while a
50
- TypeNative worker starts from the compiled binary.
51
- - **Iterating class iterators through dynamic values:** `TnToArray` (used by
52
- spread, `Array.from`, destructuring and `for…of` on a dynamically typed
53
- value) recognizes a class's generator push form directly
54
- (`Symbol_iterator__seq`) and iterates it in place instead of finding
55
- `*[Symbol.iterator]()` through reflection, calling it and draining its
56
- channel on a goroutine. An interface-yield channel method also gets a direct
57
- type assertion. This is what Angular's `OpList` hit through an op's dynamic
58
- `handlerOps` / `trackByOps` fields; angular-templates' 64 KB run fell from
59
- about 600 ms to 305 ms (now 1.2x faster than Node), and per-call latency is
60
- 4.4x Node's (50 vs 219 ms).
61
- - **yaml-cli throughput:** `yaml --json` on a large, plain stream is split
62
- before the `---` lines that start its documents, and up to six worker
63
- processes compose runs of them and print their JSON arrays, which the main
64
- process joins. Directives, errors, warnings, CR line endings and
65
- collection-valued keys fall back to the normal `cli()` path (the example
66
- runs under Node too). On the 10 MB benchmark the complete process run is
67
- now 754 ms vs Node's 851 ms (median, 1.1x); the single-process path also
68
- got faster.
69
- - **Object conversions and dynamic writes:** conversion identity holds one
70
- weak pointer per conversion, sweeps dead entries in batches and keeps a
71
- recent cache; a fresh local object converted once is copied without an
72
- identity entry (`TnAsCopy`), and a conversion between two statically known
73
- struct types is emitted as a struct literal. `Object.assign({ defaults },
74
- typedSource)` sets the target's fields directly instead of through
75
- reflection, `obj[key] = v` on a plain object skips reflection
76
- (`TnSetProp`), and `s += chunk` for an untyped chunk appends in place
77
- instead of copying the whole string.
78
- - **List building:** a single-value `push` grows the backing slice by 2x
79
- (`TnPush`) rather than Go's 1.25x, whose repeated copies add up to about
80
- five times a long list's final memory.
81
- - **marked-cli throughput:** large markdown documents are parsed in up to six
82
- worker processes, one contiguous run of top-level sections each, with a
83
- sequential fallback (small inputs, reference link definitions, raw HTML
84
- blocks, CRLF, `--tokens`). On the example's 10 MB benchmark the complete
85
- process run is now 1.2x faster than Node (512 ms vs 596 ms); parity stays
86
- 2,859/2,859. The single-process parse also got faster: `[...s].length` /
87
- `[...s][i]` / `[...s].at(i)` no longer build rune arrays, truthiness-only
88
- `re.exec` runs `re.test`, nullable regex results box only on a match, greedy
89
- `[^x]+` runs use `IndexByte`, and the long-string ASCII cache and regex
90
- replacement builders no longer allocate per token.
91
-
92
- ### Fixed
93
-
94
- - **process.stdin:** `TnStdin` sets its `_stdinRef` hook through `setHook`
95
- again after the lazy emitter/hook state change; reading stdin no longer
96
- panics with `assignment to entry in nil map`.
97
- - **events.errorMonitor:** with only the two inline listeners, an `'error'`
98
- event calls an `errorMonitor` listener before the error listeners again (the
99
- lazy listener path skipped it, so the conformance probe saw `handler` first).
100
-
101
- ## [0.6.0] - 2026-11-13
102
-
103
- The React Compiler itself (`babel-plugin-react-compiler` + Babel + zod, ~470 vendored files)
104
- compiles React components and hooks to their auto-memoized form, natively, and an
105
- OpenAI-compatible chat client streams answers token by token. Getting there drove the round's
106
- transpiler fixes: JS object identity and callee write-back across Go conversions, one
107
- backtracking regex VM with JS semantics for every pattern, and module initialization in the
108
- import graph's evaluation order. TypeNative now requires Node.js 26. A `--profile` flag
109
- and two rounds of hot-path fixes (bitwise and `%` arithmetic, generators, Map / Set deletes,
110
- class dispatch, async functions and `JSON.parse`) narrow the gap with Node on the large
111
- examples: react-compiler runs 26% faster at 64 KB and angular-templates 17% faster.
112
-
113
- ### Added
114
-
115
- - **`--profile`:** the built program writes a CPU profile (`runtime/pprof`) to
116
- `$TYPENATIVE_CPUPROFILE` (default `cpu.pprof`) when it exits, on every exit
117
- path, for `go tool pprof`
118
- - **Performance probes:** `num-bitwise`, `num-mod-int`, `map-delete`,
119
- `gen-for-of`, `str-short-scan`, `str-concat-plus`, `regex-site`,
120
- `events-emit`, `async-await` and `exc-throw-rare`, covering what the large
121
- examples stress; `performance/README.md` lists each fixed and open cause
122
- - **examples/react-compiler:** the React Compiler (`babel-plugin-react-compiler` + Babel 7.29 parser/traverse/generator + zod 4, ~470 vendored files) compiling
123
- React components and hooks to their auto-memoized form, natively. The build
124
- drove a series of transpiler and runtime fixes (below); every fixture in
125
- `parity.mjs` — components, hooks, the compiler's pragmas, JSX outlining,
126
- TypeScript syntax and the error paths — now matches Node byte for byte,
127
- output, `// CompileSuccess` counts and error code frames included, and
128
- `bench.mjs` reports per-call latency and scaling
129
- - **JS object and array identity across Go conversions:** converting one
130
- object to another struct type gives the same converted object every time
131
- (Set / Map keys and `===` find it), and union and intersection members are
132
- views of the same memory; arrays stay shared through any-typed fields,
133
- getters, dynamic calls and `splice`; a callee's changes to a converted
134
- argument — an array, a Map or Set, an object's fields, through an
135
- override too — are written back to the caller's; `slice` copies
136
- - **JS semantics at the edges:** object-literal getters stay live (also when
137
- a function returns the literal as `{ value: T }`); `Object.prototype`
138
- methods read as values (`const toString = {}.toString`) run through
139
- `call` / `apply`; default parameters apply to an explicit or forwarded
140
- `undefined`; `null` stays apart from `undefined` where a function tests
141
- both; Map misses and unset optional enum fields fall back with `??`; keys
142
- written as `undefined` are own keys for `Object.keys`; `x.at(i)` and
143
- `?.push` work on arrays held as any
144
- - **Regex `v` flag (`unicodeSets`):** the backtracking VM now reads v-flag
145
- class set expressions: subtraction (`[\p{L}--[aeiou]]`), intersection
146
- (`[\p{Lu}&&[A-F]]`), nested and negated classes, and `\q{…}` strings, which
147
- are tried longest first. With `i`, each operand is case-folded before the set
148
- operation, as in JS. `v` implies unicode mode, and `re.unicodeSets` reports
149
- the flag. Until now these patterns went to RE2, which misread the class and
150
- matched the wrong text. Properties of strings (`\p{RGI_Emoji}`) aren't
151
- supported.
152
- - **examples/openai-chat:** a chat client for any OpenAI-compatible
153
- `/v1/chat/completions` API. Answers stream into the terminal token by token:
154
- `fetch` with a streaming response body (`response.body.getReader()`),
155
- hand-parsed server-sent events (`data:` lines, `[DONE]`, ignored keep-alive
156
- comments), an `AbortController` timeout, Ctrl+C aborting the answer in flight,
157
- and a `for await` readline REPL with `/clear` and `/system`. Targets the free
158
- OpenRouter API by default (`google/gemma-4-31b-it:free`), and OpenAI, Ollama
159
- or any other compatible server through `--base-url`. `bench.mjs` stands up a
160
- local mock SSE API, checks Node and TypeNative stdout byte for byte, then
161
- times full one-shot runs (1.2x faster per answer, 716 vs 875 ms median — both
162
- runtimes mostly wait on the mock's paced chunks). The example works around
163
- two catch-block sharp edges (`return`/`continue` inside `catch` compiles
164
- wrong or not at all), documented in its README
165
- - **conformance:** `lib-regex-engine`, `lib-string-long-slices` and
166
- `semantics-dynamic-field-access`, with expected values checked against Node
167
-
168
- ### Changed
169
-
170
- - **Node 26 and ES2025:** TypeNative now requires Node.js 26 or newer
171
- (`engines`), and CI runs on Node 26. Scaffolded projects (`--new`) and the
172
- default type-check (no `tsconfig.json`) target `es2025` instead of `es2020`,
173
- so target-gated syntax such as the regex `v` flag, regex modifiers and
174
- duplicate named groups type-checks. `useDefineForClassFields: false` is set
175
- alongside it to keep TypeScript's classic field order (parameter properties
176
- before field initializers), which is what TypeNative compiles. Existing
177
- projects that keep `target: es2020` are unaffected.
178
- - **Regex engine:** every `TnRegex` now runs on one backtracking VM with JS
179
- semantics (`src/regex_vm.ts`), replacing the closure-based backtracker and RE2
180
- as the first choice. Programs compile lazily and once per pattern and flags. A
181
- match allocates only its result, and first-byte sets, literal prefixes and
182
- anchors reject most calls without running anything. RE2 stays as a fallback
183
- for patterns it can run that exhaust the VM's step budget, so those keep their
184
- linear-time guarantee. Regex literals used inline get the same engine; only
185
- Node built-ins' arguments and `/(?<name>…)/.exec(s)` stay on plain RE2
186
- - **Dynamic values:** property reads and writes on objects held as any go through
187
- plans cached per type and key instead of reflection; a read consumed on the
188
- spot doesn't box its value; `obj.list.push(x)` appends in place instead of
189
- converting the array on every push; object-type conversions are compiled per
190
- pair of types; `Object.assign` between objects uses the same plans; `switch`
191
- on a dynamic value over string literals is a Go string switch
192
- - **Strings:** long strings grown with `+=` on a dynamic value are amortized;
193
- short ASCII strings need no code-point index
194
- - **Performance:** on 10 MB of input, examples/marked-cli went from 5.5x to 1.6x
195
- slower than Node and examples/yaml-cli from 3.8x to 1.9x (the native binary
196
- now finishes first up to about 1–2 MB per run), and marked's ReDoS inputs from
197
- over 72 s to 4.7 s in total
198
- - **Hot paths:** bitwise operators no longer call `math.Mod` (`TnInt32`
199
- converts in-range values directly, literal operands fold, nested bitwise
200
- expressions stay int32); `%` on integers is an `int64` remainder; a sync
201
- generator iterated by `for…of` runs as a Go range function instead of a
202
- goroutine in lockstep (break and throw keep JS's `finally` / `catch`
203
- semantics); `Map` / `Set` deletes are O(1) and key handling takes no
204
- reflection; `s = s + …` appends in place like `s += …`; `charCodeAt` over
205
- short strings no longer rescans the string; `toFixed` skips exact
206
- 1100-digit formatting except on ties; any-typed objects read their map
207
- first; `Record<string, any>` views of an any object share its map;
208
- common listener shapes are called without reflection; regex literals
209
- share their compiled program per site. Probe medians: bitwise 2160 →
210
- 129 ms, `%` loops 4527 → 162 ms, generators 1843 → 12 ms (now 4.4x faster
211
- than Node), `Set` churn 1556 → 97 ms. examples/react-compiler at 64 KB
212
- runs 26% faster (7.5 s → 5.6 s, interleaved against the previous build)
213
- - **Dispatch, async and JSON hot paths:** a generator method called on a
214
- value typed as a base class or interface (`unit.ops()`) runs its push form
215
- through `TnCallSeq_<m>`, lazily as JS does (it used to collect every value
216
- before the loop ran), and spread / `Array.from` of a generator collect its
217
- push form into a typed slice; a method call through a class or interface
218
- hierarchy whose implementations share a signature goes through a typed
219
- dispatcher, without boxing; async functions that never wait on anything
220
- pending run on the caller's goroutine, and settling a promise no longer
221
- allocates when nobody waits; `JSON.parse(text) as T[]` decodes straight
222
- into `T` when the text matches it; `for` loop counters and bitwise-result
223
- consts are Go integers. Probe medians: `async-await` 1985 → 201 ms,
224
- `class-dispatch` 709 → 124 ms, `json-roundtrip` 347 → 97 ms, `num-bitwise`
225
- 128 → 114 ms; examples/angular-templates at 64 KB runs 17% faster (721 →
226
- 601 ms, interleaved against the previous build)
227
-
228
- ### Fixed
229
-
230
- - **`null` is not `undefined`:** `typeof null` is `"object"` (it gave
231
- `"undefined"`), `String(null)` and `null` in `+` / template strings give
232
- `"null"` (`String(null)` printed `<nil>`), and `null` declared or assigned
233
- into an `any` / `unknown` variable stays JS null
234
- - **Classes with `*[Symbol.iterator]()`:** instances destructure
235
- (`const [a, b] = bag`, reading only as many values as are bound, so an
236
- endless iterator ends and its `finally` runs), spread into call and `new`
237
- arguments (`Math.max(...bag)`, `f(...bag)`), and `bag[Symbol.iterator]()`
238
- is a generator of its own; subclasses inherit all of it. Spreads that are
239
- not the only argument of a rest parameter (`f(1, ...xs, 2)`,
240
- `f(...xs, ...ys)`) now compile, for arrays too
241
- - **Spread of a generator into arguments:** `f(...gen())` into a rest
242
- parameter failed to compile, and `xs.push(...unit.ops())` through a
243
- dynamic receiver asserted the generator's channel to an array
244
- - **`(-Infinity).toFixed(n)`** returns `"-Infinity"` (it printed `-Inf`)
245
-
246
- - **Namespaces of types only:** `namespace Tokens { export interface Def … }`
247
- is flattened like any namespace (`Tokens_Def`) instead of being dropped, so
248
- `Tokens.Def` resolves to its declaration (an unmatched regex group stored in
249
- one of its `string` fields stays `undefined` and `JSON.stringify` leaves it
250
- out: marked's `--tokens` printed `"title": ""` for a link definition without
251
- a title). Only type references `Ns.T` are rewritten for such a namespace, so
252
- a class merged with it keeps its value reads (`Scope.x`, `typeof Scope.x`)
253
-
254
- - **Converting an object to a wider struct no longer reads or writes past
255
- it:** a conversion whose source struct's fields are a prefix of the
256
- target's (a member held in a merged union's slot) used to view the source's
257
- memory as the target, so the target's extra fields lay past the object — in
258
- the next object, or in size-class slack the garbage collector doesn't scan
259
- for pointers. Such a view is now made only where the object's memory is
260
- known to cover the target: a union narrowed to a member and widened back,
261
- or an object literal allocated union-sized (an object literal whose struct
262
- is a strict prefix of merged unions now gets room for their fields, with
263
- the pointer layout they share, so a member held in a union's slot stays the
264
- one object). Every other such conversion copies, through the identity
265
- cache. (A literal's struct read as the interface it matches plus the
266
- interface's key list `__keys` read the key list from whatever followed
267
- the literal: `JSON.stringify` crashed on marked's table cells)
268
- - **Module initialization order:** a program's module-level code now runs in
269
- the import graph's evaluation order, as JS evaluates it — each module after
270
- the modules it imports, with an import cycle's back edge not waiting (the
271
- way Node starts evaluating a cycle mid-way through a module). It used to be
272
- the emission order, which a cycle (the React Compiler's entrypoint barrels,
273
- zod's) evaluates differently, leaving re-exported values uninitialized.
274
- Imports whose bindings the code never uses as values — which tsc's emit
275
- elides — no longer order inits either
276
- - **`new F(…)` on a constructor-function value** now has JS `new` semantics:
277
- the function runs with `this` a fresh object, which it may return or fill
278
- (zod's `$constructor` factories read `this`); it used to be a plain call,
279
- so a function reading `this` saw nothing
280
- - **`fn.bind(…)` on a function value held as any** returns a bound function
281
- (with the bound `this` and prepended arguments) instead of failing with
282
- "bind is not a function"
283
- - **`Object.assign(fn, props)`** copies the properties onto the function
284
- value, where `fn.prop` reads them, instead of dropping them
285
- - **`C.prototype[k] = fn` with a computed key** adds the method to the
286
- class's prototype (its instances call it with `this` the instance) instead
287
- of failing
288
- - **A dynamic array method whose name a class or object literal declares
289
- too** (`values.map(…)` beside a `Result.map`) runs the array method on
290
- arrays and dispatches to the class on class instances, decided at run time
291
- - **`x ??= v` on a nullable array variable** tests the reference itself
292
- instead of dereferencing it, which panicked when it was unset
293
- - **An empty object literal (`{}`) is no longer a zero-size Go value** — Go
294
- gives every zero-size value the same address, which made every `{}` in a
295
- program one shared object (each zod schema's internals landed in one place,
296
- every schema reading the last-written definition)
297
- - **Properties set on dynamic objects** are keyed by the object itself, so a
298
- garbage-collected object's address being reused cannot hand its properties
299
- to the new object
300
- - **`Object.assign`/spread into a fresh object** skips a struct's internal
301
- `__`-prefixed fields
302
- - **A property assigned a value its field's Go type can't hold** now replaces
303
- the property, as in JS: the field reads as undefined and the value is kept
304
- beside the object (`Object.defineProperty`-style visitors — Babel's traverse
305
- `explode` replaces a visitor function with `{ enter: fn }`) instead of
306
- leaving the stale value readable and dropping the assignment. Reads fall
307
- through a nil reference field to what was set beside the object, and
308
- `Object.defineProperty` with a getter/setter now defines a real accessor on
309
- class instances too (Babel's ParseError computes its `message` in a getter
310
- that self-assigns); it used to silently support them only on dynamic objects
311
- - **A call's argument converted to a copy the callee changes** is written back
312
- at every statement position (plain calls, `x = f(op)`, `const x = f(op)`,
313
- `return f(op)`), including arguments written `node as SomeType` and calls
314
- through a mixin's virtual table, when the callee mutates the parameter's
315
- fields — directly or by passing it on to a function that does. The fields it
316
- changes are copied back to the original object, and ones the original's type
317
- has no slot for are kept beside it (Babel's parser passes its nodes between
318
- `parseExport`/`maybeParseExportDeclaration` and reads the fields back on the
319
- original); the copy's changes used to be lost, emptying the parse result
320
- - **`arr.push(x)` on an array read out of a container** (`aliases[k].push(x)`,
321
- a Map's array value) stores the appended array back into the container, as
322
- push mutates it in JS; it used to append to a copy and drop it, which left
323
- @babel/types' alias tables empty and its node validators rejecting every node
324
- - **A class instance passed where an interface type is expected** converts
325
- with the properties it carries beyond its class filling the interface's
326
- fields (Babel's parser keeps `imported`/`local` of an import specifier on a
327
- bare Node); the conversion used to build a zero-filled struct
328
- - **`f?.call(thisArg, …)` on a function value** calls nothing when f is unset
329
- (an optional callback parameter's Go func type is nil); it used to deref nil.
330
- A `do { … = this.parseSubscript(…, state) } while (!state.stop)` also no
331
- longer loops forever: the state object the callee writes through the
332
- converted parameter is written back
333
- - **An intersection type alias** (`ParseResult<File> = File & { … }`) compiles
334
- to a struct with every member's fields, and an interface renamed for a
335
- cross-module name collision still resolves its fields (and shadows a Node
336
- global's type) through the original name — the parser's `File` used to
337
- convert to a 3-field struct and Node's `File` global type leaked into Babel's
338
- - **A nullable array parameter with a default** (`tokens: Token[] | null =
339
- null`) reads as nil when absent instead of dereferencing nil
340
- - Optional chain calls guard the receiver, and a function's result type drives
341
- `return f(…)` conversions again after the write-back change
342
- - **A destructured binding of an object's array field** binds the array
343
- itself, as in JS: push/pop/splice through it mutate the field's array
344
- (`const { context } = this.state` then `context.push(…)` in Babel's JSX
345
- tokenizer); it used to bind a copy and drop every mutation, flattening the
346
- tokenizer's element context stack
347
- - **An array stored into a dynamic object is kept as a reference**, as JS
348
- arrays are shared: a push through any binding of the value reaches the
349
- object's entry (`(ids[name] = ids[name] || []).push(…)` building Babel
350
- traverse's Scope binding tables); the push used to append to a copy and
351
- never register a binding, which rejected every node in Scope's validators.
352
- `push`/`pop`/`shift`/`unshift` work on such references held as any
353
- - **`x.push(…)` on an expando-stored array** (a bare parser Node's `body`)
354
- appends to the array the object holds; it used to append to a copy and drop
355
- it, which emptied every statement list the compiler's lowering walked
356
- - **A mixin virtual method call returns its implementations' result** even
357
- when an abstract declaration types it `: void` (Babel:
358
- `return this.parseObjPropValue(prop, …)` over an
359
- `abstract parseObjPropValue(…): void`); the returned node used to be
360
- dropped, which made the compiler lower every function body to nothing
361
- - **conformance:parallel:** example builds get the 10-minute budget the
362
- sequential runner already gave them (the vendored-package examples
363
- transpile tens of thousands of lines and go build the result — the React
364
- Compiler example used to be killed at 90 s and reported as a bare `exit 1`),
365
- and the largest example runs alone before the pack
366
- - `.`, `^` and `$` follow JS's line terminators in every regex, `[]` and `[^]`
367
- mean what they do in JS, captures reset on each loop iteration, and `\p` is a
368
- property only with the `u` flag
369
- - `\k<name>` in a regex literal panicked in RE2
370
- - Slices of a long non-ASCII string rebuilt its whole index each time, making a
371
- lexer over non-ASCII input quadratic
372
-
373
- ## [0.5.0] - 2026-11-01
374
-
375
- The `yaml` package's own CLI, compiled from its unmodified TypeScript source, as the first
376
- flagship example: 100% output parity with Node on the yaml-test-suite in all four modes. Getting
377
- there took transpiler fixes across the board, each with a conformance probe.
378
-
379
- The second flagship example is the `marked` package's own CLI, compiled from marked's unmodified
380
- TypeScript source: 100% output parity with Node on marked's spec suites (CommonMark, GFM and its
381
- own tests, ReDoS inputs included) in three modes. Its fixes are listed under **marked** below.
382
-
383
- ### Added
384
-
385
- - **Native app windows:** programs can open webview windows through the
386
- `@webviewjs/webview` API, so the same source runs under Node.js (the npm package) and compiled
387
- (built in). Windows embeds the system WebView2 through the vendored, pure-Go
388
- `jchv/go-webview2`; macOS and Linux, and Windows without the WebView2 runtime, open Chrome, Edge
389
- or Chromium in app mode. No cgo, and cross-compiling still works. The macOS and Linux path builds
390
- in CI but has not been run on those systems
391
- - **`--gui`:** builds a windowed app with no console window on Windows (ignored for other targets)
392
- - **examples/marked-cli:** marked v18.1.2 vendored unpatched (`vendor/marked/VENDOR.md`),
393
- `main.ts` porting upstream's `bin/main.js`, `parity.mjs` (2,859 cases: marked's commonmark,
394
- gfm, new, original and redos specs in default, `--no-gfm` and `--tokens` modes, compared byte
395
- for byte with Node) and `bench.mjs` (per-call latency on marked's README, throughput on ~10 MB
396
- of generated markdown)
397
- - **marked:** function declarations inside functions and blocks (hoisted; async and generator
398
- ones too); `f.apply` / `f.call` on functions held as `any`; `Ns.T` of a namespace another
399
- module declares; generic interfaces used without type arguments, interfaces extending
400
- `Omit<>` / `Pick<>` / `Partial<>`, open object types and array types with properties
401
- (`T[] & { links: L }`); `process.stdout.write(data, callback)`; `split(sep, limit)` with a
402
- RegExp
403
-
404
- - **examples/yaml-cli:** yaml v3.0.0-2 vendored unpatched (`vendor/yaml/VENDOR.md`), `main.ts`
405
- porting upstream's `bin.js`, `parity.mjs` (1,608 cases from yaml-test-suite data-2022-01-17
406
- in default, `--json`, `valid` and `lex` modes, compared byte for byte with Node) and
407
- `bench.mjs` (per-call latency on a docker-compose.yml, throughput on ~10 MB of generated
408
- Kubernetes manifests)
409
- - `new Map(iterable)` from Maps, iterators, generators and `Object.entries`; plain objects and
410
- arrays as Map keys and Set members, by identity (they panicked as unhashable); generic type aliases
411
- (`type WithId<T> = T & { id: number }`); instantiation expressions (`g<number>`) and explicit
412
- type arguments in call results; `typeof f` as a function type
413
- - `emitWarning(warning, type)`; `JSON.stringify(buffer)` as `{ type: 'Buffer', data }`
414
-
415
- ### Changed
416
-
417
- - **examples/desktop-notes:** the UI now opens in a real webview window under both Node.js and
418
- TypeNative, instead of launching Edge or Chrome with `--app`. Closing the window ends the app
419
- directly, so the `/api/bye` beacon and the heartbeat timeout are gone. Running it under Node.js
420
- now needs `npm install` in the example folder
421
-
422
- ### Fixed
423
-
424
- - **marked — arrays:** arrays are shared as in JS: an object type's array field, an `any[]`
425
- variable and a parameter holding one array see each other's pushes, also through `any`
426
- (`tok.tokens.unshift(…)`); a method returning its array argument returns that array
427
- - **marked — regexes:** JS escapes (`\xHH`, `\u{…}`, `\cJ`, `\p{…}`, `\k<name>`) and JS's
428
- Unicode `\s` in every pattern, also in the backtracking engine; RegExp values stored in
429
- objects, built at run time and called through `any`; regexes that look behind the match
430
- (`^`, `\b`) at a non-zero offset; unmatched groups stay `undefined` through consts,
431
- conditionals and `string` fields (left out of JSON)
432
- - **marked — strings and objects:** `toUpperCase` / `toLowerCase` map case as JS does (`ß` →
433
- `SS`, `İ` → `i̇`, final `ς`); `trim` uses JS's whitespace; `replace` with a `string | RegExp`
434
- pattern or a function value; JSON key order of object literals that list keys in another
435
- order than their type; `string | null` fields keep `null` and `undefined` apart (an optional
436
- one is an any field; a required one is written as `null` by `JSON.stringify`)
437
- - **marked — type inference:** `let x;` assigned on every path holds its value type; long call
438
- chains on a fluent builder (`edit(re).replace(…).replace(…)…`) no longer take exponential time
439
- (inference is memoized per query); module-level names a local shadows; a `for…of` whose body
440
- never reads its variable compiles
441
- - **marked — performance:** the regex backtracker works on byte offsets (no rune conversion of
442
- the input per match), repeats a single character class without allocating and tests ASCII
443
- against a table; regexes skip ahead with a first-byte prefilter (an anchored one fails at
444
- once) instead of running RE2 over the rest of a long input; strings built with `+=` in a loop
445
- are `strings.Builder`s. Rendering is now linear in the input
446
- - **marked — self-hosting:** the native compiler builds and `npm run bootstrap:check` holds
447
- with this round's changes: a function literal stored where a function type is expected takes
448
- that type's (plain slice) array parameters, and a function value with array-reference
449
- parameters is adapted where plain slices are expected; a string-method name that some object
450
- literal's function also has (`x.startsWith(…)` on an any value) runs the string method on a
451
- string; functions in a `Record<K, F>` dictionary no longer count as such methods; a `+=`
452
- string accumulator used in a closure stays a plain string
453
- - **Regexes:** unmatched groups are `undefined`; `new RegExp(src, 'g' | 'y')` keeps its flags;
454
- `$&`, `` $` ``, `$'`, `$<name>` and `$$` replacements; replacer callbacks get the match offset
455
- and the input
456
- - **Objects:** `Object.assign({}, typed, overrides)` keeps the type and its function fields, and
457
- an explicit `undefined` override clears; integer-like keys of plain objects come first;
458
- `x.constructor` on any values; `null` in JSON and `any` data stays `null` (not `undefined`)
459
- - **Classes:** a class picked at run time or passed as `new (…) => T` constructs; `this.name` in
460
- an Error subclass; optional array parameters passed on to defaulted ones (`super(items)`);
461
- `x as unknown as T[]` returns the value as is
462
- - **Numbers:** `toFixed` rounds ties away from zero, also on `any` values and in callbacks
463
- - **Control flow:** `for (; …; a, b)` with no initializer; function properties assigned twice;
464
- unread `for (const [k, v] of map)` bindings; `instanceof Date` narrowing
465
- - **Type inference:** user-defined type guards (`(t): t is string`) narrow their argument; a
466
- conditional's branches are typed with the condition's narrowing; array callbacks' locals are
467
- typed from their own declarations; `o?.m()` and `o?.push(x)` on any values don't call through
468
- a nullish `o`; `flatMap` callbacks returning any values; a function declared to return
469
- `T[] | undefined` keeps `undefined` (it was an empty array); `xs[i] ?? d` over
470
- `(T | undefined)[]` elements; object literals assigned into any
471
- slots stay extensible
472
- - **Self-hosting:** the native compiler builds again (`npm run build:native`; it also failed on
473
- 0.4.2's coverage code) and `npm run bootstrap:check` holds: it turns its own source into the
474
- same Go as the Node CLI. The compiler's code no longer reads missing `Map` / `Record` keys
475
- as `undefined` (natively they read as `''`)
476
- - **Performance:** string positions on long inputs no longer rebuild their code-point index per
477
- regex match (quadratic lexing); struct field lookups and struct-to-struct copies are cached
478
-
479
- ## [0.4.2] - 2026-10-28
480
-
481
- `node:test` reporters, `run()`, coverage, snapshots and member mocks; four runnable examples
482
- with Node-vs-TypeNative benchmarks, examples type-checked and built by the conformance suite,
483
- and compiler fixes for names that shadow Go types, rest destructuring, number formatting, and
484
- `Number()` on optional values.
485
-
486
- ### Added
487
-
488
- - **`node:test`:**
489
- - `run({ files })`: files with literal paths compile in as entry points and run as child
490
- processes; their events stream back on a TestsStream — top-level numbering continues across
491
- files, child output becomes `test:stdout` / `test:stderr`, per-file summaries and coverage
492
- merge, and listeners get typed data (`run(…).on('test:fail', (data) => …)`)
493
- - coverage with `--experimental-test-coverage`: programs that import `node:test` count what
494
- runs over V8-style source ranges (functions, blocks, ternary arms, `&&` / `||` / `??`
495
- operands, class field initializers), with `node:coverage ignore` comments, `--test-coverage-include` /
496
- `-exclude` and the `-lines` / `-branches` / `-functions` thresholds; the lcov records and
497
- the tap / spec coverage table match Node's output
498
- - snapshots: `t.assert.snapshot` / `t.assert.fileSnapshot` with `--test-update-snapshots`
499
- (Node's `<test file>.snapshot` format), `snapshot.setDefaultSnapshotSerializers` /
500
- `setResolveSnapshotPath`; a missing file or entry names the update flag
501
- - `mock.method` / `mock.getter` / `mock.setter` on object literals, class instances
502
- (inherited members included, other instances unaffected) and namespace functions
503
- (`console.log`, `Math.random`, …); `.mock` reads the call record, `t.mock` restores after
504
- each test
505
- - failing tests report their `location` (`file:line:col`) in TAP, spec and junit
506
- - `--test-reporter-destination` pairs with `--test-reporter` (a file, `stdout` or `stderr`)
507
- - **`node:test/reporters`:** `tap` / `dot` / `junit` as generator functions over an event
508
- source (an array, an async generator, a stream such as `run()`'s) and `spec` / `lcov` as
509
- Transform streams for `compose()` — Node's output, byte for byte
510
- - **Streams:** `compose()` (pipe into a stream, or hand the source to a function — an async
511
- generator over the chunks, a reporter), and `.on()` / `.once()` return the stream, for
512
- chaining as in Node
513
- - **Types:** `AsyncIterable<T>` / `AsyncIterableIterator<T>` / `AsyncGenerator<T>` map to
514
- channels (like `Promise<T>`), so async-iterable parameters type-check
515
- - **Examples:** `todo-cli`, `dupe-finder`, `mandelbrot-png` and `desktop-notes` (a notes app in an
516
- Edge/Chrome app window), each with a Node-vs-TypeNative benchmark
517
- - **Conformance:** every `examples/*/main.ts` is type-checked and built by the suite as
518
- `example-<name>`
519
-
520
- ### Changed
521
-
522
- - `conformance.md` lists npm packages published only as JavaScript/CommonJS as 🚫 (their
523
- implementations have no types to compile from), not ❌
524
-
525
- ### Fixed
526
-
527
- - **Object-literal methods:** reading one as a value (`const f = obj.method`) no longer calls
528
- it; getters still run on read, including when destructured (`const { double } = calc`)
529
- - **`node:stream`:** programs that use streams but not `util.inspect` compile again (a
530
- `compose()` error message referenced `util.inspect`'s helper)
531
- - **Names:** variables and parameters named like Go types (`string`, `bool`, `int32`, ...) no
532
- longer shadow the type; methods named like Go builtins (`copy()`, `len()`, `static make`) are
533
- callable (the declaration was renamed, the call wasn't), and inherited methods named like Go
534
- keywords (`range()`) compile
535
- - **Destructuring:** `const [a, ...rest] = arr` gives `rest` the remaining elements (it compiled to
536
- a single element)
537
- - **Numbers:** `String(n)`, templates and `JSON.stringify` print non-integers in plain notation
538
- from `1e-6` up to `1e21` (`1761603012345.678`, not `1.761603012345678e+12`), and exponents
539
- without padding (`1e-7`, not `1e-07`)
540
- - **`Number()`:** converts optional strings and booleans (`Number(s)` with `s: string | undefined`
541
- gave `NaN`)
542
- - **Conformance:** the detached child-process probe no longer spawns Unix `sleep` on Windows
543
-
544
- ## [0.4.1] - 2026-10-24
545
-
546
- Node-accurate JSON (`stringify` with spacing and replacers, `parse` with a reviver, and JSON
547
- modules), regexes with JS semantics that no longer re-scan the whole string on global matches,
548
- `Date` and error-stack parity, generator iterator helpers, `go:embed` and
549
- `go:runtime/coverage`, seven more Go bridge packages, and `async` calls that start when the
550
- statement runs.
551
-
552
- ### Added
553
-
554
- - **`JSON.stringify`:**
555
- - `space` (number or string) with Node's layout
556
- - replacer functions and key lists
557
- - `toJSON()` methods
558
- - Dates as ISO strings, `Map` / `Set` as `{}`
559
- - `TypeError`s for circular structures and bigints
560
- - **`JSON.parse`:** reviver, and a `SyntaxError` for invalid JSON (it returned `null`)
561
- - **Arrays:** writing past the end grows the array
562
- - **Classes:** polymorphic `this` return types (fluent builders), and `obj[key]` on class
563
- instances and typed objects
564
- - **Generators:** iterator helpers (`map`, `filter`, `take`, `drop`, `flatMap`, `toArray`,
565
- `forEach`, `some`, `every`, `find`, `reduce`), `Iterator.from` and `next()`
566
- - **Weak references:** `WeakRef` / `FinalizationRegistry`
567
- - **`Date`:**
568
- - `new Date(string)` (ISO and the formats `toString` / `toUTCString` produce), and
569
- `new Date(y, m, d, …)` in local time
570
- - `Date.parse`, the setters (`setHours`, `setUTCDate`, …), `getTimezoneOffset`
571
- - `toUTCString`, `toLocale*String` (en-US)
572
- - Node's `toString` format for `String(date)` and templates
573
- - Invalid Dates (`getTime()` is `NaN`)
574
- - **Errors:** `err.stack` lists the TS frames (`at fn (file.ts:line)`); `AggregateError`
575
- - **Functions:** `fn.bind`, `fn.name`, `fn.length`; `apply` on non-variadic functions, and
576
- `call` / `apply` on function declarations
577
- - **Statics:** `Promise.withResolvers`, `Promise.try`, `Object.is`, `Object.groupBy`,
578
- `Map.groupBy`, `Array.of`, `Symbol.for` / `keyFor` / `description`, `BigInt()`,
579
- `BigInt.asIntN` / `asUintN`
580
- - **`Number`:** `toExponential`, `isSafeInteger`, `parseInt` / `parseFloat`, `MIN_VALUE`,
581
- `NEGATIVE_INFINITY`
582
- - **`Math`:** `fround`, `imul`, `clz32`, `asinh` / `acosh` / `atanh`, `sumPrecise`
583
- - **`String`:** `codePointAt`, `String.fromCodePoint`, `substr`, `trimLeft` / `trimRight`,
584
- `isWellFormed` / `toWellFormed`, `toLocaleUpperCase` / `toLocaleLowerCase`, `split` limit,
585
- `lastIndexOf` position
586
- - **`process`:** `stdout.columns` / `rows` / `getWindowSize()` (and `stderr`),
587
- `stdin.setRawMode` / `isRaw` (undone at exit), `umask`, on Linux, macOS, FreeBSD and Windows
588
- - **`node:readline`:** `emitKeypressEvents` and `'keypress'` events (Node's key decoder)
589
- - **`node:child_process`:** `spawn` `detached`, `child.unref()` / `ref()`
590
- - **`node:dgram`:** multicast (`addMembership` / `dropMembership`, `setMulticastInterface`), and
591
- `setBroadcast` / `setTTL` / `setMulticastTTL` / `setMulticastLoopback` take effect (they were
592
- accepted and ignored)
593
- - **Errors:** `err.errno` and `util.getSystemErrorName` / `Message` / `Map` use Node's numbers for
594
- the target OS (libuv's table: `ENOENT` is `-4058` on Windows, `ECONNREFUSED` `-61` on macOS) and
595
- libuv's messages; `getSystemErrorMap` has all 85 entries in Node's order
596
- - **`node:dns`:** `resolveAny` / `resolveCaa` / `resolveNaptr` / `resolvePtr` / `resolveSoa`,
597
- `resolve4` / `resolve6` with `{ ttl: true }`, and the `Resolver` `tries` option
598
- - **`node:module`** (`builtinModules`, `isBuiltin`), **`node:v8`** (`getHeapStatistics`,
599
- `serialize` / `deserialize`) and **`node:sea`** (`isSea`)
600
- - **`node:crypto`:** `Hash` / `Hmac` as streams; AES key wrap ciphers (`id-aes*-wrap`,
601
- `id-aes*-wrap-pad`)
602
- - **`node:http`:** `res.addTrailers()`
603
- - **JSON modules:** `import data from './x.json' with { type: 'json' }` and
604
- `createRequire(import.meta.url)('./x.json')`, read at compile time
605
- - **Workers and `fork` for another file:** `new Worker('./worker.ts')` / `fork('./child.ts')` compile
606
- that file into the binary as a second entry point, run in the child process
607
- - **`node:test`:** `--test-name-pattern`, `--test-skip-pattern`, `--test-only` and
608
- `--test-reporter` (`tap`, `spec`, `dot`, `junit`) from `NODE_OPTIONS`; Node's notice for `.only`
609
- without `--test-only`
610
- - **`node:stream`:** `'readable'` events and Node's `read()` / `read(size)`
611
- - **`node:sqlite`:** statements are finalized once garbage-collected (they lived until
612
- `db.close()`); `db.serialize()` / `db.deserialize()`
613
- - **Go bridges:** a probe for every bridged `go:` package, new ones for `debug/*`, `log/syslog`,
614
- `math/cmplx`, `net/http/fcgi`, `net/rpc`, `net/rpc/jsonrpc`, `net/smtp`, `testing/cryptotest`,
615
- `testing/slogtest` and `testing/synctest`. Along with them:
616
- - `pkg.T` in type annotations is the Go type (`let d: dwarf.Data | null = null`,
617
- `(t: testing.T) => …`)
618
- - `ref.value` can be written (`r.value = x`), also through `GoRef<T>` parameters, so TS classes
619
- can be `net/rpc` services
620
- - `chan<T>()` makes a `chan T`
621
- - TS records pass where Go takes a `map[K]V`
622
- - callbacks whose Go signature returns `(T, error)`
623
- - **`go:embed`:** `embed.string(path)`, `embed.bytes(path)` and `embed.files(...patterns)` (an
624
- `embed.FS`) compile to `//go:embed` vars; the CLI copies the files next to the Go sources
625
- - **`go:runtime/coverage`**, with a `--cover` CLI option that builds with coverage counters. Probes
626
- can pass CLI options with a first line like `// conformance-flags: --cover`
627
-
628
- ### Fixed
629
-
630
- - **Regex performance:** global `replace` / `split` / `matchAll` and backreference or
631
- lookaround patterns no longer re-scan the whole string for every match (quadratic on long
632
- input); the self-hosted compiler builds itself ~10× faster
633
- - **Regex empty matches:** `/g` patterns can match empty at the end of input
634
- (`'abc'.replace(/x*/g, '-')` is `-a-b-c-`)
635
- - **Regex `split`:** follows JS: capture groups are included (`'a1b'.split(/(\d)/)` is `a`,
636
- `1`, `b`), `limit` is honored, and empty matches split like JS
637
- (`'aXbXXc'.split(/(?<=X)/)` is `aX`, `bX`, `X`, `c`)
638
- - **Match `.index`:** `exec`, `match` and `matchAll` results have `.index` (a compile error
639
- before); `search` returns a character index (it returned a byte offset)
640
- - **`match` with `/g`:** returns every match (it returned the first match's groups)
641
- - **Arrays as strings:** `arr.toString()`, `String(arr)` and `` `${arr}` `` join elements with
642
- commas (they printed Go's `[a b]`)
643
- - **`node:dns`:** `resolve(name, 'PTR')` queries the name's PTR records (it did a reverse lookup)
644
- - **Templates:** `${err}` on an `Error` builds and prints `Name: message` (`null` when null)
645
- - **`Date` annotations:** `let d: Date`, `Date` parameters, return types, fields and `as Date`
646
- compiled to an undefined Go type
647
- - **Named imports of Node values:** `import { METHODS } from 'node:http'` keeps its array type
648
- (`METHODS.includes(…)` compiled as a string method)
649
- - **`console.log` / `inspect`:** Maps and Sets nested in objects print as `Map(n) {…}` /
650
- `Set(n) {…}` (string-keyed Maps printed as plain objects)
651
- - **Worker messages / `v8.deserialize`:** Sets arrive as Sets and both pass `instanceof`
652
- - **`Array<T>` / `ReadonlyArray<T>` annotations** compiled to an undefined Go type
653
- - **`stream.push(cond ? text : null)`:** a nullable string is a chunk or the end of the stream
654
- (`null` through it never ended the stream)
655
- - **`hmac.digest()` a second time** returns an empty result, as in Node (it threw)
656
- - **Destructured callback parameters** (`([k, v]) => …`, `({ a }) => …`) in `map` / `filter` & co.
657
- were unsupported syntax
658
- - **`[...map]`, `map.entries()`** and **`{ ...record, k: v }`** (such as `{ ...process.env }`)
659
- did not build
660
- - **`+` on two dynamic values** concatenates when one is a string (`'a' + 1` gave `1`)
661
- - **`Object.keys` / `values` / `entries` and `for...in`** on typed objects (interfaces, object
662
- literals, class instances) did not build
663
- - **`JSON.parse`:** objects keep the text's key order (they came out sorted)
664
- - **Indexing a typed array held as `any`** (`record.list[1].id`) gave `undefined`
665
- - **Worker / IPC messages and `v8.deserialize`:** objects keep their key order (they arrived
666
- sorted), records arrive as plain objects rather than `Map`s, and both convert to typed
667
- `Record` fields
668
- - **Optional method calls as statements** (`port?.postMessage(x)`) on `void` methods, and
669
- `process.send?.(…)` / `process.disconnect?.()`, did not build
670
- - **Dates:** local getters on `new Date(ms)` used UTC
671
- - **Async arrows:** async arrows kept as values return promises (`return` of a plain value didn't
672
- build)
673
- - **`.then` on async calls:** the call starts when the statement runs, like JS (it started inside
674
- the background goroutine, where `exec()` registering its listeners off the event loop could
675
- race it)
676
- - **Maps:** `[...map.keys()]` / `[...map.values()]` build
677
- - **Optional chains:** comparing an optional chain or an `any` value with `null` / `undefined`
678
- sees a nil pointer inside it
679
- - **`length` fields:** `obj.length` on an object with its own `length` field read it (it compiled
680
- to Go's `len()`)
681
- - **Error casts:** `(err as Error)` works on instances of custom error classes
682
- - **`any` variables:**
683
- - a variable declared `any` / `unknown` with a primitive initializer is dynamic:
684
- `const s: any = '6'; s - 1` builds, and reassigning another type works
685
- - `==` between `any` values coerces like JS
686
- - `<T>x` converts like `x as T`
687
- - **Class members:**
688
- - `#x` and `x` in one class no longer collide
689
- - private fields and static properties stay out of `JSON.stringify`
690
-
691
- Programs that built Go that didn't compile, or computed a wrong value, with no TypeNative error:
692
-
693
- - **Classes:**
694
- - methods without a return-type annotation compiled as returning nothing; they now infer it
695
- like functions do, including returns nested in `if` / loops / `switch` / `try`
696
- - field initializers ran before `super()` and the parameter properties, so
697
- `d = this.k * 2` read `0`
698
- - static members and getters / setters are inherited (`Child.make()`, `super.v`)
699
- - private accessors (`get #x()`), `static #x` and `#x in obj` work
700
- - async methods are lowered like async functions
701
- - `instanceof Map` / `Set` / `Date` / `Array` work, and `instanceof Parent` is true for
702
- subclass instances
703
- - **Control flow:**
704
- - a `switch` that covers every case without `default` builds; so does any statement after a
705
- `switch`
706
- - labeled blocks support `break label`
707
- - **Async:** `return otherPromise()` in an async function settles with the awaited value, and
708
- unannotated async functions build
709
- - **Values and operators:**
710
- - numeric enum reverse mapping (`Color[0]`)
711
- - string enum members concatenate and print as strings (`console.log` printed `'a'`)
712
- - bigint bitwise and shift operators
713
- - Date arithmetic and ordering (`b - a`, `+d`, `a < b`)
714
- - `any` operands of `-` / `*` / `/` convert like JS (`'6' - 1` is `5`)
715
- - **Objects:**
716
- - object-literal setters (they were dropped)
717
- - repeated interfaces / enums, and an interface named like a class, merge
718
- - `Object.hasOwn` / `defineProperty` with a computed key build instead of crashing the
719
- compiler
720
- - unsupported decorators and descriptors are reported as diagnostics instead of crashes
721
- - **Go bridges:** a blocking call (`time.Sleep`) inside a callback failed to build, a panic in
722
- one was swallowed, and `time.Sleep` hung inside a `synctest` bubble
723
- - **`for (;;)`** without an initializer or update crashed the compiler
724
-
725
- ### Documentation
726
-
727
- - `conformance.md` separates ❌ (not implemented yet, feasible) from 🚫 (will not be implemented)
728
- and explains why for each row. Several rows that were ❌ for "impossible" reasons are now
729
- marked feasible: terminal size and raw mode, `umask`, `getCallSites`, workers and `fork` for
730
- another file, and freeing SQLite statements on GC
731
- - Rows for gaps the matrix didn't list, each checked by compiling a small program. Among them:
732
- - Date parsing, setters and arithmetic
733
- - `JSON.stringify` `space` / replacer / `toJSON`
734
- - `err.stack`, `bind`, `Intl`, `Temporal`, `WeakRef`
735
- - class methods without a return-type annotation
736
- - field initializers that run too early
737
- - `instanceof Map` / `Date`
738
- - static and accessor inheritance
739
- - A "Roadmap: known limitations" section, which the link in CONTRIBUTION.md pointed to
740
- - The Go bridges table has no ⚠️ ("typed, no probe yet") status any more. A probe that can't run on
741
- a platform opts out with a first line like `// conformance-skip: win32 (reason)`
742
- - `go:plugin`, `go:unsafe`, `go:runtime/race` and `go:runtime/cgo` are 🚫 (cgo or raw memory),
743
- each with the reason
744
-
745
- ## [0.4.0] - 2026-10-19
746
-
747
- A fuller CLI (`--target` cross-compilation, `--release`, `--emit-go`), typed arrays, Brotli and
748
- `fs.watch`, and TS classes that satisfy Go interfaces such as `heap.Interface`. Three sample apps
749
- now run as tests.
750
-
751
- ### Added
752
-
753
- - **CLI**: `--help`, `--version`, `--target <os/arch>` (cross-compiles through `GOOS` /
754
- `GOARCH`; `--script` refuses foreign targets), `--release` (`-trimpath -ldflags="-s -w"`),
755
- `--emit-go <dir>` (writes the Go sources and `go.mod` and stops), the entry file as a bare
756
- argument, and `--flag=value`. Unknown options exit with code `2`, and a missing or older Go
757
- toolchain (below 1.26) is reported before anything is built
758
- - **Typed arrays**: `Int8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`,
759
- `Int32Array`, `Uint32Array`, `Float32Array`, `Float64Array` (indexing, `from` / `of`,
760
- `fill` / `set` / `subarray` / `slice`, the callback methods, `sort`, `join`, iteration),
761
- `ArrayBuffer` (`slice`, `isView`) and `DataView`. Views made on an `ArrayBuffer` share its
762
- memory, and writes convert like JS; `new Uint8Array(arrayBuffer)` is a view too
763
- - **Go interfaces**: a TS class passed where Go expects an interface (`heap.Interface`,
764
- `sort.Interface`) gets an adapter with the exact Go method signatures, so `go:container/heap`
765
- works and `sort.Sort` takes classes
766
- - **Brotli** in `node:zlib`: `brotliCompressSync` / `brotliDecompressSync`, the callback and
767
- promisified forms, `createBrotliCompress` / `createBrotliDecompress` and `constants.BROTLI_*`,
768
- on the vendored `github.com/andybalholm/brotli` (byte-identical to Node's output)
769
- - **`fs.watch`** (`recursive`, `persistent`, `signal`, `ref` / `unref`), `fs.watchFile` /
770
- `unwatchFile` and `fs/promises` `watch`, on the vendored `github.com/fsnotify/fsnotify`
771
- - `x instanceof Int32Array` / `URL` / any Node global class
772
- - Three sample apps run as tests (`conformance/app-*.ts`): a `wc`-style CLI, a JSON API on
773
- `node:http` + `node:sqlite`, and a stream pipeline with gzip / Brotli
774
-
775
- ### Changed
776
-
777
- - Every build goes through `dist/go.mod` (`go build -C dist`), and generated Go files start
778
- with Go's `// Code generated … DO NOT EDIT.` header
779
- - Vendored Go modules are linked only into programs that import them (`npm run vendor:go`
780
- now vendors sqlite, Brotli and fsnotify)
781
-
782
- ### Fixed
783
-
784
- - A subclass without a constructor takes its parent's constructor arguments (it compiled to a
785
- constructor with no parameters)
786
- - `new C([1, 2])` passes array literals to constructors whose array parameter is a shared
787
- reference
788
- - `this.field` has the field's type inside class bodies, so `Map` / `Set` fields dispatch their
789
- methods (`this.counts.set(k, v)` called a Go method `set` that doesn't exist)
790
- - Tuple elements read with their declared types (`pair[0]` of a `[string, number]` is a
791
- string), including in the callbacks of `sort` / `map` / … on tuple arrays
792
- - `rows.map((r) => ({ … }))` and `reduce` accumulators take the contextual type (a function
793
- returning `Note[]` builds `Note`s, not anonymous structs)
794
- - Object literals with computed keys (`{ [constants.BROTLI_PARAM_QUALITY]: 4 }`) are objects keyed
795
- by the computed value (they compiled to a struct field named `undefined`)
796
- - `(x as T)` on a Go `any` result (`heap.Pop(h) as Task`) asserts the type, and so does
797
- `this.items.push(x as T)`
798
- - Timers fire in deadline order (then creation order) when several expire together, as in
799
- Node; timer goroutines that woke at once on a busy loop or coarse OS clock could run out of
800
- order
801
-
802
- ## [0.3.1] - 2026-10-18
803
-
804
- ### Fixed
805
-
806
- - `node:tls` on macOS: an untrusted certificate chain reports Node's codes
807
- (`DEPTH_ZERO_SELF_SIGNED_CERT`, `SELF_SIGNED_CERT_IN_CHAIN`,
808
- `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`) like on other platforms; the platform verifier returns
809
- a plain error, not `UnknownAuthorityError`
810
- - `go build` runs with `-trimpath`, so vendored packages (the ~5 MB sqlite driver) are cached
811
- once instead of recompiled for every project directory, and builds are reproducible
812
- - `conformance-parallel.mjs` builds one sqlite probe first so a cold cache doesn't time out
813
- every sqlite probe at once on small runners; the `node:sqlite` `location()` probe compares
814
- canonical paths (symlinks, Windows 8.3 short names)
815
-
816
- ## [0.3.0] - 2026-10-18
817
-
818
- Errors now point at your TypeScript. Programs are type-checked before they're transpiled, code
819
- TypeNative can't compile stops the build with its position, and Go build errors and panics
820
- report `.ts` lines. CI runs the suite on Linux, Windows and macOS, and all 398 probes pass on
821
- Windows (four failed there before), through both the Node CLI and the self-hosted compiler.
822
-
823
- ### Added
824
-
825
- - **Type-checking**: the CLI type-checks the entry file and its imports before transpiling,
826
- using the nearest `tsconfig.json` (or `lib: []` plus the bundled `typenative` declarations),
827
- and stops on errors (`main.ts:4:7: error TS2322: …`); `--no-typecheck` skips it. The
828
- self-hosted compiler runs the same check on typescript-go (`tsparser --check`)
829
- - **Line directives**: generated Go carries `/*line file.ts:line:col*/` directives, so
830
- `go build` errors and panic stack traces report TypeScript files and lines; runtime helpers
831
- keep their own `dist/code.go` positions. Both parsers emit `line` / `column` on AST nodes
832
- - `TranspileResult.diagnostics`, and `fileName` / `goFile` / `goos` transpile options
833
- - `npm run bootstrap:check`: the self-hosted compiler must emit byte-identical Go for
834
- `src/main.ts` to the Node CLI's; `conformance-parallel.mjs --native`
835
- - CI on Ubuntu, Windows and macOS, `check:go-types` in CI, and a self-hosted compiler job
836
- (bootstrap fixpoint + the suite through it)
837
-
838
- ### Changed
839
-
840
- - Unsupported syntax and unsupported `node:` modules are errors with a position
841
- (`main.ts:2:1: error: Unsupported syntax: WithStatement`) instead of warnings followed by
842
- broken Go; `;` and `debugger` statements compile to nothing
843
- - Generated Go is deterministic: temp and renamed identifiers come from a generator seeded per
844
- transpilation instead of `Math.random`, so the same source always gives the same Go
845
- - Code typed into `--script`'s prompt is saved as `dist/script.ts` (type-checked, and named in
846
- errors)
847
- - Scaffolded `tsconfig.json` sets `skipLibCheck`
848
- - `node:sqlite` `function()` / `aggregate()` callbacks are typed `(...args: any[])`: arguments
849
- convert to the types the callback declares
850
- - The release workflow builds `bin/` before testing and publishing; `conformance-parallel.mjs`
851
- sizes its worker pool to the machine
852
- - Probes that depend on the OS (`lib-node-dns-resolver`, `lib-node-util-parse-args`) hold on
853
- Windows, and the conformance probes type-check (`conformance/tsconfig.json` sets
854
- `skipLibCheck`)
855
-
856
- ### Fixed
857
-
858
- - Windows: `os.totalmem()` / `os.freemem()` / `os.uptime()` read the OS (they returned the
859
- process's own memory, `0` and `0`); `performance.now()` keeps increasing between calls, so
860
- marks taken in a row keep their order (Go's Windows clock repeats readings)
861
-
862
- ## [0.2.0] - 2026-10-18
863
-
864
- The Go standard-library bridge (`go:*` imports) goes from 73 to 154 probed packages, with 16
865
- left typed-only and 6 excluded. Most of the new coverage came with bridge fixes found by the
866
- probes: callbacks, generics, tuples, struct fields and constants now behave the way the
867
- generated types say they do.
868
-
869
- ### Added
870
-
871
- - **Go probes**: compress (flate, zlib, lzw, bzip2), archive/tar, encoding (json, base32,
872
- ascii85, asn1), mime/quotedprintable, unicode/utf16, hash (adler32, crc64, maphash), crypto
873
- (sha3, hkdf, pbkdf2, des, rc4, fips140, ecdh, ecdsa, elliptic, mlkem, mlkemtest, x509, pkix,
874
- tls metadata, dsa, hpke), fmt, path, io/fs, io/ioutil, maps, iter, unique, weak, structs,
875
- image (color, palette, draw, gif, jpeg), go/* (parser, ast, scanner, printer, constant,
876
- build, build/constraint, doc, doc/comment, types, importer), html/template,
877
- text/template/parse, regexp/syntax, reflect, net (loopback TCP, textproto, cookiejar,
878
- httputil, httptrace, pprof, cgi), runtime (metrics, pprof, trace), time/tzdata, os/user,
879
- debug/buildinfo, math/big, testing (testing, fstest, iotest, quick), database/sql (+driver),
880
- syscall
881
- - **Go generics**: type args are inferred recursively from the arguments and through constraint
882
- core types (`Map ~map[K]V`); callback params of generic functions and methods on generic
883
- receivers (`unique.Handle[T].Value`) are concrete
884
- - **Go callbacks**: TS closures passed to Go (params or struct fields) get the exact Go
885
- signature — int params read as numbers, block bodies work, returns convert to the result type
886
- - `for (const [k, v] of seq2)` over `iter.Seq2`; destructuring multi-value Go calls types each
887
- element; printf-style calls pass numbers to `%d %x %o %b %c %U` as `int64`
888
- - `String.indexOf(search, fromIndex)`
889
- - `npm run check:go-types` type-checks the `go:*` probes against `types/typenative-go.d.ts`
890
- - **Node networking**: `node:net` (TCP / Unix servers and sockets as duplex streams, Node's
891
- `ECONNREFUSED`-style errors, `isIP`), `node:dns` (+ `dns/promises`), `node:http` /
892
- `node:https` (servers on `net/http`, `request` / `get`, `STATUS_CODES`, `METHODS`),
893
- `node:tls` (Node's certificate checks and error codes, `getPeerCertificate`), `node:dgram`,
894
- and the global `fetch` with `Headers` / `Request` / `Response`
895
- - **`node:async_hooks`**: `AsyncLocalStorage` and `AsyncResource`; the event loop carries an
896
- async context through timers, `nextTick`, microtasks, promise callbacks, awaits, fs / dns
897
- callbacks, streams and servers
898
- - **`node:test`**: `test` / `describe` / `it` with hooks, subtests, skip / todo, timeouts and
899
- `mock.fn`; Node's TAP (or, on a terminal, spec) report and exit code
900
- - **`node:worker_threads`**: workers re-run the program as child processes linked over
901
- loopback TCP (structured-clone messages, `workerData`, `terminate`, errors), plus
902
- `MessageChannel` / `MessagePort` / `BroadcastChannel`; globals `__filename` / `__dirname`
903
- - `new Promise((resolve) => setTimeout(resolve, ms))`: `resolve` / `reject` can be passed as
904
- values
905
- - **`node:stream/web`**: `ReadableStream` / `WritableStream` / `TransformStream` with readers,
906
- writers, controllers, queuing strategies, `tee` / `pipeTo` / `pipeThrough` and `for await`;
907
- `TextEncoderStream` / `TextDecoderStream`, `CompressionStream` / `DecompressionStream` (also
908
- globals); `Readable.toWeb` / `fromWeb` & co. and `stream.compose`
909
- - `Blob` / `File` (`node:buffer` and globals) and `FormData`; fetch streams bodies
910
- (`response.body`, `ReadableStream` uploads), sends Blob / FormData bodies and reads
911
- `blob()` / `formData()`
912
- - `TextDecoder#decode(bytes, { stream: true })`
913
- - **`node:crypto`**: `scrypt` / `scryptSync`; callback forms of `pbkdf2`, `hkdf`,
914
- `randomBytes`, `randomFill`; `KeyObject` with `createPrivateKey` / `createPublicKey` /
915
- `createSecretKey` and PEM / DER / JWK import and export; `generateKeyPair(Sync)` (RSA, EC,
916
- Ed25519, X25519) and `generateKey(Sync)`; `sign` / `verify`, `createSign` / `createVerify`
917
- (PKCS#1 v1.5, PSS, ECDSA DER / P1363, Ed25519); `publicEncrypt` & co.; ECDH and classic
918
- Diffie-Hellman (MODP groups); `generatePrime` / `checkPrime`; `X509Certificate`; and
919
- `crypto.subtle` (digest, keys, sign / verify, AES-GCM / CBC / CTR, RSA-OAEP, PBKDF2 / HKDF /
920
- ECDH / X25519 derivation, wrap / unwrap)
921
- - **`child_process.fork`** with an IPC channel (`send` / `'message'` / `disconnect`;
922
- `process.send` / `process.on('message')` in the child) and **`node:cluster`**: workers share
923
- listening ports through the primary, which relays connections round-robin; cluster and worker
924
- events, `disconnect`, `setupPrimary`
925
- - **`node:http2`** on `net/http`'s HTTP/2: h2c and TLS servers with the `'stream'` API
926
- (`respond`, `respondWithFile`) and the compatibility `(req, res)` API; `connect()` client
927
- sessions whose `request()` streams emit `'response'` with `:status`
928
- - `path.matchesGlob`; Buffer `read/writeBig(U)Int64LE/BE`, `swap16/32/64`, `buffer.isUtf8` /
929
- `isAscii` / `transcode`; `util.parseArgs`, `getSystemErrorName` / `Message` / `Map`,
930
- `MIMEType`, `parseEnv`, `aborted`, `debuglog`, `toUSVString`; `process.loadEnvFile`
931
- - `process.on('uncaughtException' | 'uncaughtExceptionMonitor' | 'unhandledRejection' |
932
- 'beforeExit')`, `process.cpuUsage` / `resourceUsage` / `availableMemory`; `os.totalmem` /
933
- `freemem` / `uptime` / `loadavg` / `release` / `version`; timer handles with `ref` / `unref` /
934
- `hasRef` / `refresh` / `close`; `PerformanceObserver`, `performance.timerify` /
935
- `eventLoopUtilization`, `createHistogram`, `monitorEventLoopDelay`; `events.errorMonitor`,
936
- `captureRejections`, static `getMaxListeners` / `setMaxListeners`, `addAbortListener`
937
- - zlib callback forms (`gzip(buf, [options], cb)` & co.) and `util.promisify` of them;
938
- `readline.cursorTo` / `moveCursor` / `clearLine` / `clearScreenDown`;
939
- `diagnostics_channel.tracingChannel` (`traceSync` / `tracePromise` / `traceCallback`) and
940
- `channel.bindStore` / `runStores`; `net.BlockList` / `SocketAddress`; `dns.Resolver` (own
941
- servers, `timeout`, `cancel`), `setServers`, `lookupService`; `tls.checkServerIdentity` (and
942
- the `connect` option); HTTP `'upgrade'` / `'connect'` on servers and clients; node:test
943
- `t.assert` and `mock.timers`; `console.table`
944
- - `new Error(message, { cause })` / `err.cause`; fetch refuses the Fetch standard's bad ports;
945
- `net.Stream` and the `autoSelectFamily` defaults
946
- - **`node:sqlite`**: `DatabaseSync` / `StatementSync` (`run` / `get` / `all` / `iterate`, named
947
- and bare parameters, `readBigInts`, `returnArrays`, `columns()`, `expandedSQL`), `function()`,
948
- `aggregate()` (window functions), `setAuthorizer`, `limits`, `createTagStore()`, `backup()`,
949
- and Node 24's error codes and messages. SQLite comes from github.com/ncruces/go-sqlite3 (Wasm
950
- translated to Go: no cgo), vendored in `govendor/` by `npm run vendor:go` so builds need no
951
- network. `loadExtension`, sessions and `serialize` are not available
952
- - conformance.md gives each unsupported Node module (`vm`, `repl`, `inspector`, …) its own section
953
-
954
- ### Fixed
955
-
956
- - **Go types**: void functions were typed as returning `GoError`; params now accept what the
957
- bridge converts (`number[]` for `[]byte`, one-char strings for `byte`/`rune`, `null` for
958
- nil-able types, an array for variadics, an optional trailing `error`); pointers to basics are
959
- `GoRef<T>`; typed constants keep their named type; aliases resolve (`os.FileMode`); named
960
- slice/map types keep their methods (`net.IP`); `iter.Seq` is iterable; unimportable
961
- `*/internal` packages are dropped and `runtime/cgo` is excluded
962
- - **Go bridge**: path-qualified types (`net/http.Cookie`) are localized and imported; unused
963
- type-only imports are dropped and `import 'go:pkg'` emits `import _`; field reads/writes
964
- convert numbers on any receiver; `null` comparisons on nil-able Go values are real nil checks;
965
- `===` with typed constants coerces; `ref<T>().value` dereferences; `json.Unmarshal` fills a
966
- `Record` ref
967
- - `npm run gen:go` runs from the repo root again
968
- - The self-hosted compiler (`npm run build:native`) builds again; the `src/go/*` modules are
969
- transpilable by TypeNative
970
- - Object literals whose keys aren't identifiers (`{ 'Content-Type': … }`) compile (as records)
971
- - `const { a, b } = f()` evaluates `f()` once
972
- - `await` inside async arrow callbacks no longer blocks the event loop (every `await` goes
973
- through `TnAwait`)
974
- - `JSON.parse` assigned to an interface type converts into its struct (it was `nil`); typed
975
- callback parameters accept decoded JSON-like values
976
- - `for await` over a stream that errors throws the error (it ended the loop silently)
977
- - `const { value, done } = obj` on Node class instances types the bindings (and reads
978
- accessors); `x as File` asserts dynamic values to Node classes
979
- - `Response#clone()` of a network body no longer blocks the event loop (both copies stream it)
980
- - The self-hosted compiler no longer crashes on `const [a, b] = call()`
981
- - A detached top-level async call with arguments (`run(a, b);`) passes them (they were dropped)
982
- - A function that only returns `undefined` compiles (its result type was `nil`)
983
- - `gunzip` of data without a gzip header fails with `incorrect header check`, as in Node
984
- - Error properties declared by both `NodeJS.ErrnoException` and `AssertionError` no longer hide
985
- each other (`(e.cause as Error).message` typed the cause as unknown)
986
- - Negative bigint literals and `-x` on bigints; hex / octal / binary bigint literals;
987
- `p.then(() => …)` on a `Promise<void>`; `JSON.stringify` of records keeps their keys (it
988
- printed the map's internals); `String(x)` / template literals use a Node class's `toString()`
989
- - Top-level variables named like an imported Go package (`rsa`, `pem`, `encoding`, `http`, …) are
990
- renamed instead of clashing with it; `bigint.toString(radix)`; `ArrayBuffer` annotations and
991
- `byteLength` on Buffers
992
- - Object literals with `$` in a key (`{ $id: 1 }`) compile (as records); `rows as Row[]` on an
993
- array of dynamic values converts each element; records held in dynamic values read their keys
994
- (`row.name`, `row['name']`, `Object.keys(row)`, `row as Row`); `bytes[i]` on a dynamic
995
- `Uint8Array`; `x === 1n` when `x` is `number | bigint`
996
- - `arr.reduce(…)` has a result type (functions returning it compiled without a return value); a
997
- typed arrow parameter is no longer mistaken for an earlier variable of the same name
998
- - `(c) => (body += c)` arrow bodies; `console.log(x?.y)` prints optional strings / numbers
999
- without quotes; the self-hosted compiler no longer crashes on `console.log` arguments of
1000
- unknown type
1001
-
1002
- ## [0.1.3] - 2026-10-15
1003
-
1004
- Decorators and JSX arrive alongside a broad language-surface expansion (`using`, `new.target`,
1005
- `for await`, namespaces, dynamic `import()`), and `types/typenative.d.ts` grows into a complete
1006
- lib replacement. The conformance suite grows to 241 probes — including its first `.tsx` probe —
1007
- and passes fully through the dev CLI.
1008
-
1009
- ### Added
1010
-
1011
- - **Language**: `using` declarations — `[Symbol.dispose]()` runs when the enclosing block or
1012
- function exits, in reverse declaration order; `new.target` (constructors pass the target class
1013
- name through `super()` chains); `for await...of`; the `arguments` object; namespaces; computed
1014
- and heterogeneous enums; callable/construct signatures (`type F = { (): void }` — a class passed
1015
- as a value is its constructor); ambient declarations (`declare const` / `declare function` /
1016
- `declare module`); string, numeric and boolean literal types (single literals, unions,
1017
- literal-union `Record` keys)
1018
- - **Decorators**: standard method and class decorators — decorator factories (`@tag('x')`),
1019
- stacked decorators, static methods — applied where the class is defined; `this` in the wrapper
1020
- is the decorated method's receiver; `f.call` / `f.apply`
1021
- - **JSX**: `.tsx` files render JSX to HTML strings — text is escaped, void tags self-close
1022
- (`<br/>`), components are called with their props, `className` maps to `class`, boolean
1023
- attribute shorthand (`disabled`) and fragments flatten; both parsers take a tsx flag and
1024
- `.tsx` imports resolve
1025
- - **Modules**: re-exports (`export { x } from './y'`), side-effect imports (`import './x'`),
1026
- dynamic `import()` (async), `import x = require('y')`; top-level statements of imported
1027
- modules execute through a generated `init()`
1028
- - **Typing**: rest-parameter function types `(...args: T[]) => R` become variadic Go func types
1029
- - **Library**: `String.normalize` — backed by `golang.org/x/text/unicode/norm`, vendored from
1030
- GOROOT's vendor tree via a `replace` in `dist/go.mod`, so builds need no network; object
1031
- literals of method-bearing interfaces; `new Set([...spread])`
1032
- - **Type definitions**: `types/typenative.d.ts` expands by ~500 lines — `Generator`/`AsyncGenerator`
1033
- and the `Iterable`/`AsyncIterable` families, `Disposable`, `Awaited`, `TemplateStringsArray`,
1034
- `ArrayLike`, real mapped types for `Partial`/`Required`/`Readonly`/`Pick`/`Omit`/`Record`,
1035
- `RegExpExecArray`, constructor interfaces (`Array`/`String`/`Number`) and the `JSX` namespace
1036
- - **Project config**: `types/tsconfig.json` — a standalone `lib: []` project for the
1037
- lib-replacement d.ts, so editors don't load es5 libs alongside it (TS6200, duplicate identifiers)
1038
-
1039
- ### Changed
1040
-
1041
- - The conformance runner picks up `.tsx` probes; scaffolds pin `typenative ^0.1.3`; `dist/`
1042
- cleanup also removes stale `go.mod`/`go.sum`
1043
- - Both parsers emit `declarationKind` (`var`/`let`/`const`/`using`/`await using`) on variable
1044
- declaration lists; tsparser takes `--tsx` and emits `JsxText`
1045
- - README rewritten: requirements, quick start, CLI reference, and expanded language/stdlib tables
1046
-
1047
- ## [0.1.2] - 2026-10-13
1048
-
1049
- The type system and standard library catch up with the conformance matrix: generics gain
1050
- constraints, defaults and generic interfaces; utility types, `keyof`/`typeof`, intersections,
1051
- conditional types and mapped types lower to Go; Promise, timer, Object, collection and math
1052
- built-ins round out. The conformance suite grows to 219 probes (including 15 for rows that
1053
- already worked — `console.error`/`warn`, `Map`/`Set.clear`, `node:url`, `process.cwd`, `split`
1054
- with a RegExp, access modifiers, `const enum`, `import type`, indexed access types, literal
1055
- types, hex/octal/binary literals, `override`, template literal types, `var`) and passes fully
1056
- through the dev CLI; the stage-1/stage-2 bootstrap fixpoint holds.
1057
-
1058
- ### Added
1059
-
1060
- - **Generics**: constraints (`T extends U`), defaults (`T = U`), generic interfaces, class
1061
- expressions, index signatures, `keyof` and mapped types
1062
- - **Type operators**: `keyof T`, `typeof x`, `readonly T[]`, intersections `A & B` (merged into
1063
- one struct), conditional types (`T extends U ? X : Y`) with `infer`, `void`/`never`/`object`,
1064
- the `void` operator, `satisfies`
1065
- - **Utility types**: `Partial`, `Required`, `Readonly`, `Pick`, `Omit`, `NonNullable` (lowered to
1066
- the base type)
1067
- - **Language**: async generators (`async function*` driven by `for await`), labeled tuple
1068
- elements with optional and rest members (`[x: number, y?: string, ...rest: number[]]`),
1069
- overload signatures, `this: T` parameters, `asserts x is T`, optional call `f?.()` (checks the
1070
- function value; the result is nullable), comma-separated declarators/updates in `for` headers
1071
- (`for (let i = 0, j = 10; …; i++, j--)` via Go's parallel forms), import renaming
1072
- (`import { a as b }`), `static { … }` blocks → `func init()`, self-referencing arrow functions
1073
- (`const f = (…) => … f(…) …`)
1074
- - **Promises & timers**: `Promise.prototype.reject`/`catch`/`finally`, combinators
1075
- `race`/`allSettled`/`any`, `Promise.resolve`; `setTimeout` returns a handle that `clearTimeout`
1076
- stops; `setInterval`; `queueMicrotask`
1077
- - **Objects**: `Object.hasOwn`, `Object.defineProperty`, `Object.fromEntries`, integrity methods
1078
- (`freeze`/`seal`/`preventExtensions`)
1079
- - **Collections**: `WeakMap`/`WeakSet`; ES2024 `Set` operations (`union`, `intersection`,
1080
- `difference`, `isSubsetOf`, …); array `concat` (flattens one level), `copyWithin`, `toSpliced`,
1081
- `toSorted`, `toReversed`, `with`, `reduceRight`; `any` receivers accept the newer array methods
1082
- through array-only method casts
1083
- - **Strings, numbers, regex**: `String.raw`, `toPrecision`, `String()`/`Boolean()` with JS
1084
- formatting and truthiness; regex `y`/`u` flags and `.source`/`.flags`
1085
- - **Globals**: `globalThis`, `structuredClone`, `isFinite`, `encodeURIComponent`/
1086
- `decodeURIComponent`; `Math` constants (`PI`, `E`, `SQRT2`, …) and `hypot`/`cbrt`/`expm1`/
1087
- `log1p`/hyperbolics/inverse trig/`atan2`
1088
- - **Date**: `getUTC*` getters and `Date.UTC`
1089
- - **Semantics**: functions stored in `Record`s are called as values — `rec.fn(args)` lowers to
1090
- `rec.Get("fn")(args)` (previously dispatched as a built-in method, so `handlers.sort(x)` ran an
1091
- array sort); names that are also JS `Map` methods stay Map methods unless the receiver is typed
1092
- as a `Record`; dynamic `obj[key] = v` writes; mixed array literals (`[['a', 1]]`) become
1093
- `[]interface{}`
1094
-
1095
- ### Changed
1096
-
1097
- - tsparser emits the raw text of template literals
1098
-
1099
- ### Fixed
1100
-
1101
- - `JSON.stringify` no longer HTML-escapes `<`, `>`, `&` in the reflection path (`json.Marshal`
1102
- produced `\u003c`); stage 1 and stage 2 of the bootstrap generate identical Go again
1103
- - `Date.toISOString` printed the month twice (`2006-01-01` instead of `2006-01-02`)
1104
- - `??` passed to a nullable parameter is boxed; object literals nested in dynamic objects stay
1105
- dynamic; shorthand properties (`{ x }`) read narrowed variables correctly
1106
-
1107
- ## [0.1.1] - 2026-10-10
1108
-
1109
- The conformance suite is fully green: all 147 probes pass (up from 95/147), through both the dev
1110
- CLI (`node bin/cli.js`) and the self-hosted native compiler (`npm run conformance -- --native`).
1111
-
1112
- ### Added
1113
-
1114
- - **Language**: array/object destructuring with defaults and elision, computed keys, `for...in`,
1115
- labeled loops (`continue outer` / `break outer`), `as const`, type guards (`p is T`),
1116
- generators (`function*` / `yield` / `yield*`) and `*[Symbol.iterator]()` custom iterators,
1117
- `async`/`await` with `new Promise`, `.then` and `Promise.all` (lowered to goroutines over
1118
- channels, with pending callbacks and timers drained before exit), `setTimeout`
1119
- - **Modules**: `import.meta.url` — the `file://` URL of the running program
1120
- (`os.Executable` through the `pathToFileURL` lowering)
1121
- - **Classes**: inheritance with `super` (methods copied onto subclasses for `this` dispatch),
1122
- abstract classes, `#private` fields, static members typed from initializers, getters/setters
1123
- (`c.v` reads/writes rewrite to `Get_v()`/`Set_v()`), interface `extends` (inherited properties
1124
- flattened into the derived struct), object-literal methods and getters
1125
- - **Errors**: `throw new Error` / `new Error(message)` produce a real error value — custom error
1126
- classes via `extends Error`, `instanceof` and `.message` on caught values
1127
- - **Typing**: generic functions via Go generics (call sites infer type arguments), numeric enums
1128
- as plain numbers, tagged templates, JS loose equality (`0 == false`) with `bool`/number/string
1129
- coercion, `p is T` predicates returning `bool`
1130
- - **Runtime values**: `bigint` (`2n ** 64n` etc. via `math/big`) and `symbol` (unique pointers,
1131
- usable as record keys)
1132
- - **Library**: array `splice`, `fill`, `entries`, `flatMap`, `findLast`/`findLastIndex`,
1133
- `lastIndexOf`, `new Array<T>(n)`, `Array.from`, `join()` defaulting to `","`, in-place
1134
- `reverse`; `charCodeAt`/`String.fromCharCode`/`localeCompare`; `Date` (`new Date(ms)`,
1135
- `getTime`, `toISOString`, `Date.now()`); `Object.assign`; `.length` counts UTF-8 code points
1136
- and `[...str]` spreads runes
1137
- - **Regex**: `/g` regexes carry `lastIndex` state (`re.exec` loops terminate); named groups
1138
- (`(?<name>` → `(?P<name>`, `exec` returns a match with `.groups`); backreferences and
1139
- lookbehind/lookahead run on a small backtracking engine (RE2 does not support them)
1140
- - **Semantics**: arrays are references — `const b = a; b.push(3)` is visible through `a`
1141
- (array variables hold `*[]T`)
1142
-
1143
- ### Changed
1144
-
1145
- - `JSON.stringify` serializes through reflection, so unexported (auto-generated) struct fields
1146
- are included
1147
- - `Object.assign` copies sources (structs, maps, dynamic objects) into an ordered map
1148
- - `throw` panics with a `TnError` value carrying `.message` instead of a bare string
1149
-
1150
- ## [0.1.0] - 2026-10-09
1151
-
1152
- TypeNative compiles itself: `src/main.ts` builds into a native `typenative` binary that passes the
1153
- whole test suite and regenerates its own Go source identically (stage-1/stage-2 bootstrap).
1154
-
1155
- ### Added
1156
-
1157
- - **Native compiler**: `npm run build:native` builds `native/typenative` and `native/tsparser`
1158
- - **`any` / `unknown` at runtime**: property and index access, truthiness, equality (objects by
1159
- identity), method calls, spreads and conversions to typed values via a small Go runtime
1160
- (`TnGet`, `TnSet`, `TnAs`, …) — no guessed types
1161
- - **Language**: object spread, `??=`, `in`, `typeof`, `continue`, optional and destructured
1162
- parameters, constructor parameter properties, `return` inside `try`/`catch`, object type
1163
- aliases and inline object types → Go structs, `Record<K, V>` and dictionaries → Go maps
1164
- - **Typing**: contextual types for object/array/function literals, narrowing of `T | undefined`,
1165
- JS truthiness, `??` chains, nullable ternaries, optional chains across calls
1166
- - **Library**: `toFixed`, `Math.max(...arr)`, `sort` with comparators, `flat`, typed
1167
- `Object.keys`/`values`, regex `replace` (`/g`, `$1`/`$&`, function replacers), `match`/`split`
1168
- with regexes, `Array.isArray`, `console.warn`, `fs.unlinkSync`, `process.env['X']`
1169
- - Tests 33–50
1170
-
1171
- ### Changed
1172
-
1173
- - **Go 1.23 or newer is required** (generated code uses `slices`/`maps` iterator helpers)
1174
- - `process.platform` reports Node's names (`win32`, `darwin`, `linux`)
1175
- - `JSON.stringify` no longer escapes `<`, `>`, `&` (like JS)
1176
- - Out-of-range array/string reads give zero values instead of panicking (JS `undefined`)
1177
- - Imports and helpers are emitted in sorted order
1178
- - Map, Set and Record keep insertion order (like JS); objects are references (Go pointers)
1179
-
1180
- ### Fixed
1181
-
1182
- - The test suite never ran (scripts called `bin/index.js`, which has no entry point); it now runs
1183
- through `bin/cli.js`
1184
- - Phase 3c regressions (19 tests): AST kind names, missing parent links, `extends` detection
1185
- - Main-file top-level variables were invisible to functions
1186
- - `spawnSync` with `stdio: 'inherit'` dropped its arguments
1187
-
1188
- ## [0.0.21] - 2026-09-06
1189
-
1190
- Self-hosting milestone: the compiler no longer depends on `execa`, `fs-extra`, or `nanoid`, and the
1191
- TypeScript parser is decoupled behind an injectable, normalized JSON AST — produced either by the
1192
- `typescript` npm package (dev CLI) or by the new Go-native `tsparser` tool (self-hosted binary).
1193
- Verified: all 33 test specs transpile identically through both parser paths, and the compiler now
1194
- transpiles its own source all the way to `go build`.
1195
-
1196
- ### Added
1197
-
1198
- - **`node:fs` mappings**: `readFileSync`, `writeFileSync`, `appendFileSync`, `existsSync`, `mkdirSync`, `readdirSync`, `copyFileSync`, `rmSync` → Go helpers (`TnReadFile`, `TnWriteFile`, …)
1199
- - **`node:url` mappings**: `fileURLToPath`, `pathToFileURL`
1200
- - **`node:os` mappings**: `platform` (returns `win32`/`darwin`/linux like Node), `homedir`, `tmpdir`
1201
- - **`node:child_process` mappings**: sync `exec`/`execSync`/`spawnSync` shaped like Node's `spawnSync` (`{ stdout, stderr, status }`); `{ stdio: 'inherit' }` runs with the parent's stdio (`TnRunInherit`); `{ input }` pipes stdin (`TnExecInput`)
1202
- - **`node:readline` mapping**: synchronous `question(prompt)` for interactive native prompts (`TnQuestion`, single buffered stdin reader)
1203
- - **`process.env.X`** → `TnGetenv("X")`
1204
- - **Go helper registry**: node-stdlib helpers are emitted once into the main output file with correct per-file import scoping (helpers register their Go packages lazily; import lists are computed after function bodies are visited)
1205
- - **`tsparser/` Go tool**: parses TypeScript via `github.com/buke/typescript-go-internal` (native Go port of the TypeScript parser — no embedded JS runtime) and emits a normalized JSON AST with TypeScript-API kind and field names
1206
- - **`src/parse-node.ts`**: Node adapter producing the identical JSON AST from the `typescript` npm package; verified byte-identical against `tsparser` on all test specs and all compiler sources
1207
- - **`src/parse-native.ts`**: self-hosted parser client (spawns the `tsparser` binary, `TYPENATIVE_TSPARSER` env override)
1208
- - **Injectable parser**: `transpileToNative(code, { parse, readFile })` — the transpiler no longer imports `typescript`
1209
- - **Unbraced `if`/`else if`/`else` statements**: single-statement branches now emit valid Go blocks
1210
- - **`%` and `%=` on numbers** → `math.Mod`
1211
- - **`./x.js` → `x.ts` import resolution** for ES-style relative specifiers
1212
- - **Tests 31–32**: node-stdlib end-to-end spec (fs round-trip, os platform, shell exec) and subprocess/control-flow spec
1213
-
1214
- ### Changed
1215
-
1216
- - **CLI entry split**: `bin/cli.js` (npm `bin`) keeps inquirer for interactive Node use; the transpilable core lives in `src/index.ts` (`run`/`createProject`), with `src/main.ts` as the self-hosting entry and `src/prompt.ts` (transpilable sync prompts) replacing inquirer in native builds
1217
- - **Transpiler internals**: the `ts` typechecker is replaced by syntactic `typeNodeToText`; node predicates became plain `isX()` kind-string functions; operator tokens map through a kind-name table
1218
- - Dropped runtime dependencies: `execa`, `fs-extra`, `nanoid` (replaced by a local `goSafeId`)
1219
-
1220
- ## [0.0.20] - 2026-03-16
1221
-
1222
- ### Added
1223
-
1224
- - **Spread in array literals**: `[...arr1, ...arr2]` → `append(append([]T{}, arr1...), arr2...)`
1225
- - **Rest parameters**: `function(...args: T[])` → Go variadic `func(...args T)`
1226
- - **Spread in function calls**: `fn(...args)` → `fn(args...)`
1227
- - **Array destructuring**: `const [a, b] = arr` → Go index assignments
1228
- - **Object shorthand**: `{ name }` → `{ name: name }` in struct literals
1229
- - **Static class members**: `static method()` / `static prop` → `ClassName_method()` / `ClassName_prop` package-level declarations; `ClassName.method()` calls correctly resolve
1230
- - **Getters/Setters**: `get prop()` → `Get_prop()` method, `set prop(v)` → `Set_prop(v)` method
1231
- - **`for...in` loops**: `for (const k in obj)` → `for k := range obj`
1232
- - **`Object.entries()` in `for...of`**: `for (const [k, v] of Object.entries(map))` unwraps to `for k, v := range map`
1233
- - **Named function expression IIFEs**: `(function name() { ... })()` → anonymous `func() { ... }()`
1234
- - **`process` global**: `process.argv` → `os.Args`, `process.platform` → `runtime.GOOS`, `process.exit()` → `os.Exit()`, `process.cwd()` → `os.Getwd()`
1235
- - **`JSON.stringify()` / `JSON.parse()`**: mapped to `encoding/json` `Marshal`/`Unmarshal`
1236
- - **`Object.keys()` / `Object.values()` / `Object.entries()`**: map iteration helpers
1237
- - **Array methods**: `findIndex`, `every`, `forEach`, `reduce`, `pop`, `shift`, `unshift`, `reverse`, `sort`, `concat`, `flat`, `at`
1238
- - **String methods**: `padStart`, `padEnd`, `match`, `matchAll`, `search`, `at`
1239
- - **Math methods**: `log`, `log2`, `log10`, `sin`, `cos`, `tan`, `trunc`, `sign`
1240
- - **`console.error()`**: maps to `fmt.Fprintln(os.Stderr, ...)`
1241
- - **`String()` / `Number()` / `Boolean()`** conversion functions
1242
- - **Go reserved words protection**: `getSafeName()` now covers all Go keywords (`break`, `case`, `chan`, `continue`, `default`, `defer`, `else`, `fallthrough`, `for`, `func`, `go`, `goto`, `if`, `import`, `interface`, `map`, `package`, `range`, `return`, `select`, `struct`, `switch`, `type`, `var`)
1243
- - **Default import namespaces from npm/local packages**: `import ts from 'typescript'` registers `ts` as a stripped namespace so `ts.method()` → `method()`
1244
- - **Better unsupported syntax warnings**: `console.warn` with syntax kind name and source snippet instead of `console.log`
1245
- - **Type definitions (`typenative.d.ts`)**: added `findIndex`, `every`, `forEach`, `reduce`, `pop`, `shift`, `unshift`, `reverse`, `sort`, `flat`, `concat`, `at` to `Array`; `padStart`, `padEnd`, `match`, `matchAll`, `search`, `at` to `String`; added `JSON`, `Object`, `Process`, extended `Math` and `Console`
1246
-
1247
- ## [0.0.19] - 2026-03-07
1248
-
1249
- ### Added
1250
-
1251
- - Module/import support: `import { x } from './file'` transpiled to Go package imports for local TypeScript files
1252
- - Node.js built-in module imports: `import { join } from 'node:path'` and similar mapped to corresponding Go standard library packages
1253
- - npm package imports: `import { x } from 'pkg'` mapped to Go module imports via `typenative-npm.d.ts` type definitions
1254
- - Go package imports: `import { x } from 'go:package'` to import a Go library package
1255
- - Named exports: `export function` and `export const` declarations now transpiled correctly
1256
-
1257
- ## [0.0.18] - 2026-03-03
1258
-
1259
- ### Added
1260
-
1261
- - `Map<K, V>` support: transpiled to Go `map[K]V`; `.set()`, `.get()`, `.has()`, `.delete()`, `.clear()`, `.size` fully supported
1262
- - `Set<T>` support: transpiled to Go `map[T]struct{}`; `.add()`, `.has()`, `.delete()`, `.clear()`, `.size` fully supported
1263
- - Try/Catch/Finally support: `try/catch/finally` transpiled to Go IIFE with `defer`/`recover` pattern
1264
- - `throw new Error("msg")` transpiled to `panic("msg")`; bare `throw expr` transpiled to `panic(expr)`
1265
- - `Error` type added to `typenative.d.ts` for IDE type checking in test files
1266
- - Closures over mutable state: functions can now capture and mutate variables from outer scopes
1267
- - Function type annotations: `() => number`, `(x: number) => string`, etc. transpiled to Go `func(...)` types
1268
- - Return type inference for functions and arrow functions: when no explicit return type annotation is present, the transpiler infers the return type from `return` statements
1269
- - Expression-body arrow functions now correctly wrap the result as `{ return expr; }` in Go
1270
-
1271
- ## [0.0.17] - 2026-02-16
1272
-
1273
- ### Added
1274
-
1275
- - Support for ternary expressions (`condition ? a : b`)
1276
- - Support for optional chaining (`obj?.prop`, `arr?.[i]`)
1277
- - Support for nullish coalescing (`??` operator)
1278
- - Support for type aliases (`type X = ...`)
1279
- - Support for type assertions (`expr as Type`)
1280
- - Support for optional properties (`prop?: Type` in interfaces/types)
1281
- - Support for default parameter values (e.g. `function(x = defaultValue)`)
1282
- - Support for enum declarations and member access (`enum X { ... }`, `X.Member`)
1283
- - Support for array methods: `map`, `filter`, `some`, `find`
1284
- - Support for chaining array methods (e.g. `arr.map(...).filter(...).join(...)`)
1285
-
1286
- ## [0.0.16] - 2025-02-15
1287
-
1288
- ### Added
1289
-
1290
- - RegExp support: regex literals (`/pattern/flags`), `new RegExp()`, `test()`, and `exec()` mapped to Go's `regexp` package
1291
- - Universal `toString()` support for numbers, booleans, arrays, and objects
1292
-
1293
- ## [0.0.15] - 2025-02-15
1294
-
1295
- ### Added
1296
-
1297
- - Classes with constructors, inheritance (`extends`, `super()`), and methods transpiled to Go structs
1298
- - Interfaces with method signatures and `extends` transpiled to Go interfaces
1299
- - Generics support for functions and classes via Go type parameters
1300
- - Async/Await transpiled to Go channels and goroutines
1301
- - Promises (`new Promise`) transpiled to channel + goroutine pattern
1302
- - `setTimeout` mapped to Go's `time.AfterFunc`
1303
- - Nullable types (`T | null`, `T | undefined`) transpiled to Go pointer types
1304
- - Object literals transpiled to Go struct literals
1305
- - `assert()` function transpiled to `panic` on failure
1306
- - `parseInt` and `parseFloat` mapped to Go's `strconv` package
1307
- - String methods: `split`, `trim`, `trimStart`, `trimEnd`, `toUpperCase`, `toLowerCase`, `indexOf`, `includes`, `startsWith`, `endsWith`, `replace`, `replaceAll`, `repeat`, `charAt`, `substring`, `slice`, `concat`, `toString`
1308
- - Array methods: `join`, `slice`, `toString` (in addition to existing `push`)
1309
- - Math methods: `ceil`, `round`, `abs`, `sqrt`, `pow`, `min`, `max` (in addition to existing `random`, `floor`)
1310
- - Non-null assertion operator (`!`) support
1311
- - Type-aware method dispatch to prevent class methods from being intercepted as built-in string/array methods
1312
- - Safe name collision avoidance for Go reserved identifiers
1313
- - Automatic Go import management for `fmt`, `math`, `math/rand`, `strings`, `strconv`, `time`
1314
-
1315
- ## [0.0.14] - 2025-05-25
1316
-
1317
- ### Added
1318
-
1319
- - Project creation with new `--new` command
1320
- - Support for functions and arrow functions
1321
- - Support for switch statements
1322
- - If statements, while loops, and for...of loops for arrays
1323
-
1324
- ### Changed
1325
-
1326
- - Replaced shelljs dependency with execa for improved process execution
1327
-
1328
- ### Fixed
1329
-
1330
- - Project creation issues
1331
-
1332
- ## [0.0.12] - 2025-05-23
1333
-
1334
- ### Changed
1335
-
1336
- - Switched transpilation target to Go language
1337
-
1338
- ## [0.0.9] - 2024-03-01
1339
-
1340
- ### Added
1341
-
1342
- - Basic types support (number, boolean, string, null, any)
1343
- - Support for variable declarations
1344
- - Support for binary expressions
1345
- - Arithmetic, comparison, logical, and increment/decrement operators
1346
-
1347
- ## [0.0.1] - 2024-02-24
1348
-
1349
- ### Added
1350
-
1351
- - Initial project setup
1352
- - Basic project structure
1353
-
1354
- ## [0.0.0] - 2022-12-20
1355
-
1356
- ### Added
1357
-
1358
- - Initial commit