@tellahq/rescript 10.1.0-alpha.2 → 10.1.4-republish-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 (410) hide show
  1. package/CHANGELOG.md +204 -2
  2. package/README.md +1 -1
  3. package/darwinarm64/bsb_helper.exe +0 -0
  4. package/darwinarm64/bsc.exe +0 -0
  5. package/darwinarm64/rescript.exe +0 -0
  6. package/docs/docson/build-schema.json +497 -516
  7. package/lib/4.06.1/bsb_helper.ml +6 -1
  8. package/lib/4.06.1/rescript.ml +1414 -1191
  9. package/lib/4.06.1/whole_compiler.ml +69844 -69069
  10. package/lib/es6/belt_internalBuckets.js +13 -13
  11. package/lib/es6/caml_float.js +5 -5
  12. package/lib/es6/caml_format.js +1 -1
  13. package/lib/es6/caml_int64.js +1 -1
  14. package/lib/es6/caml_obj.js +26 -6
  15. package/lib/es6/complex.js +4 -4
  16. package/lib/es6/js.js +3 -0
  17. package/lib/es6/js_promise2.js +16 -0
  18. package/lib/es6/jsxPPXReactSupport.js +26 -0
  19. package/lib/js/belt_internalBuckets.js +13 -13
  20. package/lib/js/caml_float.js +5 -5
  21. package/lib/js/caml_format.js +1 -1
  22. package/lib/js/caml_int64.js +1 -1
  23. package/lib/js/caml_obj.js +26 -6
  24. package/lib/js/complex.js +4 -4
  25. package/lib/js/js.js +3 -0
  26. package/lib/js/js_promise2.js +14 -0
  27. package/lib/js/jsxPPXReactSupport.js +24 -0
  28. package/lib/ocaml/arg.cmi +0 -0
  29. package/lib/ocaml/arg.cmt +0 -0
  30. package/lib/ocaml/arg.cmti +0 -0
  31. package/lib/ocaml/arg.ml +2 -2
  32. package/lib/ocaml/array.cmi +0 -0
  33. package/lib/ocaml/array.cmt +0 -0
  34. package/lib/ocaml/array.cmti +0 -0
  35. package/lib/ocaml/arrayLabels.cmi +0 -0
  36. package/lib/ocaml/arrayLabels.cmt +0 -0
  37. package/lib/ocaml/arrayLabels.cmti +0 -0
  38. package/lib/ocaml/belt.cmt +0 -0
  39. package/lib/ocaml/belt_Array.cmi +0 -0
  40. package/lib/ocaml/belt_Array.cmt +0 -0
  41. package/lib/ocaml/belt_Array.cmti +0 -0
  42. package/lib/ocaml/belt_Float.cmt +0 -0
  43. package/lib/ocaml/belt_Float.cmti +0 -0
  44. package/lib/ocaml/belt_HashMap.cmi +0 -0
  45. package/lib/ocaml/belt_HashMap.cmt +0 -0
  46. package/lib/ocaml/belt_HashMap.cmti +0 -0
  47. package/lib/ocaml/belt_HashMapInt.cmi +0 -0
  48. package/lib/ocaml/belt_HashMapInt.cmt +0 -0
  49. package/lib/ocaml/belt_HashMapInt.cmti +0 -0
  50. package/lib/ocaml/belt_HashMapString.cmi +0 -0
  51. package/lib/ocaml/belt_HashMapString.cmt +0 -0
  52. package/lib/ocaml/belt_HashMapString.cmti +0 -0
  53. package/lib/ocaml/belt_HashSet.cmi +0 -0
  54. package/lib/ocaml/belt_HashSet.cmt +0 -0
  55. package/lib/ocaml/belt_HashSet.cmti +0 -0
  56. package/lib/ocaml/belt_HashSetInt.cmi +0 -0
  57. package/lib/ocaml/belt_HashSetInt.cmt +0 -0
  58. package/lib/ocaml/belt_HashSetInt.cmti +0 -0
  59. package/lib/ocaml/belt_HashSetString.cmi +0 -0
  60. package/lib/ocaml/belt_HashSetString.cmt +0 -0
  61. package/lib/ocaml/belt_HashSetString.cmti +0 -0
  62. package/lib/ocaml/belt_Id.cmi +0 -0
  63. package/lib/ocaml/belt_Id.cmt +0 -0
  64. package/lib/ocaml/belt_Id.cmti +0 -0
  65. package/lib/ocaml/belt_Int.cmt +0 -0
  66. package/lib/ocaml/belt_Int.cmti +0 -0
  67. package/lib/ocaml/belt_List.cmi +0 -0
  68. package/lib/ocaml/belt_List.cmt +0 -0
  69. package/lib/ocaml/belt_List.cmti +0 -0
  70. package/lib/ocaml/belt_Map.cmi +0 -0
  71. package/lib/ocaml/belt_Map.cmt +0 -0
  72. package/lib/ocaml/belt_Map.cmti +0 -0
  73. package/lib/ocaml/belt_MapDict.cmi +0 -0
  74. package/lib/ocaml/belt_MapDict.cmt +0 -0
  75. package/lib/ocaml/belt_MapDict.cmti +0 -0
  76. package/lib/ocaml/belt_MapInt.cmi +0 -0
  77. package/lib/ocaml/belt_MapInt.cmt +0 -0
  78. package/lib/ocaml/belt_MapInt.cmti +0 -0
  79. package/lib/ocaml/belt_MapString.cmi +0 -0
  80. package/lib/ocaml/belt_MapString.cmt +0 -0
  81. package/lib/ocaml/belt_MapString.cmti +0 -0
  82. package/lib/ocaml/belt_MutableMap.cmi +0 -0
  83. package/lib/ocaml/belt_MutableMap.cmt +0 -0
  84. package/lib/ocaml/belt_MutableMap.cmti +0 -0
  85. package/lib/ocaml/belt_MutableMapInt.cmi +0 -0
  86. package/lib/ocaml/belt_MutableMapInt.cmt +0 -0
  87. package/lib/ocaml/belt_MutableMapInt.cmti +0 -0
  88. package/lib/ocaml/belt_MutableMapString.cmi +0 -0
  89. package/lib/ocaml/belt_MutableMapString.cmt +0 -0
  90. package/lib/ocaml/belt_MutableMapString.cmti +0 -0
  91. package/lib/ocaml/belt_MutableQueue.cmi +0 -0
  92. package/lib/ocaml/belt_MutableQueue.cmt +0 -0
  93. package/lib/ocaml/belt_MutableQueue.cmti +0 -0
  94. package/lib/ocaml/belt_MutableSet.cmi +0 -0
  95. package/lib/ocaml/belt_MutableSet.cmt +0 -0
  96. package/lib/ocaml/belt_MutableSet.cmti +0 -0
  97. package/lib/ocaml/belt_MutableSetInt.cmi +0 -0
  98. package/lib/ocaml/belt_MutableSetInt.cmt +0 -0
  99. package/lib/ocaml/belt_MutableSetInt.cmti +0 -0
  100. package/lib/ocaml/belt_MutableSetString.cmi +0 -0
  101. package/lib/ocaml/belt_MutableSetString.cmt +0 -0
  102. package/lib/ocaml/belt_MutableSetString.cmti +0 -0
  103. package/lib/ocaml/belt_MutableStack.cmi +0 -0
  104. package/lib/ocaml/belt_MutableStack.cmt +0 -0
  105. package/lib/ocaml/belt_MutableStack.cmti +0 -0
  106. package/lib/ocaml/belt_Option.cmi +0 -0
  107. package/lib/ocaml/belt_Option.cmt +0 -0
  108. package/lib/ocaml/belt_Option.cmti +0 -0
  109. package/lib/ocaml/belt_Range.cmi +0 -0
  110. package/lib/ocaml/belt_Range.cmt +0 -0
  111. package/lib/ocaml/belt_Range.cmti +0 -0
  112. package/lib/ocaml/belt_Result.cmi +0 -0
  113. package/lib/ocaml/belt_Result.cmt +0 -0
  114. package/lib/ocaml/belt_Result.cmti +0 -0
  115. package/lib/ocaml/belt_Set.cmi +0 -0
  116. package/lib/ocaml/belt_Set.cmt +0 -0
  117. package/lib/ocaml/belt_Set.cmti +0 -0
  118. package/lib/ocaml/belt_SetDict.cmi +0 -0
  119. package/lib/ocaml/belt_SetDict.cmt +0 -0
  120. package/lib/ocaml/belt_SetDict.cmti +0 -0
  121. package/lib/ocaml/belt_SetInt.cmi +0 -0
  122. package/lib/ocaml/belt_SetInt.cmt +0 -0
  123. package/lib/ocaml/belt_SetInt.cmti +0 -0
  124. package/lib/ocaml/belt_SetString.cmi +0 -0
  125. package/lib/ocaml/belt_SetString.cmt +0 -0
  126. package/lib/ocaml/belt_SetString.cmti +0 -0
  127. package/lib/ocaml/belt_SortArray.cmi +0 -0
  128. package/lib/ocaml/belt_SortArray.cmt +0 -0
  129. package/lib/ocaml/belt_SortArray.cmti +0 -0
  130. package/lib/ocaml/belt_SortArrayInt.cmt +0 -0
  131. package/lib/ocaml/belt_SortArrayInt.cmti +0 -0
  132. package/lib/ocaml/belt_SortArrayString.cmt +0 -0
  133. package/lib/ocaml/belt_SortArrayString.cmti +0 -0
  134. package/lib/ocaml/belt_internalAVLset.cmt +0 -0
  135. package/lib/ocaml/belt_internalAVLset.cmti +0 -0
  136. package/lib/ocaml/belt_internalAVLtree.cmt +0 -0
  137. package/lib/ocaml/belt_internalAVLtree.cmti +0 -0
  138. package/lib/ocaml/belt_internalBuckets.cmt +0 -0
  139. package/lib/ocaml/belt_internalBuckets.cmti +0 -0
  140. package/lib/ocaml/belt_internalBucketsType.cmt +0 -0
  141. package/lib/ocaml/belt_internalBucketsType.cmti +0 -0
  142. package/lib/ocaml/belt_internalMapInt.cmt +0 -0
  143. package/lib/ocaml/belt_internalMapString.cmt +0 -0
  144. package/lib/ocaml/belt_internalSetBuckets.cmt +0 -0
  145. package/lib/ocaml/belt_internalSetBuckets.cmti +0 -0
  146. package/lib/ocaml/belt_internalSetInt.cmt +0 -0
  147. package/lib/ocaml/belt_internalSetString.cmt +0 -0
  148. package/lib/ocaml/belt_internals.cmti +0 -0
  149. package/lib/ocaml/buffer.cmi +0 -0
  150. package/lib/ocaml/buffer.cmt +0 -0
  151. package/lib/ocaml/buffer.cmti +0 -0
  152. package/lib/ocaml/bytes.cmi +0 -0
  153. package/lib/ocaml/bytes.cmt +0 -0
  154. package/lib/ocaml/bytes.cmti +0 -0
  155. package/lib/ocaml/bytesLabels.cmi +0 -0
  156. package/lib/ocaml/bytesLabels.cmt +0 -0
  157. package/lib/ocaml/bytesLabels.cmti +0 -0
  158. package/lib/ocaml/callback.cmi +0 -0
  159. package/lib/ocaml/callback.cmt +0 -0
  160. package/lib/ocaml/callback.cmti +0 -0
  161. package/lib/ocaml/camlinternalLazy.cmi +0 -0
  162. package/lib/ocaml/camlinternalLazy.cmt +0 -0
  163. package/lib/ocaml/camlinternalLazy.cmti +0 -0
  164. package/lib/ocaml/camlinternalMod.cmi +0 -0
  165. package/lib/ocaml/camlinternalMod.cmt +0 -0
  166. package/lib/ocaml/camlinternalMod.cmti +0 -0
  167. package/lib/ocaml/char.cmi +0 -0
  168. package/lib/ocaml/char.cmt +0 -0
  169. package/lib/ocaml/char.cmti +0 -0
  170. package/lib/ocaml/complex.cmi +0 -0
  171. package/lib/ocaml/complex.cmt +0 -0
  172. package/lib/ocaml/complex.cmti +0 -0
  173. package/lib/ocaml/digest.cmi +0 -0
  174. package/lib/ocaml/digest.cmt +0 -0
  175. package/lib/ocaml/digest.cmti +0 -0
  176. package/lib/ocaml/dom.cmt +0 -0
  177. package/lib/ocaml/dom_storage.cmt +0 -0
  178. package/lib/ocaml/dom_storage2.cmt +0 -0
  179. package/lib/ocaml/filename.cmi +0 -0
  180. package/lib/ocaml/filename.cmt +0 -0
  181. package/lib/ocaml/filename.cmti +0 -0
  182. package/lib/ocaml/genlex.cmi +0 -0
  183. package/lib/ocaml/genlex.cmt +0 -0
  184. package/lib/ocaml/genlex.cmti +0 -0
  185. package/lib/ocaml/hashtbl.cmi +0 -0
  186. package/lib/ocaml/hashtbl.cmt +0 -0
  187. package/lib/ocaml/hashtbl.cmti +0 -0
  188. package/lib/ocaml/hashtblLabels.cmi +0 -0
  189. package/lib/ocaml/hashtblLabels.cmt +0 -0
  190. package/lib/ocaml/int32.cmi +0 -0
  191. package/lib/ocaml/int32.cmt +0 -0
  192. package/lib/ocaml/int32.cmti +0 -0
  193. package/lib/ocaml/int64.cmi +0 -0
  194. package/lib/ocaml/int64.cmt +0 -0
  195. package/lib/ocaml/int64.cmti +0 -0
  196. package/lib/ocaml/js.cmi +0 -0
  197. package/lib/ocaml/js.cmt +0 -0
  198. package/lib/ocaml/js.ml +3 -0
  199. package/lib/ocaml/js_OO.cmt +0 -0
  200. package/lib/ocaml/js_array.cmt +0 -0
  201. package/lib/ocaml/js_array2.cmt +0 -0
  202. package/lib/ocaml/js_bigint.cmt +0 -0
  203. package/lib/ocaml/js_cast.cmt +0 -0
  204. package/lib/ocaml/js_cast.cmti +0 -0
  205. package/lib/ocaml/js_console.cmt +0 -0
  206. package/lib/ocaml/js_date.cmt +0 -0
  207. package/lib/ocaml/js_dict.cmi +0 -0
  208. package/lib/ocaml/js_dict.cmt +0 -0
  209. package/lib/ocaml/js_dict.cmti +0 -0
  210. package/lib/ocaml/js_exn.cmt +0 -0
  211. package/lib/ocaml/js_exn.cmti +0 -0
  212. package/lib/ocaml/js_float.cmt +0 -0
  213. package/lib/ocaml/js_global.cmt +0 -0
  214. package/lib/ocaml/js_int.cmt +0 -0
  215. package/lib/ocaml/js_json.cmi +0 -0
  216. package/lib/ocaml/js_json.cmt +0 -0
  217. package/lib/ocaml/js_json.cmti +0 -0
  218. package/lib/ocaml/js_list.cmi +0 -0
  219. package/lib/ocaml/js_list.cmt +0 -0
  220. package/lib/ocaml/js_list.cmti +0 -0
  221. package/lib/ocaml/js_map.cmt +0 -0
  222. package/lib/ocaml/js_mapperRt.cmt +0 -0
  223. package/lib/ocaml/js_mapperRt.cmti +0 -0
  224. package/lib/ocaml/js_math.cmi +0 -0
  225. package/lib/ocaml/js_math.cmt +0 -0
  226. package/lib/ocaml/js_math.ml +1 -1
  227. package/lib/ocaml/js_null.cmi +0 -0
  228. package/lib/ocaml/js_null.cmt +0 -0
  229. package/lib/ocaml/js_null.cmti +0 -0
  230. package/lib/ocaml/js_null_undefined.cmi +0 -0
  231. package/lib/ocaml/js_null_undefined.cmt +0 -0
  232. package/lib/ocaml/js_null_undefined.cmti +0 -0
  233. package/lib/ocaml/js_obj.cmt +0 -0
  234. package/lib/ocaml/js_option.cmi +0 -0
  235. package/lib/ocaml/js_option.cmt +0 -0
  236. package/lib/ocaml/js_option.cmti +0 -0
  237. package/lib/ocaml/js_promise.cmi +0 -0
  238. package/lib/ocaml/js_promise.cmt +0 -0
  239. package/lib/ocaml/js_promise.ml +19 -19
  240. package/lib/ocaml/js_promise2.cmi +0 -0
  241. package/lib/ocaml/js_promise2.cmt +0 -0
  242. package/lib/ocaml/js_promise2.res +58 -0
  243. package/lib/ocaml/js_re.cmi +0 -0
  244. package/lib/ocaml/js_re.cmt +0 -0
  245. package/lib/ocaml/js_result.cmt +0 -0
  246. package/lib/ocaml/js_result.cmti +0 -0
  247. package/lib/ocaml/js_set.cmt +0 -0
  248. package/lib/ocaml/js_string.cmi +0 -0
  249. package/lib/ocaml/js_string.cmt +0 -0
  250. package/lib/ocaml/js_string2.cmi +0 -0
  251. package/lib/ocaml/js_string2.cmt +0 -0
  252. package/lib/ocaml/js_typed_array.cmi +0 -0
  253. package/lib/ocaml/js_typed_array.cmt +0 -0
  254. package/lib/ocaml/js_typed_array2.cmi +0 -0
  255. package/lib/ocaml/js_typed_array2.cmt +0 -0
  256. package/lib/ocaml/js_types.cmt +0 -0
  257. package/lib/ocaml/js_types.cmti +0 -0
  258. package/lib/ocaml/js_undefined.cmi +0 -0
  259. package/lib/ocaml/js_undefined.cmt +0 -0
  260. package/lib/ocaml/js_undefined.cmti +0 -0
  261. package/lib/ocaml/js_vector.cmi +0 -0
  262. package/lib/ocaml/js_vector.cmt +0 -0
  263. package/lib/ocaml/js_vector.cmti +0 -0
  264. package/lib/ocaml/js_weakmap.cmt +0 -0
  265. package/lib/ocaml/js_weakset.cmt +0 -0
  266. package/lib/ocaml/jsx.cmi +0 -0
  267. package/lib/ocaml/jsx.cmt +0 -0
  268. package/lib/ocaml/{jsx.ml → jsx.res} +13 -12
  269. package/lib/ocaml/jsxDOM.cmi +0 -0
  270. package/lib/ocaml/jsxDOM.cmt +0 -0
  271. package/lib/ocaml/jsxDOM.res +620 -0
  272. package/lib/ocaml/jsxDOMStyle.cmi +0 -0
  273. package/lib/ocaml/jsxDOMStyle.cmt +0 -0
  274. package/lib/ocaml/jsxDOMStyle.ml +4 -0
  275. package/lib/ocaml/jsxEvent.cmt +0 -0
  276. package/lib/ocaml/jsxPPXReactSupport.cmi +0 -0
  277. package/lib/ocaml/jsxPPXReactSupport.cmt +0 -0
  278. package/{scripts/LICENSE.ml → lib/ocaml/jsxPPXReactSupport.res} +25 -4
  279. package/lib/ocaml/lazy.cmi +0 -0
  280. package/lib/ocaml/lazy.cmt +0 -0
  281. package/lib/ocaml/lazy.cmti +0 -0
  282. package/lib/ocaml/lexing.cmi +0 -0
  283. package/lib/ocaml/lexing.cmt +0 -0
  284. package/lib/ocaml/lexing.cmti +0 -0
  285. package/lib/ocaml/list.cmi +0 -0
  286. package/lib/ocaml/list.cmt +0 -0
  287. package/lib/ocaml/list.cmti +0 -0
  288. package/lib/ocaml/listLabels.cmi +0 -0
  289. package/lib/ocaml/listLabels.cmt +0 -0
  290. package/lib/ocaml/listLabels.cmti +0 -0
  291. package/lib/ocaml/map.cmi +0 -0
  292. package/lib/ocaml/map.cmt +0 -0
  293. package/lib/ocaml/map.cmti +0 -0
  294. package/lib/ocaml/mapLabels.cmi +0 -0
  295. package/lib/ocaml/mapLabels.cmt +0 -0
  296. package/lib/ocaml/moreLabels.cmi +0 -0
  297. package/lib/ocaml/moreLabels.cmt +0 -0
  298. package/lib/ocaml/moreLabels.cmti +0 -0
  299. package/lib/ocaml/node.cmi +0 -0
  300. package/lib/ocaml/node.cmt +0 -0
  301. package/lib/ocaml/node_buffer.cmi +0 -0
  302. package/lib/ocaml/node_buffer.cmt +0 -0
  303. package/lib/ocaml/node_child_process.cmi +0 -0
  304. package/lib/ocaml/node_child_process.cmt +0 -0
  305. package/lib/ocaml/node_fs.cmi +0 -0
  306. package/lib/ocaml/node_fs.cmt +0 -0
  307. package/lib/ocaml/node_module.cmi +0 -0
  308. package/lib/ocaml/node_module.cmt +0 -0
  309. package/lib/ocaml/node_path.cmt +0 -0
  310. package/lib/ocaml/node_process.cmi +0 -0
  311. package/lib/ocaml/node_process.cmt +0 -0
  312. package/lib/ocaml/node_process.cmti +0 -0
  313. package/lib/ocaml/obj.cmi +0 -0
  314. package/lib/ocaml/obj.cmt +0 -0
  315. package/lib/ocaml/obj.cmti +0 -0
  316. package/lib/ocaml/parsing.cmi +0 -0
  317. package/lib/ocaml/parsing.cmt +0 -0
  318. package/lib/ocaml/parsing.cmti +0 -0
  319. package/lib/ocaml/pervasives.cmi +0 -0
  320. package/lib/ocaml/pervasives.cmt +0 -0
  321. package/lib/ocaml/pervasives.cmti +0 -0
  322. package/lib/ocaml/printexc.cmi +0 -0
  323. package/lib/ocaml/printexc.cmt +0 -0
  324. package/lib/ocaml/printexc.cmti +0 -0
  325. package/lib/ocaml/printexc.ml +28 -32
  326. package/lib/ocaml/queue.cmi +0 -0
  327. package/lib/ocaml/queue.cmt +0 -0
  328. package/lib/ocaml/queue.cmti +0 -0
  329. package/lib/ocaml/random.cmi +0 -0
  330. package/lib/ocaml/random.cmt +0 -0
  331. package/lib/ocaml/random.cmti +0 -0
  332. package/lib/ocaml/set.cmi +0 -0
  333. package/lib/ocaml/set.cmt +0 -0
  334. package/lib/ocaml/set.cmti +0 -0
  335. package/lib/ocaml/setLabels.cmi +0 -0
  336. package/lib/ocaml/setLabels.cmt +0 -0
  337. package/lib/ocaml/sort.cmi +0 -0
  338. package/lib/ocaml/sort.cmt +0 -0
  339. package/lib/ocaml/sort.cmti +0 -0
  340. package/lib/ocaml/stack.cmi +0 -0
  341. package/lib/ocaml/stack.cmt +0 -0
  342. package/lib/ocaml/stack.cmti +0 -0
  343. package/lib/ocaml/stdLabels.cmi +0 -0
  344. package/lib/ocaml/stdLabels.cmt +0 -0
  345. package/lib/ocaml/stdLabels.cmti +0 -0
  346. package/lib/ocaml/stream.cmi +0 -0
  347. package/lib/ocaml/stream.cmt +0 -0
  348. package/lib/ocaml/stream.cmti +0 -0
  349. package/lib/ocaml/string.cmi +0 -0
  350. package/lib/ocaml/string.cmt +0 -0
  351. package/lib/ocaml/string.cmti +0 -0
  352. package/lib/ocaml/stringLabels.cmi +0 -0
  353. package/lib/ocaml/stringLabels.cmt +0 -0
  354. package/lib/ocaml/stringLabels.cmti +0 -0
  355. package/lib/ocaml/sys.cmi +0 -0
  356. package/lib/ocaml/sys.cmt +0 -0
  357. package/lib/ocaml/sys.cmti +0 -0
  358. package/lib/ocaml/uchar.cmi +0 -0
  359. package/lib/ocaml/uchar.cmt +0 -0
  360. package/lib/ocaml/uchar.cmti +0 -0
  361. package/package.json +2 -1
  362. package/scripts/buildNinjaBinary.js +29 -0
  363. package/scripts/install.js +7 -3
  364. package/scripts/installUtils.js +9 -1
  365. package/scripts/rescript_arg.js +2 -4
  366. package/scripts/rescript_format.js +73 -39
  367. package/win32/refmt.exe +0 -0
  368. package/darwin/bsb_helper.exe +0 -0
  369. package/darwin/bsc.exe +0 -0
  370. package/darwin/ninja.COPYING +0 -202
  371. package/darwin/ninja.exe +0 -0
  372. package/darwin/rescript.exe +0 -0
  373. package/darwinarm64/ninja.COPYING +0 -202
  374. package/freebsd/ninja.COPYING +0 -202
  375. package/lib/ocaml/jsxDOM.ml +0 -2087
  376. package/linux/bsb_helper.exe +0 -0
  377. package/linux/bsc.exe +0 -0
  378. package/linux/ninja.COPYING +0 -202
  379. package/linux/ninja.exe +0 -0
  380. package/linux/rescript.exe +0 -0
  381. package/openbsd/.keep +0 -0
  382. package/scripts/buckle_lto.js +0 -55
  383. package/scripts/build_sorted.ml +0 -233
  384. package/scripts/caml_oo_curry_gen.ml +0 -71
  385. package/scripts/checkUnused.js +0 -63
  386. package/scripts/ciTest.js +0 -172
  387. package/scripts/cover.sh +0 -3
  388. package/scripts/curry_gen.ml +0 -167
  389. package/scripts/dbg +0 -13
  390. package/scripts/dedupe.js +0 -44
  391. package/scripts/doc_gen.js +0 -117
  392. package/scripts/js_internal_gen.js +0 -135
  393. package/scripts/jsconfig.json +0 -12
  394. package/scripts/littlecase.js +0 -21
  395. package/scripts/ninja.js +0 -1980
  396. package/scripts/pack.js +0 -107
  397. package/scripts/prebuilt.js +0 -99
  398. package/scripts/release.js +0 -41
  399. package/scripts/repl.js +0 -151
  400. package/scripts/shake.js +0 -138
  401. package/scripts/tasks.js +0 -149
  402. package/scripts/test.sh +0 -3
  403. package/scripts/tmp.js +0 -98
  404. package/scripts/validate.js +0 -41
  405. package/vendor/ninja.tar.gz +0 -0
  406. package/win32/bsb_helper.exe +0 -0
  407. package/win32/bsc.exe +0 -0
  408. package/win32/ninja.COPYING +0 -202
  409. package/win32/ninja.exe +0 -0
  410. package/win32/rescript.exe +0 -0
package/CHANGELOG.md CHANGED
@@ -10,15 +10,215 @@
10
10
  > - :house: [Internal]
11
11
  > - :nail_care: [Polish]
12
12
 
13
- # master
13
+ # 10.1.4
14
+
15
+ #### :bug: Bug Fix
16
+ - Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
17
+ - Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
18
+ - Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
19
+ - Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
20
+
21
+ #### :rocket: New Feature
22
+ - Add support for toplevel `await` https://github.com/rescript-lang/rescript-compiler/pull/6054
23
+
24
+ #### :nail_care: Polish
25
+
26
+ - Better error message for extension point https://github.com/rescript-lang/rescript-compiler/pull/6057
27
+ - Improve format check help https://github.com/rescript-lang/rescript-compiler/pull/6056
28
+ - Deprecate unsafe ``` j`$(a)$(b)` ``` interpolation: use string templates ``` `${a}${b}` ``` instead https://github.com/rescript-lang/rescript-compiler/pull/6067
29
+
30
+ # 10.1.3
31
+
32
+ #### :rocket: New Feature
33
+
34
+ - Add experimental suppport for directives. An annotation such as `@@directive("use client;")` emits `use client;` verbatim before imports https://github.com/rescript-lang/rescript-compiler/pull/5999
35
+ - `genType`: add `Core` standard library support for the following builtin types: `Null.t`, `Nullable.t`, `Undefined.t`, `Dict.t<_>`, `Promise.t<_>`, `Date.t`, `BigInt.t`, `RegExp.t`, `Map.t<_, _>`, `WeakMap.t<_, _>`, `Set<_>`, `WeakSet<_>` https://github.com/rescript-lang/rescript-compiler/pull/6024
36
+
37
+ #### :boom: Breaking Change
38
+
39
+ - `genType`: streamline the treatment of optionals as undefined https://github.com/rescript-lang/rescript-compiler/pull/6024
40
+ - Represent `option<t>` as `undefined | t` instead of `null | undefined | t`. This is more permissive when importing functions taking optional values (allows to use option types), but stricter when e.g. exporting ReScript functions taking arguments of option type. Fallback: use `Js.undefined<_>` instead.
41
+ - Represent `{x:option<string>}` as `{x:(undefined | string)}` instead of `{x?: string}`. This is more in line with TS's behaviour. Fallback: use `{x?:string}`.
42
+
43
+ #### :nail_care: Polish
44
+ - Add the gap property to jsxDOMStyle https://github.com/rescript-lang/rescript-compiler/pull/5956
45
+
46
+ #### :bug: Bug Fix
47
+
48
+ - Fix issue where error messages related to non-existent props were displayed without location information https://github.com/rescript-lang/syntax/pull/730
49
+ - Fix issue where uncurried functions were incorrectly converting the type of a prop given as a default value to curried https://github.com/rescript-lang/syntax/pull/731
50
+ - Fix issue with nested async functions, where the inner function would be emitted without `async` https://github.com/rescript-lang/rescript-compiler/pull/5984
51
+ - Fix issue with printing async functions with locally abstract types https://github.com/rescript-lang/syntax/pull/732
52
+ - Fix issue with async context and locally abstract types https://github.com/rescript-lang/rescript-compiler/pull/5985
53
+ - Fix support for recursive components in JSX V4 https://github.com/rescript-lang/syntax/pull/733
54
+ - GenType: fix issue with V3 compatibility mode (see https://github.com/rescript-lang/rescript-compiler/issues/5990) https://github.com/rescript-lang/rescript-compiler/pull/5992
55
+ - Fix issue with overlapping labelled argument with default value https://github.com/rescript-lang/syntax/pull/734
56
+ - Fix issue with using alias and default value together https://github.com/rescript-lang/syntax/pull/734
57
+ - Fix issue in `Js.Promise2` where `then` and `catch` were returning `undefined` https://github.com/rescript-lang/rescript-compiler/pull/5996
58
+ - Fix issue in the compiler back-end where async functions passed to an `@uncurry` external would be inlined and transformed in a way that loses async https://github.com/rescript-lang/rescript-compiler/pull/6011
59
+ - Fix location issue for the treatment of `async` functions where hovering on the body with a type error would show `'a => promise<'a>` everywhere https://github.com/rescript-lang/rescript-compiler/pull/6014
60
+ - Fix formatting of `switch` expressions that contain braced `cases` inside https://github.com/rescript-lang/syntax/pull/735
61
+ - Fix formatting of props spread for multiline JSX expression https://github.com/rescript-lang/syntax/pull/736
62
+ - Support `@gentype.import` as an alias to `@genType.import` in the compiler https://github.com/rescript-lang/rescript-compiler/pull/6021
63
+ - In GenType, check annotations also in module types to decide whether to produce the `.gen.tsx` file https://github.com/rescript-lang/rescript-compiler/pull/5903
64
+ - Fix issue with JSX V4 and newtype https://github.com/rescript-lang/syntax/pull/737
65
+ - Fix issue with JSX V4 when components are nested https://github.com/rescript-lang/syntax/pull/738
66
+ - Fix issue where generic compare on `float` values would be different from the compare for type `float` https://github.com/rescript-lang/rescript-compiler/pull/6043
67
+ - Improve code generated for default arguments in JSX V4 https://github.com/rescript-lang/syntax/pull/739
68
+ - Fix issue with JSX V4 props of the form `~p as module(...)` https://github.com/rescript-lang/syntax/pull/739
69
+
70
+ # 10.1.2
71
+
72
+ #### :bug: Bug Fix
73
+
74
+ - Fix an issue where error messages related to duplicate props were displayed without a loc and were unclear https://github.com/rescript-lang/syntax/pull/728
75
+
76
+ # 10.1.1
77
+
78
+ #### :boom: Breaking Change
79
+
80
+ - Parse the attributes of labelled argument to the pattern attributes of argument instead of function. https://github.com/rescript-lang/syntax/pull/722
81
+ - The prop names duplicated to keyword are not mangled automatically in JSX v4.
82
+ - Use `@as` instead
83
+
84
+ #### :rocket: New Feature
85
+
86
+ - Add support for empty inlined record literal `{}` for inlined records where all fields are optional https://github.com/rescript-lang/rescript-compiler/pull/5900
87
+
88
+ #### :bug: Bug Fix
89
+
90
+ - Prevent inlining of async functions in additional cases https://github.com/rescript-lang/rescript-compiler/issues/5860
91
+ - Revert to ubuntu-18.04 in CI to support Linux versions with older glibc https://github.com/rescript-lang/rescript-compiler/issues/5868
92
+ - Fix build error where aliasing arguments to `_` in the make function with JSX V4. https://github.com/rescript-lang/syntax/pull/720
93
+ - Fix parsing of spread props as an expression in JSX V4 https://github.com/rescript-lang/syntax/pull/721
94
+ - Fix dropping attributes from props in make function in JSX V4 https://github.com/rescript-lang/syntax/pull/723
95
+ - Fix an issue where error messages related to duplicate props were displayed without a loc and were unclear https://github.com/rescript-lang/syntax/pull/728
96
+
97
+ # 10.1.0
98
+
99
+ #### :bug: Bug Fix
100
+
101
+ - Fix issue where no error was reported when ? was used for non-optional fields. https://github.com/rescript-lang/rescript-compiler/pull/5853
102
+ - Fix issue where optional fields in inline records were not supported and would cause type errors https://github.com/rescript-lang/rescript-compiler/pull/5827
103
+
104
+ # 10.1.0-rc.5
105
+
106
+ #### :bug: Bug Fix
107
+
108
+ - Prevent inlining of async functions in last stage of the compiler when the functions are not exported (not in interface file or shadowed) https://github.com/rescript-lang/rescript-compiler/pull/5790
109
+
110
+ # 10.1.0-rc.4
111
+
112
+ #### :rocket: New Feature
113
+
114
+ - Support format check with `rescript format -check`. https://github.com/rescript-lang/rescript-compiler/pull/5760
115
+
116
+ #### :bug: Bug Fix
117
+
118
+ - Fix issue where the last line of `rescript format --help` usage was being swallowed https://github.com/rescript-lang/rescript-compiler/pull/5760
119
+ - Specialize the printing of the rhs of a record field assignment for optional values `{x: ? e}` https://github.com/rescript-lang/syntax/issues/714
120
+
121
+ # 10.1.0-rc.3
122
+
123
+ #### :rocket: New Feature
124
+
125
+ - Support the use of spread anywhere in list creation (e.g. `list{...x, 1, ...y, ...z}`). https://github.com/rescript-lang/syntax/pull/692
126
+ - Add support for the argument of `@react.component` to set a props type from the outside. https://github.com/rescript-lang/syntax/pull/699
127
+
128
+ #### :bug: Bug Fix
129
+
130
+ - Fix issue where the JSX key type is not an optional string https://github.com/rescript-lang/syntax/pull/693
131
+ - Prevent inlining of async functions https://github.com/rescript-lang/rescript-compiler/issues/5754
132
+ - Fix build error for JSX fragment without children https://github.com/rescript-lang/syntax/pull/704
133
+ - Fix issue where async as an id cannot be used with application and labelled arguments https://github.com/rescript-lang/syntax/issues/707
134
+ - Fix 5557: the exhaustive checking for char is incorrect during the unicode migration https://github.com/rescript-lang/rescript-compiler/pull/5749
135
+ - Fix 5753: the comment for unicode char is inaccurate https://github.com/rescript-lang/syntax/pull/709
136
+ - Treat await as almost-unary operator weaker than pipe so `await foo->bar` means `await (foo->bar)` https://github.com/rescript-lang/syntax/pull/711
137
+
138
+ #### :nail_care: Polish
139
+
140
+ - Change payload of `Pconst_char` from `char` to `int` https://github.com/rescript-lang/syntax/pull/709
141
+
142
+ # 10.1.0-rc.2
143
+
144
+ #### :bug: Bug Fix
145
+
146
+ - Fix issue with changes not being applied with React Native's Metro bundler for files with warnings https://github.com/rescript-lang/rescript-compiler/pull/5738
147
+ - Fix emitting unary minus for floats in case of negative constants https://github.com/rescript-lang/rescript-compiler/pull/5737
148
+ - Fix issue where a spread `...x` in non-last position would not be reported as syntax error https://github.com/rescript-lang/syntax/pull/673/
149
+ - Fix issue where the formatter would delete `async` in a function with labelled arguments.
150
+ - Fix several printing issues with `async` including an infinite loop https://github.com/rescript-lang/syntax/pull/680
151
+ - Fix issue where certain JSX expressions would be formatted differenctly in compiler 10.1.0-rc.1 https://github.com/rescript-lang/syntax/issues/675
152
+ - Fix issue where printing nested pipe discards await https://github.com/rescript-lang/syntax/issues/687
153
+
154
+ # 10.1.0-rc.1
155
+
156
+ #### :boom: Breaking Change
157
+
158
+ - Deprecate DOM element attributes in `JsxDOM.domProps`: `begin_`, `end_`, `to_`
159
+ - Use `begin`, `end`, `to` instead.
160
+ - Emit an error when a `@string` or `@int` attribute is used in a V4 component https://github.com/rescript-lang/rescript-compiler/issues/5724
161
+
162
+ ## :rocket: New Feature
163
+
164
+ - Add extra variants for output filename suffixes in `bsconfig.json`: `.bs.mjs` and `.bs.cjs` are allowed https://github.com/rescript-lang/rescript-compiler/pull/5631
165
+ - Safe promises: t-first Js.Promise2 bindings, and remove warning for nested promises https://github.com/rescript-lang/rescript-compiler/pull/5709
166
+
167
+ #### :bug: Bug Fix
168
+
169
+ - Fix issue where uncurried async functions were emitted without `async` https://github.com/rescript-lang/rescript-compiler/pull/5718
170
+ - Fix location issue in error messages with JSX V4 where the multiple props types are defined https://github.com/rescript-lang/syntax/pull/655
171
+ - Fix location issue in make function in JSX V4 that breaks dead code elimination https://github.com/rescript-lang/syntax/pull/660
172
+ - Fix parsing (hence pretty printing) of expressions with underscore `_` and comments.
173
+ - Fix printing of comments inside JSX tag https://github.com/rescript-lang/syntax/pull/664
174
+ - Fix issue where formatter erases tail comments inside JSX tag https://github.com/rescript-lang/syntax/issues/663
175
+ - Fix issue where the JSX prop has type annotation of the first class module https://github.com/rescript-lang/syntax/pull/666
176
+ - Fix issue where an empty record literal {} expected to have a non-record type would type check https://github.com/rescript-lang/rescript-compiler/pull/5729
177
+
178
+ #### :eyeglasses: Spec Compliance
179
+
180
+ - Functions with consecutive dots now print as multiple arrow functions like in JavaScript.
181
+
182
+ #### :nail_care: Polish
183
+
184
+ - Add `loading`, `aria-*` DOM element attributes in `JsxDOM.domProps`: `ariaCurrent`, `ariaInvalid`, `ariaAutocomplete`, etc.
185
+ - Change the internal representation of props for the lowercase components to record. https://github.com/rescript-lang/syntax/pull/665
186
+ - Add `JsxPPXReactSupport` module to relocate the helper functions for JSX v4 from `rescript-react`
187
+
188
+ # 10.1.0-alpha.2
189
+
190
+ #### :rocket: New Feature
191
+
192
+ - Fix pretty printer where it would print doc comments on the same line as other attributes https://github.com/rescript-lang/syntax/pull/642
193
+ - Propagte `"jsx"` configuration to dependencies https://github.com/rescript-lang/rescript-compiler/pull/5661
194
+ - Add support for empty record literal `{}` for records where all fields are optional https://github.com/rescript-lang/rescript-compiler/pull/5658
195
+ - Add support for empty record type (e.g. `type empty = {}`) https://github.com/rescript-lang/rescript-compiler/pull/5658
196
+
197
+ #### :bug: Bug Fix
198
+
199
+ - Fix issue in formatting JSX spread props https://github.com/rescript-lang/syntax/pull/644
200
+ - Fix location issue in error messages with JSX V4 where the body of the component is an application https://github.com/rescript-lang/syntax/pull/633
201
+ - Fix printing of type declarations in error message where they would be considered recursive by default
202
+ - Fix issue where the printer would omit attributes for `->` and `|>` https://github.com/rescript-lang/syntax/pull/629
203
+ - Fix printing of optional fields in records https://github.com/rescript-lang/rescript-compiler/issues/5654
204
+
205
+ #### :nail_care: Polish
206
+
207
+ - Improvements and fixes for JSX V4. See guide https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md
208
+ - Mention all missing fields in error message for records, not just one https://github.com/rescript-lang/rescript-compiler/pull/5657
209
+
210
+ # 10.1.0-alpha.1
14
211
 
15
212
  #### :boom: Breaking Change
16
213
 
17
214
  - Vendor genType, which does not need to be installed separately anymore. **Only TypeScript back-end** supported.
215
+ - Pipe `->` does not support a code block on the right-hand side e.g. `x->{ open A; get("test") }`
18
216
 
19
217
  #### :rocket: New Feature
20
218
 
21
- - Add support for for `async`/`await` https://github.com/rescript-lang/rescript-compiler/pull/5537
219
+ - Experimental support for for `async`/`await` https://github.com/rescript-lang/rescript-compiler/pull/5537
220
+
221
+ - Make `promise` a built-in type https://github.com/rescript-lang/rescript-compiler/pull/5650
22
222
 
23
223
  - Initial support for JSX V4 including genType, still work in progress.
24
224
 
@@ -28,6 +228,8 @@
28
228
 
29
229
  #### :bug: Bug Fix
30
230
 
231
+ - Fix issue with arrays and creation of recursive values https://github.com/rescript-lang/rescript-compiler/pull/5640
232
+ - Fix issue where characters such as newlines would be escaped in a template string expression https://github.com/rescript-lang/rescript-compiler/issues/5638
31
233
  - Fix issue where pipe `->` processing eats up attributes https://github.com/rescript-lang/rescript-compiler/pull/5581
32
234
  - Fix issue where cancelling `rescript build` would leave the `.bsb.lock` file behind and block future builds
33
235
 
package/README.md CHANGED
@@ -104,7 +104,7 @@ ReScript is licensed under LGPL version 3, with relaxed rules about creating and
104
104
  `vendor/ocaml.tar.gz` contains the official [OCaml](https://ocaml.org) compiler (version 4.14.0).
105
105
  Refer to its copyright and license notices for information about its licensing.
106
106
 
107
- The `ninja` submodule contains the vendored [ninja](https://github.com/ninja-build/ninja) build system.
107
+ The `ninja` subdirectory contains the vendored [ninja](https://github.com/ninja-build/ninja) build system.
108
108
  Refer to its copyright and license notices for information about its licensing.
109
109
 
110
110
  ## 🏅 Acknowledgments
Binary file
Binary file
Binary file