@port-labs/jq-node-bindings 0.0.13 → 0.0.15-dev1

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 (453) hide show
  1. package/README.md +6 -1
  2. package/binding.gyp +41 -19
  3. package/configure +1 -1
  4. package/deps/jq/.gitattributes +12 -0
  5. package/deps/jq/AUTHORS +149 -43
  6. package/deps/jq/COPYING +75 -1
  7. package/deps/jq/ChangeLog +2 -2
  8. package/deps/jq/Makefile.am +106 -65
  9. package/deps/jq/NEWS.md +391 -0
  10. package/deps/jq/README.md +54 -52
  11. package/deps/jq/SECURITY.md +7 -0
  12. package/deps/jq/compile-ios.sh +106 -102
  13. package/deps/jq/configure.ac +72 -59
  14. package/deps/jq/docs/Pipfile +14 -0
  15. package/deps/jq/docs/Pipfile.lock +415 -0
  16. package/deps/jq/docs/README.md +15 -14
  17. package/deps/jq/docs/build_manpage.py +251 -0
  18. package/deps/jq/docs/build_mantests.py +21 -0
  19. package/deps/jq/docs/build_website.py +95 -0
  20. package/deps/jq/docs/content/download/default.yml +249 -0
  21. package/deps/jq/docs/content/index.yml +83 -0
  22. package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
  23. package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
  24. package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
  25. package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
  26. package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
  27. package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
  28. package/deps/jq/docs/content/tutorial/default.yml +337 -0
  29. package/deps/jq/docs/manual_schema.yml +60 -0
  30. package/deps/jq/docs/public/css/style.css +99 -0
  31. package/deps/jq/docs/public/icon.png +0 -0
  32. package/deps/jq/docs/public/icon.svg +1 -0
  33. package/deps/jq/docs/public/jq.svg +1 -0
  34. package/deps/jq/docs/public/js/manual-search.js +31 -49
  35. package/deps/jq/docs/templates/default.html.j2 +31 -0
  36. package/deps/jq/docs/templates/index.html.j2 +58 -0
  37. package/deps/jq/docs/templates/manual.html.j2 +120 -0
  38. package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
  39. package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
  40. package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
  41. package/deps/jq/docs/validate_manual_schema.py +19 -0
  42. package/deps/jq/jq.1.prebuilt +1102 -294
  43. package/deps/jq/jq.spec +2 -3
  44. package/deps/jq/libjq.pc.in +11 -0
  45. package/deps/jq/m4/ax_pthread.m4 +522 -0
  46. package/deps/jq/modules/oniguruma/.travis.yml +17 -0
  47. package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
  48. package/deps/jq/modules/oniguruma/COPYING +23 -25
  49. package/deps/jq/modules/oniguruma/HISTORY +368 -23
  50. package/deps/jq/modules/oniguruma/Makefile.am +61 -7
  51. package/deps/jq/modules/oniguruma/README +34 -20
  52. package/deps/jq/modules/oniguruma/README.md +106 -33
  53. package/deps/jq/modules/oniguruma/README_japanese +183 -0
  54. package/deps/jq/modules/oniguruma/autogen.sh +9 -0
  55. package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
  56. package/deps/jq/modules/oniguruma/configure.ac +66 -55
  57. package/deps/jq/modules/oniguruma/doc/API +485 -42
  58. package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
  59. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
  60. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
  61. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
  62. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
  63. package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
  64. package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
  65. package/deps/jq/modules/oniguruma/doc/RE +223 -63
  66. package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
  67. package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
  68. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
  69. package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
  70. package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
  71. package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
  72. package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
  73. package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
  74. package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
  75. package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
  76. package/deps/jq/modules/oniguruma/index.html +16 -5
  77. package/deps/jq/modules/oniguruma/index_ja.html +16 -5
  78. package/deps/jq/modules/oniguruma/make_win.bat +5 -0
  79. package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
  80. package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
  81. package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
  82. package/deps/jq/modules/oniguruma/onig-config.in +1 -1
  83. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
  84. package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
  85. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
  86. package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
  87. package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
  88. package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
  89. package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
  90. package/deps/jq/modules/oniguruma/sample/count.c +125 -0
  91. package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
  92. package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
  93. package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
  94. package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
  95. package/deps/jq/modules/oniguruma/sample/names.c +10 -6
  96. package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
  97. package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
  98. package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
  99. package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
  100. package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
  101. package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
  102. package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
  103. package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
  104. package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
  105. package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
  106. package/deps/jq/modules/oniguruma/src/big5.c +25 -15
  107. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
  108. package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
  109. package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
  110. package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
  111. package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
  112. package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
  113. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
  114. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
  115. package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
  116. package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
  117. package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
  118. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
  119. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
  120. package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
  121. package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
  122. package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
  123. package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
  124. package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
  125. package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
  126. package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
  127. package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
  128. package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
  129. package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
  130. package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
  131. package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
  132. package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
  133. package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
  134. package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
  135. package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
  136. package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
  137. package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
  138. package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
  139. package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
  140. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
  141. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
  142. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
  143. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
  144. package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
  145. package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
  146. package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
  147. package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
  148. package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
  149. package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
  150. package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
  151. package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
  152. package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
  153. package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
  154. package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
  155. package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
  156. package/deps/jq/modules/oniguruma/src/regext.c +8 -8
  157. package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
  158. package/deps/jq/modules/oniguruma/src/regint.h +757 -491
  159. package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
  160. package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
  161. package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
  162. package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
  163. package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
  164. package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
  165. package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
  166. package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
  167. package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
  168. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
  169. package/deps/jq/modules/oniguruma/src/st.c +248 -249
  170. package/deps/jq/modules/oniguruma/src/st.h +4 -5
  171. package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
  172. package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
  173. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
  174. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
  175. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
  176. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
  177. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
  178. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
  179. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
  180. package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
  181. package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
  182. package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
  183. package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
  184. package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
  185. package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
  186. package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
  187. package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
  188. package/deps/jq/modules/oniguruma/test/test.sh +17 -0
  189. package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
  190. package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
  191. package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
  192. package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
  193. package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
  194. package/deps/jq/modules/oniguruma/test/testc.c +128 -88
  195. package/deps/jq/modules/oniguruma/test/testp.c +613 -0
  196. package/deps/jq/modules/oniguruma/test/testu.c +75 -28
  197. package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
  198. package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
  199. package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
  200. package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
  201. package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
  202. package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
  203. package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
  204. package/deps/jq/modules/oniguruma/tis.config +1336 -0
  205. package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
  206. package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
  207. package/deps/jq/scripts/update-website +6 -5
  208. package/deps/jq/scripts/version +10 -7
  209. package/deps/jq/sig/jq-release-new.key +29 -0
  210. package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
  211. package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
  212. package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
  213. package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
  214. package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
  215. package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
  216. package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
  217. package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
  218. package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
  219. package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
  220. package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
  221. package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
  222. package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
  223. package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
  224. package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
  225. package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
  226. package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
  227. package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
  228. package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
  229. package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
  230. package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
  231. package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
  232. package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
  233. package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
  234. package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
  235. package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
  236. package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
  237. package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
  238. package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
  239. package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
  240. package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
  241. package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
  242. package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
  243. package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
  244. package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
  245. package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
  246. package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
  247. package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
  248. package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
  249. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
  250. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
  251. package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
  252. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
  253. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
  254. package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
  255. package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
  256. package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
  257. package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
  258. package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
  259. package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
  260. package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
  261. package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
  262. package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
  263. package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
  264. package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
  265. package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
  266. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
  267. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
  268. package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
  269. package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
  270. package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
  271. package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
  272. package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
  273. package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
  274. package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
  275. package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
  276. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
  277. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
  278. package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
  279. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
  280. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
  281. package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
  282. package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
  283. package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
  284. package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
  285. package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
  286. package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
  287. package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
  288. package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
  289. package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
  290. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
  291. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
  292. package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
  293. package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
  294. package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
  295. package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
  296. package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
  297. package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
  298. package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
  299. package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
  300. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
  301. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
  302. package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
  303. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
  304. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
  305. package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
  306. package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
  307. package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
  308. package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
  309. package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
  310. package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
  311. package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
  312. package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
  313. package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
  314. package/deps/jq/src/builtin.c +537 -343
  315. package/deps/jq/src/builtin.h +18 -0
  316. package/deps/jq/src/builtin.jq +116 -143
  317. package/deps/jq/src/bytecode.h +8 -4
  318. package/deps/jq/src/compile.c +157 -143
  319. package/deps/jq/src/compile.h +3 -4
  320. package/deps/jq/src/decNumber/ICU-license.html +45 -0
  321. package/deps/jq/src/decNumber/decBasic.c +3908 -0
  322. package/deps/jq/src/decNumber/decCommon.c +1835 -0
  323. package/deps/jq/src/decNumber/decContext.c +437 -0
  324. package/deps/jq/src/decNumber/decContext.h +254 -0
  325. package/deps/jq/src/decNumber/decDPD.h +1185 -0
  326. package/deps/jq/src/decNumber/decDouble.c +140 -0
  327. package/deps/jq/src/decNumber/decDouble.h +155 -0
  328. package/deps/jq/src/decNumber/decNumber.c +8143 -0
  329. package/deps/jq/src/decNumber/decNumber.h +182 -0
  330. package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
  331. package/deps/jq/src/decNumber/decPacked.c +220 -0
  332. package/deps/jq/src/decNumber/decPacked.h +52 -0
  333. package/deps/jq/src/decNumber/decQuad.c +135 -0
  334. package/deps/jq/src/decNumber/decQuad.h +177 -0
  335. package/deps/jq/src/decNumber/decSingle.c +71 -0
  336. package/deps/jq/src/decNumber/decSingle.h +86 -0
  337. package/deps/jq/src/decNumber/decimal128.c +553 -0
  338. package/deps/jq/src/decNumber/decimal128.h +81 -0
  339. package/deps/jq/src/decNumber/decimal32.c +476 -0
  340. package/deps/jq/src/decNumber/decimal32.h +81 -0
  341. package/deps/jq/src/decNumber/decimal64.c +839 -0
  342. package/deps/jq/src/decNumber/decimal64.h +83 -0
  343. package/deps/jq/src/decNumber/decnumber.pdf +0 -0
  344. package/deps/jq/src/decNumber/example1.c +38 -0
  345. package/deps/jq/src/decNumber/example2.c +52 -0
  346. package/deps/jq/src/decNumber/example3.c +64 -0
  347. package/deps/jq/src/decNumber/example4.c +61 -0
  348. package/deps/jq/src/decNumber/example5.c +36 -0
  349. package/deps/jq/src/decNumber/example6.c +61 -0
  350. package/deps/jq/src/decNumber/example7.c +35 -0
  351. package/deps/jq/src/decNumber/example8.c +39 -0
  352. package/deps/jq/src/decNumber/readme.txt +81 -0
  353. package/deps/jq/src/exec_stack.h +5 -3
  354. package/deps/jq/src/execute.c +126 -44
  355. package/deps/jq/src/inject_errors.c +0 -2
  356. package/deps/jq/src/jq.h +10 -1
  357. package/deps/jq/src/jq_test.c +222 -11
  358. package/deps/jq/src/jv.c +807 -176
  359. package/deps/jq/src/jv.h +22 -1
  360. package/deps/jq/src/jv_alloc.c +33 -26
  361. package/deps/jq/src/jv_alloc.h +0 -11
  362. package/deps/jq/src/jv_aux.c +153 -67
  363. package/deps/jq/src/jv_dtoa.c +12 -2
  364. package/deps/jq/src/jv_dtoa_tsd.c +51 -0
  365. package/deps/jq/src/jv_dtoa_tsd.h +4 -0
  366. package/deps/jq/src/jv_parse.c +70 -15
  367. package/deps/jq/src/jv_print.c +56 -60
  368. package/deps/jq/src/jv_private.h +7 -0
  369. package/deps/jq/src/jv_thread.h +76 -0
  370. package/deps/jq/src/jv_unicode.c +18 -0
  371. package/deps/jq/src/jv_unicode.h +2 -0
  372. package/deps/jq/src/lexer.c +782 -543
  373. package/deps/jq/src/lexer.h +438 -64
  374. package/deps/jq/src/lexer.l +10 -3
  375. package/deps/jq/src/libm.h +16 -6
  376. package/deps/jq/src/linker.c +97 -40
  377. package/deps/jq/src/locfile.c +2 -1
  378. package/deps/jq/src/main.c +384 -336
  379. package/deps/jq/src/opcode_list.h +5 -2
  380. package/deps/jq/src/parser.c +2260 -1898
  381. package/deps/jq/src/parser.h +115 -98
  382. package/deps/jq/src/parser.y +124 -89
  383. package/deps/jq/src/util.c +854 -55
  384. package/deps/jq/src/util.h +6 -4
  385. package/deps/jq/tests/jq.test +762 -26
  386. package/deps/jq/tests/jq_fuzz_compile.c +27 -0
  387. package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
  388. package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
  389. package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
  390. package/deps/jq/tests/jq_fuzz_parse.c +21 -0
  391. package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
  392. package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
  393. package/deps/jq/tests/local.supp +14 -0
  394. package/deps/jq/tests/man.test +979 -0
  395. package/deps/jq/tests/manonig.test +76 -0
  396. package/deps/jq/tests/manonigtest +5 -0
  397. package/deps/jq/tests/mantest +1 -2
  398. package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
  399. package/deps/jq/tests/modules/shadow1.jq +2 -0
  400. package/deps/jq/tests/modules/shadow2.jq +1 -0
  401. package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
  402. package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
  403. package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
  404. package/deps/jq/tests/no-main-program.jq +1 -0
  405. package/deps/jq/tests/onig.test +77 -2
  406. package/deps/jq/tests/setup +7 -2
  407. package/deps/jq/tests/shtest +478 -59
  408. package/deps/jq/tests/uri.test +38 -0
  409. package/deps/jq/tests/uritest +5 -0
  410. package/deps/jq/tests/yes-main-program.jq +2 -0
  411. package/lib/index.js +3 -0
  412. package/lib/jq.js +15 -1
  413. package/lib/templateAsync.js +137 -0
  414. package/package.json +7 -7
  415. package/src/binding.cc +623 -146
  416. package/src/binding.h +3 -4
  417. package/test/santiy-async.test.js +171 -0
  418. package/test/santiy.test.js +2 -2
  419. package/test/template-async.test.js +182 -0
  420. package/test/template.test.js +3 -3
  421. package/deps/jq/.travis.yml +0 -202
  422. package/deps/jq/NEWS +0 -89
  423. package/deps/jq/appveyor.yml +0 -53
  424. package/deps/jq/docs/Gemfile +0 -7
  425. package/deps/jq/docs/Gemfile.lock +0 -63
  426. package/deps/jq/docs/Rakefile +0 -24
  427. package/deps/jq/docs/Rakefile.manual +0 -49
  428. package/deps/jq/docs/Rakefile.website +0 -76
  429. package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
  430. package/deps/jq/docs/content/2.download/default.yml +0 -193
  431. package/deps/jq/docs/content/index/index.yml +0 -73
  432. package/deps/jq/docs/public/css/base.scss +0 -181
  433. package/deps/jq/docs/public/jq.png +0 -0
  434. package/deps/jq/docs/site.yml +0 -9
  435. package/deps/jq/docs/templates/default.liquid +0 -34
  436. package/deps/jq/docs/templates/index.liquid +0 -73
  437. package/deps/jq/docs/templates/manual.liquid +0 -99
  438. package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
  439. package/deps/jq/docs/templates/shared/_head.liquid +0 -17
  440. package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
  441. package/deps/jq/modules/oniguruma/README.ja +0 -195
  442. package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
  443. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
  444. package/deps/jq/modules/oniguruma/dist.info +0 -10
  445. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
  446. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
  447. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
  448. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
  449. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
  450. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
  451. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
  452. /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
  453. /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
@@ -5,18 +5,26 @@ LIBJQ_INCS = src/builtin.h src/bytecode.h src/compile.h \
5
5
  src/exec_stack.h src/jq_parser.h src/jv_alloc.h src/jv_dtoa.h \
6
6
  src/jv_unicode.h src/jv_utf8_tables.h src/lexer.l src/libm.h \
7
7
  src/linker.h src/locfile.h src/opcode_list.h src/parser.y \
8
- src/util.h
8
+ src/util.h src/decNumber/decContext.h src/decNumber/decNumber.h \
9
+ src/decNumber/decNumberLocal.h src/jv_dtoa_tsd.h src/jv_thread.h \
10
+ src/jv_private.h
9
11
 
10
12
  LIBJQ_SRC = src/builtin.c src/bytecode.c src/compile.c src/execute.c \
11
13
  src/jq_test.c src/jv.c src/jv_alloc.c src/jv_aux.c \
12
14
  src/jv_dtoa.c src/jv_file.c src/jv_parse.c src/jv_print.c \
13
15
  src/jv_unicode.c src/linker.c src/locfile.c src/util.c \
16
+ src/decNumber/decContext.c src/decNumber/decNumber.c \
17
+ src/jv_dtoa_tsd.c \
14
18
  ${LIBJQ_INCS}
15
19
 
16
20
  ### C build options
17
21
 
18
- AM_CFLAGS = -Wextra -Wall -Wno-missing-field-initializers \
19
- -Wno-unused-parameter -Wno-unused-function
22
+ AM_CFLAGS = -Wextra -Wall -Wno-unused-parameter -Wno-unused-function \
23
+ -Woverlength-strings
24
+
25
+ if WIN32
26
+ AM_CFLAGS += -municode
27
+ endif
20
28
 
21
29
  ACLOCAL_AMFLAGS = -I config/m4
22
30
 
@@ -25,23 +33,23 @@ ACLOCAL_AMFLAGS = -I config/m4
25
33
  # While there is some autoconf macro support for lex/flex, it doesn't support
26
34
  # header file creation so we'll use good old make
27
35
  if MAINTAINER_MODE
28
- BUILT_SOURCES = src/lexer.h src/lexer.c src/parser.h src/parser.c \
29
- src/builtin.inc src/version.h
36
+ BUILT_SOURCES = src/lexer.h src/lexer.c src/parser.h src/parser.c \
37
+ src/builtin.inc src/config_opts.inc src/version.h
30
38
  src/lexer.c: src/lexer.l
31
39
  $(AM_V_LEX) flex -o src/lexer.c --header-file=src/lexer.h $<
32
40
  src/lexer.h: src/lexer.c
33
41
  else
34
- BUILT_SOURCES = src/builtin.inc src/version.h
42
+ BUILT_SOURCES = src/builtin.inc src/config_opts.inc src/version.h
35
43
  .y.c:
36
44
  $(AM_V_YACC) echo "NOT building parser.c!"
37
45
  .l.c:
38
46
  $(AM_V_LEX) echo "NOT building lexer.c!"
39
47
  endif
40
48
 
41
- # Tell YACC (bison) autoconf macros that you want a header file created.
42
- # If the --warnings=all fails, you probably have an old version of bison
43
- # OSX ships an old bison, so update with homebrew or macports
44
- AM_YFLAGS = --warnings=all -d
49
+ # Tell YACC (Bison) autoconf macros that you want a header file created.
50
+ # If the --warnings=all fails, you probably have an old version of Bison
51
+ # macOS ships an old Bison, so update with Homebrew or MacPorts.
52
+ AM_YFLAGS = --warnings=all -Wno-yacc -d
45
53
 
46
54
  ### libjq
47
55
 
@@ -52,6 +60,7 @@ libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info
52
60
 
53
61
  if WIN32
54
62
  libjq_la_LIBADD += -lshlwapi
63
+ libjq_la_LDFLAGS += -no-undefined
55
64
  endif
56
65
 
57
66
  include_HEADERS = src/jv.h src/jq.h
@@ -60,6 +69,8 @@ if ENABLE_UBSAN
60
69
  AM_CFLAGS += -fsanitize=undefined
61
70
  endif
62
71
 
72
+ AM_CPPFLAGS = -I$(srcdir)/src
73
+
63
74
  ### Running tests under Valgrind
64
75
 
65
76
  if ENABLE_ASAN
@@ -97,45 +108,88 @@ generate_ver = ver="`{ $(srcdir)/scripts/version || echo '$(VERSION)' ; } | sed
97
108
  .remake-version-h: .FORCE
98
109
  @ $(generate_ver); test "x`cat src/version.h 2>/dev/null`" = "x$$ver" || touch .remake-version-h
99
110
  src/version.h: .remake-version-h
111
+ mkdir -p src
100
112
  $(AM_V_GEN) $(generate_ver); echo "$$ver" > $@
101
- src/main.c: src/version.h
102
-
103
- src/builtin.inc: src/builtin.jq
104
- $(AM_V_GEN) sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' $^ > $@
113
+ src/config_opts.inc:
114
+ mkdir -p src
115
+ $(AM_V_GEN) if test -x ./config.status; then \
116
+ ./config.status --config; \
117
+ else echo "(unknown)"; \
118
+ fi | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' -e 's/^/#define JQ_CONFIG /' > $@
119
+ src/main.c: src/version.h src/config_opts.inc
120
+
121
+ src/builtin.inc: $(srcdir)/src/builtin.jq
122
+ mkdir -p src
123
+ $(AM_V_GEN) od -v -A n -t o1 -- $< | \
124
+ sed -e 's/$$/ /' \
125
+ -e 's/\([0123456789]\) /\1, /g' \
126
+ -e 's/ $$//' \
127
+ -e 's/ 0/ 0/g' \
128
+ -e 's/ \([123456789]\)/ 0\1/g' > $@
105
129
  src/builtin.o: src/builtin.inc
106
130
 
131
+ CLEANFILES = src/version.h .remake-version-h src/builtin.inc src/config_opts.inc
132
+
107
133
  bin_PROGRAMS = jq
108
134
  jq_SOURCES = src/main.c src/version.h
109
135
  jq_LDFLAGS = -static-libtool-libs
110
136
  jq_LDADD = libjq.la -lm
111
137
 
112
- if WIN32
113
- jq_LDADD += -lshlwapi
114
- endif
115
-
116
138
  if ENABLE_ALL_STATIC
117
139
  jq_LDFLAGS += -all-static
118
140
  endif
119
141
 
120
142
  ### Tests (make check)
121
143
 
122
- TESTS = tests/optionaltest tests/mantest tests/jqtest tests/onigtest tests/shtest tests/utf8test tests/base64test
123
- TESTS_ENVIRONMENT = NO_VALGRIND=$(NO_VALGRIND)
124
-
144
+ TESTS = tests/mantest tests/jqtest tests/shtest tests/utf8test tests/base64test tests/uritest
145
+ if !WIN32
146
+ TESTS += tests/optionaltest
147
+ endif
148
+ AM_TESTS_ENVIRONMENT = JQ=$(abs_builddir)/jq NO_VALGRIND=$(NO_VALGRIND)
149
+
150
+ # This is a magic make variable that causes it to treat tests/man.test as a
151
+ # DATA-type dependency for the check target. As a result, it will attempt to
152
+ # run any defined targets for tests/man.test as a dependency for check. This
153
+ # allows us to ensure that the tests are up-to-date if the manual has been updated
154
+ check_DATA = tests/man.test
155
+
156
+ ### Building the man tests
157
+
158
+ # We use the examples in the manual as additional tests, to ensure they always work.
159
+ # As a result, we need to rebuild the tests if the manual has been updated.
160
+ # Making changes to the manpage without having the python deps means your
161
+ # tests won't run. If you aren't making changes to the examples, you probably
162
+ # don't care. But if you are, then you need to run the tests anyway.
163
+ tests/man.test tests/manonig.test: $(srcdir)/docs/content/manual/dev/manual.yml
164
+ if ENABLE_DOCS
165
+ $(AM_V_GEN) ( cd ${abs_srcdir}/docs && \
166
+ $(PIPENV) run python validate_manual_schema.py content/manual/dev/manual.yml && \
167
+ $(PIPENV) run python build_mantests.py )
168
+ else
169
+ @echo Changes to the manual.yml require docs to be enabled to update the manual test.
170
+ @echo As a result, the manual test is out of date.
171
+ endif
125
172
 
126
173
  ### Building the manpage
127
174
 
175
+ # We build the docs from the manpage yml. If no changes have been made to the
176
+ # manpage, then we'll end up using the cached version. Otherwise, we need to
177
+ # rebuild it.
128
178
  man_MANS = jq.1
179
+ jq.1.prebuilt: $(srcdir)/docs/content/manual/dev/manual.yml
129
180
  if ENABLE_DOCS
130
- jq.1: $(srcdir)/docs/content/3.manual/manual.yml
131
- $(AM_V_GEN) ( cd ${abs_srcdir}/docs; '$(BUNDLER)' exec rake manpage ) > $@ || { rm -f $@; false; }
132
- jq.1.prebuilt: jq.1
133
- $(AM_V_GEN) cp $^ $@ || { rm -f $@; false; }
181
+ $(AM_V_GEN) ( cd ${abs_srcdir}/docs && \
182
+ $(PIPENV) run python validate_manual_schema.py content/manual/dev/manual.yml && \
183
+ $(PIPENV) run python build_manpage.py ) > $@
134
184
  else
135
- jq.1: $(srcdir)/jq.1.prebuilt
136
- $(AM_V_GEN) cp $^ $@
185
+ @echo Changes to the manual.yml require docs to be enabled to update the manpage.
186
+ @echo As a result, the manpage is out of date.
137
187
  endif
138
188
 
189
+ jq.1: jq.1.prebuilt
190
+ $(AM_V_GEN) cp $(srcdir)/jq.1.prebuilt $@
191
+
192
+ CLEANFILES += jq.1
139
193
 
140
194
  ### Build oniguruma
141
195
 
@@ -146,43 +200,49 @@ endif
146
200
 
147
201
  AM_CFLAGS += $(onig_CFLAGS)
148
202
 
149
- ### Packaging
203
+ if WITH_ONIGURUMA
204
+ TESTS += tests/onigtest tests/manonigtest
205
+ endif
150
206
 
151
- docs/site.yml: configure.ac
152
- sed 's/^jq_version: .*/jq_version: "$(VERSION)"/' $@ > $@.new
153
- mv $@.new $@
207
+ ### Packaging
154
208
 
155
209
  install-binaries: $(BUILT_SOURCES)
156
210
  $(MAKE) $(AM_MAKEFLAGS) install-exec
157
211
 
158
- DOC_FILES = docs/content docs/public docs/templates docs/site.yml \
159
- docs/Gemfile docs/Gemfile.lock docs/Rakefile docs/README.md \
160
- jq.1.prebuilt
212
+ DOC_FILES = docs/content docs/public docs/templates \
213
+ docs/Pipfile docs/Pipfile.lock docs/build_manpage.py \
214
+ docs/build_mantests.py docs/build_website.py docs/README.md \
215
+ docs/validate_manual_schema.py docs/manual_schema.yml
161
216
 
162
217
  EXTRA_DIST = $(DOC_FILES) $(man_MANS) $(TESTS) $(TEST_LOG_COMPILER) \
163
218
  jq.1.prebuilt jq.spec src/lexer.c src/lexer.h src/parser.c \
164
- src/parser.h src/version.h src/builtin.jq \
165
- scripts/version tests/jq.test tests/modules/.jq \
219
+ src/parser.h src/version.h src/builtin.jq scripts/version \
220
+ libjq.pc \
166
221
  tests/modules/a.jq tests/modules/b/b.jq tests/modules/c/c.jq \
167
222
  tests/modules/c/d.jq tests/modules/data.json \
223
+ tests/modules/home1/.jq tests/modules/home2/.jq/g.jq \
168
224
  tests/modules/lib/jq/e/e.jq tests/modules/lib/jq/f.jq \
225
+ tests/modules/shadow1.jq tests/modules/shadow2.jq \
169
226
  tests/modules/syntaxerror/syntaxerror.jq \
170
227
  tests/modules/test_bind_order.jq \
171
228
  tests/modules/test_bind_order0.jq \
172
229
  tests/modules/test_bind_order1.jq \
173
- tests/modules/test_bind_order2.jq tests/onig.supp \
174
- tests/onig.test tests/setup tests/torture/input0.json \
175
- tests/optional.test tests/optionaltest \
176
- tests/utf8-truncate.jq tests/utf8test \
177
- tests/base64.test tests/base64test \
178
- tests/jq-f-test.sh tests/shtest
230
+ tests/modules/test_bind_order2.jq \
231
+ tests/onig.supp tests/local.supp \
232
+ tests/setup tests/torture/input0.json \
233
+ tests/optional.test tests/man.test tests/manonig.test \
234
+ tests/jq.test tests/onig.test tests/base64.test tests/uri.test \
235
+ tests/utf8-truncate.jq tests/jq-f-test.sh \
236
+ tests/no-main-program.jq tests/yes-main-program.jq
179
237
 
238
+ AM_DISTCHECK_CONFIGURE_FLAGS=--with-oniguruma=builtin
180
239
 
181
-
182
- # README.md is expected in Github projects, good stuff in it, so we'll
240
+ # README.md is expected in GitHub projects, good stuff in it, so we'll
183
241
  # distribute it and install it with the package in the doc directory.
184
- docdir = ${datadir}/doc/${PACKAGE}
185
- dist_doc_DATA = README.md COPYING AUTHORS README
242
+ dist_doc_DATA = README.md NEWS.md COPYING AUTHORS
243
+
244
+ pkgconfigdir = $(libdir)/pkgconfig
245
+ pkgconfig_DATA = libjq.pc
186
246
 
187
247
  RELEASE ?= 1
188
248
  rpm: dist jq.spec
@@ -192,22 +252,3 @@ rpm: dist jq.spec
192
252
  rpmbuild -tb --define "_topdir ${PWD}/rpm" --define "_prefix /usr" --define "myver $(VERSION)" --define "myrel ${RELEASE}" rpm/SOURCES/jq-$(VERSION).tar.gz
193
253
  find rpm/RPMS/ -name "*.rpm" -exec mv {} ./ \;
194
254
  rm -rf rpm
195
-
196
- dist-clean-local:
197
- rm -f ${BUILT_SOURCES}
198
-
199
- # Not sure why this doesn't get cleaned up automatically, guess
200
- # automake used to man pages which are hand coded?
201
- # 'make clean' doesn't delete the manpage if it can't be rebuilt
202
- clean-local-docs:
203
- if ENABLE_DOCS
204
- rm -f jq.1
205
- endif
206
-
207
- clean-local-gcov:
208
- rm -f src/*.gcno src/*.gcda src/*.gcov
209
-
210
- clean-local: clean-local-docs clean-local-gcov
211
- rm -f src/version.h .remake-version-h
212
-
213
- .PHONY: clean-local-docs clean-local-gcov
@@ -0,0 +1,391 @@
1
+ # 1.7.1
2
+
3
+ ## Security
4
+
5
+ - CVE-2023-50246: Fix heap buffer overflow in jvp\_literal\_number\_literal
6
+ - CVE-2023-50268: fix stack-buffer-overflow if comparing nan with payload
7
+
8
+ ## CLI changes
9
+
10
+ - Make the default background color more suitable for bright backgrounds. @mjarosie @taoky @nicowilliams @itchyny #2904
11
+ - Allow passing the inline jq script after `--`. @emanuele6 #2919
12
+ - Restrict systems operations on OpenBSD and remove unused `mkstemp`. @klemensn #2934
13
+ - Fix possible uninitialised value dereference if `jq_init()` fails. @emanuele6 @nicowilliams #2935
14
+
15
+ ## Language changes
16
+
17
+ - Simplify `paths/0` and `paths/1`. @asheiduk @emanuele6 #2946
18
+ - Reject `U+001F` in string literals. @torsten-schenk @itchyny @wader #2911
19
+ - Remove unused nref accumulator in `block_bind_library`. @emanuele6 #2914
20
+ - Remove a bunch of unused variables, and useless assignments. @emanuele6 #2914
21
+ - main.c: Remove unused EXIT\_STATUS\_EXACT option. @emanuele6 #2915
22
+ - Actually use the number correctly casted from double to int as index. @emanuele6 #2916
23
+ - src/builtin.c: remove unnecessary jv\_copy-s in type\_error/type\_error2. @emanuele6 #2937
24
+ - Remove undefined behavior caught by LLVM 10 UBSAN. @Gaelan @emanuele6 #2926
25
+ - Convert decnum to binary64 (double) instead of decimal64. This makes jq behave like the JSON specification suggests and more similar to other languages. @wader @leonid-s-usov #2949
26
+ - Fix memory leaks on invalid input for `ltrimstr/1` and `rtrimstr/1`. @emanuele6 #2977
27
+ - Fix memory leak on failed get for `setpath/2`. @emanuele6 #2970
28
+ - Fix nan from json parsing also for nans with payload that start with 'n'. @emanuele6 #2985
29
+ - Allow carriage return characters in comments. @emanuele6 #2942 #2984
30
+
31
+ ## Documentation changes
32
+
33
+ - Generate links in the man page. @emanuele6 #2931
34
+ - Standardize arch types to AMD64 & ARM64 from index page download dropdown. @owenthereal #2884
35
+
36
+ ## libjq
37
+
38
+ - Add extern C for C++. @rockwotj #2953
39
+
40
+ ## Build and test changes
41
+
42
+ - Fix incorrect syntax for checksum file. @kamontat @wader #2899
43
+ - Remove `-dirty` version suffix for windows release build. @itchyny #2888
44
+ - Make use of `od` in tests more compatible. @nabijaczleweli @emanuele6 @nicowilliams #2922
45
+ - Add dependabot. @yeikel #2889
46
+ - Extend fuzzing setup to fuzz parser and JSON serializer. @DavidKorczynski @emanuele6 #2952
47
+ - Keep releasing executables with legacy names. @itchyny #2951
48
+
49
+ # 1.7
50
+
51
+ After a five year hiatus we're back with a GitHub organization, with new admins and new maintainers who have brought a great deal of energy to make a long-awaited and long-needed new release. We're very grateful for all the new owners, admins, and maintainers. Special thanks go to Owen Ou (@owenthereal) for pushing to set up a new GitHub organization for jq, Stephen Dolan (@stedolan) for transferring the jq repository to the new organization, @itchyny for doing a great deal of work to get the release done, Mattias Wadman (@wader) and Emanuele Torre (@emanuele6) for many PRs and code reviews. Many others also contributed PRs, issues, and code reviews as well, and you can find their contributions in the Git log and on the [closed issues and PRs page](https://github.com/jqlang/jq/issues?q=is%3Aclosed+sort%3Aupdated-desc).
52
+
53
+ Since the last stable release many things have happened:
54
+
55
+ - jq now lives at <https://github.com/jqlang>
56
+ - New maintainers, admins, and owners have been recruited.
57
+ - A list of [current maintainers](https://github.com/jqlang/jq/blob/jq-1.7/AUTHORS#L4-L14)
58
+ - NEWS file is replaced by NEWS.md with Markdown format. @wader #2599
59
+ - CI, scan builds, release, website builds etc now use GitHub actions. @owenthereal @wader @itchyny #2596 #2603 #2620 #2723
60
+ - Lots of documentation improvements and fixes.
61
+ - Website updated with new section search box, better section ids for linking, dark mode, etc. @itchyny #2628
62
+ - Release builds for:
63
+ - Linux `amd64`, `arm64`, `armel`, `armhf`, `i386`, `mips`, `mips64`, `mips64el`, `mips64r6`, `mips64r6el`, `mipsel`, `mipsr6`, `mipsr6el`, `powerpc`, `ppc64el`, `riscv64` and `s390x`
64
+ - macOS `amd64` and `arm64`
65
+ - Windows `i386` and `amd64`
66
+ - Docker `linux/386`, `linux/amd64`, `linux/arm64`, `linux/mips64le`, `linux/ppc64le`, `linux/riscv64` and `linux/s390x`
67
+ - More details see @owenthereal #2665
68
+ - Docker images are now available from `ghcr.io/jqlang/jq` instead of Docker Hub. @itchyny #2652 #2686
69
+ - OSS-fuzz. @DavidKorczynski #2760 #2762
70
+
71
+ Full commit log can be found at <https://github.com/jqlang/jq/compare/jq-1.6...jq-1.7> but here are some highlights:
72
+
73
+ ## CLI changes
74
+
75
+ - Make object key color configurable using `JQ_COLORS` environment variable. @itchyny @haguenau @ericpruitt #2703
76
+
77
+ ```sh
78
+ # this would make "field" bold yellow (`1;33`, the last value)
79
+ $ JQ_COLORS="0;90:0;37:0;37:0;37:0;32:1;37:1;37:1;33" ./jq -n '{field: 123}'
80
+ {
81
+ "field": 123
82
+ }
83
+ ```
84
+
85
+ - Change the default color of null to Bright Black. @itchyny #2824
86
+ - Respect `NO_COLOR` environment variable to disable color output. See <https://no-color.org> for details. @itchyny #2728
87
+ - Improved `--help` output. Now mentions all options and nicer order. @itchyny @wader #2747 #2766 #2799
88
+ - Fix multiple issues of exit code using `--exit-code`/`-e` option. @ryo1kato #1697
89
+
90
+ ```sh
91
+ # true-ish last output value exits with zero
92
+ $ jq -ne true ; echo $?
93
+ true
94
+ 0
95
+ # false-ish last output value (false and null) exits with 1
96
+ $ jq -ne false ; echo $?
97
+ false
98
+ 1
99
+ # no output value exists with 4
100
+ $ jq -ne empty ; echo $?
101
+ 4
102
+ ```
103
+
104
+ - Add `--binary`/`-b` on Windows for binary output. To get `\n` instead of `\r\n` line endings. @nicowilliams 0dab2b1
105
+ - Add `--raw-output0` for NUL (zero byte) separated output. @asottile @pabs3 @itchyny #1990 #2235 #2684
106
+
107
+ ```sh
108
+ # will output a zero byte after each output
109
+ $ jq -n --raw-output0 '1,2,3' | xxd
110
+ 00000000: 3100 3200 3300 1.2.3.
111
+ # can be used with xargs -0
112
+ $ jq -n --raw-output0 '"a","b","c"' | xargs -0 -n1
113
+ a
114
+ b
115
+ c
116
+ $ jq -n --raw-output0 '"a b c", "d\ne\nf"' | xargs -0 printf '[%s]\n'
117
+ [a b c]
118
+ [d
119
+ e
120
+ f]
121
+ # can be used with read -d ''
122
+ $ while IFS= read -r -d '' json; do
123
+ > jq '.name' <<< "$json"
124
+ > done < <(jq -n --raw-output0 '{name:"a b c"},{name:"d\ne\nf"}')
125
+ "a b c"
126
+ "d\ne\nf"
127
+ # also it's an error to output a string containing a NUL when using NUL separator
128
+ $ jq -n --raw-output0 '"\u0000"'
129
+ jq: error (at <unknown>): Cannot dump a string containing NUL with --raw-output0 option
130
+ ```
131
+
132
+ - Fix assert crash and validate JSON for `--jsonarg`. @wader #2658
133
+ - Remove deprecated `--argfile` option. @itchyny #2768
134
+ - Enable stack protection. @nicowilliams #2801
135
+
136
+ ## Language changes
137
+
138
+ - Use decimal number literals to preserve precision. Comparison operations respects precision but arithmetic operations might truncate. @leonid-s-usov #1752
139
+
140
+ ```sh
141
+ # precision is preserved
142
+ $ echo '100000000000000000' | jq .
143
+ 100000000000000000
144
+ # comparison respects precision (this is false in JavaScript)
145
+ $ jq -n '100000000000000000 < 100000000000000001'
146
+ true
147
+ # sort/0 works
148
+ $ jq -n -c '[100000000000000001, 100000000000000003, 100000000000000004, 100000000000000002] | sort'
149
+ [100000000000000001,100000000000000002,100000000000000003,100000000000000004]
150
+ # arithmetic operations might truncate (same as JavaScript)
151
+ $ jq -n '100000000000000000 + 10'
152
+ 100000000000000020
153
+ ```
154
+
155
+ - Adds new builtin `pick(stream)` to emit a projection of the input object or array. @pkoppstein #2656 #2779
156
+
157
+ ```sh
158
+ $ jq -n '{"a": 1, "b": {"c": 2, "d": 3}, "e": 4} | pick(.a, .b.c, .x)'
159
+ {
160
+ "a": 1,
161
+ "b": {
162
+ "c": 2
163
+ },
164
+ "x": null
165
+ }
166
+ ```
167
+
168
+ - Adds new builtin `debug(msgs)` that works like `debug` but applies a filter on the input before writing to stderr. @pkoppstein #2710
169
+
170
+ ```sh
171
+ $ jq -n '1 as $x | 2 | debug("Entering function foo with $x == \($x)", .) | (.+1)'
172
+ ["DEBUG:","Entering function foo with $x == 1"]
173
+ ["DEBUG:",2]
174
+ 3
175
+ $ jq -n '{a: 1, b: 2, c: 3} | debug({a, b, sum: (.a+.b)})'
176
+ ["DEBUG:",{"a":1,"b":2,"sum":3}]
177
+ {
178
+ "a": 1,
179
+ "b": 2,
180
+ "c": 3
181
+ }
182
+ ```
183
+
184
+ - Adds new builtin `scan($re; $flags)`. Was documented but not implemented. @itchyny #1961
185
+
186
+ ```sh
187
+ # look for pattern "ab" in "abAB" ignoring casing
188
+ $ jq -n '"abAB" | scan("ab"; "i")'
189
+ "ab"
190
+ "AB"
191
+ ```
192
+
193
+ - Adds new builtin `abs` to get absolute value. This potentially allows the literal value of numbers to be preserved as `length` and `fabs` convert to float. @pkoppstein #2767
194
+ - Allow `if` without `else`-branch. When skipped the `else`-branch will be `.` (identity). @chancez @wader #1825 #2481
195
+
196
+ ```sh
197
+ # convert 1 to "one" otherwise keep as is
198
+ $ jq -n '1,2 | if . == 1 then "one" end'
199
+ "one"
200
+ 2
201
+ # behaves the same as
202
+ $ jq -n '1,2 | if . == 1 then "one" else . end'
203
+ "one"
204
+ 2
205
+ # also works with elif
206
+ $ jq -n '1,2,3 | if . == 1 then "one" elif . == 2 then "two" end
207
+ "one"
208
+ "two"
209
+ 3
210
+ ```
211
+
212
+ - Allow use of `$binding` as key in object literals. @nicowilliams 8ea4a55
213
+
214
+ ```sh
215
+ $ jq -n '"a" as $key | {$key: 123}'
216
+ {
217
+ "a": 123
218
+ }
219
+ # previously parentheses were needed
220
+ $ jq -n '"a" as $key | {($key): 123}'
221
+ {
222
+ "a": 123
223
+ }
224
+ ```
225
+
226
+ - Allow dot between chained indexes when using `.["index"]` @nicowilliams #1168
227
+
228
+ ```sh
229
+ $ jq -n '{"a": {"b": 123}} | .a["b"]'
230
+ 123
231
+ # now this also works
232
+ $ jq -n '{"a": {"b": 123}} | .a.["b"]'
233
+ 123
234
+ ```
235
+
236
+ - Allow dot for chained value iterator `.[]`, `.[]?` @wader #2650
237
+
238
+ ```sh
239
+ $ jq -n '{"a": [123]} | .a[]'
240
+ 123
241
+ # now this also works
242
+ $ jq -n '{"a": [123]} | .a.[]'
243
+ 123
244
+ ```
245
+
246
+ - Fix try/catch catches more than it should. @nicowilliams #2750
247
+ - Speed up and refactor some builtins, also remove `scalars_or_empty/0`. @muhmuhten #1845
248
+ - Now `halt` and `halt_error` exit immediately instead of continuing to the next input. @emanuele6 #2667
249
+ - Fix issue converting string to number after previous convert error. @thalman #2400
250
+ - Fix issue representing large numbers on some platforms causing invalid JSON output. @itchyny #2661
251
+ - Fix deletion using assigning empty against arrays. @itchyny #2133
252
+
253
+ ```sh
254
+ # now this works as expected, filter out all values over 2 by assigning empty
255
+ $ jq -c '(.[] | select(. >= 2)) |= empty' <<< '[1,5,3,0,7]'
256
+ [1,0]
257
+ ```
258
+
259
+ - Allow keywords to be used as binding name in more places. @emanuele6 #2681
260
+ - Allow using `nan` as NaN in JSON. @emanuele6 #2712
261
+ - Expose a module's function names in `modulemeta`. @mrwilson #2837
262
+ - Fix `contains/1` to handle strings with NUL. @nicowilliams 61cd6db
263
+ - Fix `stderr/0` to output raw text without any decoration. @itchyny #2751
264
+ - Fix `nth/2` to emit empty on index out of range. @itchyny #2674
265
+ - Fix `implode` to not assert and instead replace invalid Unicode codepoints. @wader #2646
266
+ - Fix `indices/1` and `rindex/1` in case of overlapping matches in strings. @emanuele6 #2718
267
+ - Fix `sub/3` to resolve issues involving global search-and-replace (gsub) operations. @pkoppstein #2641
268
+ - Fix `significand/0`, `gamma/0` and `drem/2` to be available on macOS. @itchyny #2756 #2775
269
+ - Fix empty regular expression matches. @itchyny #2677
270
+ - Fix overflow exception of the modulo operator. @itchyny #2629
271
+ - Fix string multiplication by 0 (and less than 1) to emit empty string. @itchyny #2142
272
+ - Fix segfault when using libjq and threads. @thalman #2546
273
+ - Fix constant folding of division and reminder with zero divisor. @itchyny #2797
274
+ - Fix `error/0`, `error/1` to throw null error. @emanuele6 #2823
275
+ - Simpler and faster `transpose`. @pkoppstein #2758
276
+ - Simple and efficient implementation of `walk/1`. @pkoppstein #2795
277
+ - Remove deprecated filters `leaf_paths`, `recurse_down`. @itchyny #2666
278
+
279
+ # Previous releases
280
+
281
+ Release history
282
+
283
+ - jq version 1.6 was released on Fri Nov 2 2018
284
+ - jq version 1.5 was released on Sat Aug 15 2015
285
+ - jq version 1.4 was released on Mon Jun 9 2014
286
+ - jq version 1.3 was released on Sun May 19 2013
287
+ - jq version 1.2 was released on Thu Dec 20 2012
288
+ - jq version 1.1 was released on Sun Oct 21 2012
289
+ - jq version 1.0 was released on Sun Oct 21 2012
290
+
291
+ New features in 1.6 since 1.5:
292
+
293
+ - Destructuring Alternation
294
+
295
+ - New Builtins:
296
+ - builtins/0
297
+ - stderr/0
298
+ - halt/0, halt_error/1
299
+ - isempty/1
300
+ - walk/1
301
+ - utf8bytelength/1
302
+ - localtime/0, strflocaltime/1
303
+ - SQL-style builtins
304
+ - and more!
305
+
306
+ - Add support for ASAN and UBSAN
307
+
308
+ - Make it easier to use jq with shebangs (8f6f28c)
309
+
310
+ - Add $ENV builtin variable to access environment
311
+
312
+ - Add JQ_COLORS env var for configuring the output colors
313
+
314
+ New features in 1.5 since 1.4:
315
+
316
+ - regular expressions (with Oniguruma)
317
+
318
+ - a library/module system
319
+
320
+ - many new builtins
321
+
322
+ - datetime builtins
323
+ - math builtins
324
+ - regexp-related builtins
325
+ - stream-related builtins (e.g., all/1, any/1)
326
+ - minimal I/O builtins (`inputs`, `debug`)
327
+
328
+ - new syntactic features, including:
329
+
330
+ - destructuring (`. as [$first, $second] | ...`)
331
+ - try/catch, generalized `?` operator, and label/break
332
+ - `foreach`
333
+ - multiple definitions of a function with different numbers of
334
+ arguments
335
+
336
+ - command-line arguments
337
+
338
+ - --join-lines / -j for raw output
339
+ - --argjson and --slurpfile
340
+ - --tab and --indent
341
+ - --stream (streaming JSON parser)
342
+ - --seq (RFC7464 JSON text sequence)
343
+ - --run-tests improvements
344
+
345
+ - optimizations:
346
+
347
+ - tail-call optimization
348
+ - reduce and foreach no longer leak a reference to .
349
+
350
+ New features in 1.4 since 1.3:
351
+
352
+ - command-line arguments
353
+
354
+ - jq --arg-file variable file
355
+ - jq --unbuffered
356
+ - jq -e / --exit-status (set exit status based on outputs)
357
+ - jq -S / --sort-keys (now jq no longer sorts object keys by
358
+ default
359
+
360
+ - syntax
361
+
362
+ - .. -> like // in XPath (recursive traversal)
363
+ - question mark (e.g., .a?) to suppress errors
364
+ - ."foo" syntax (equivalent to .["foo"])
365
+ - better error handling for .foo
366
+ - added % operator (modulo)
367
+ - allow negation without requiring extra parenthesis
368
+ - more function arguments (up to six)
369
+
370
+ - filters:
371
+
372
+ - any, all
373
+ - iterables, arrays, objects, scalars, nulls, booleans, numbers,
374
+ strings, values
375
+
376
+ - string built-ins:
377
+
378
+ - split
379
+ - join (join an array of strings with a given separator string)
380
+ - ltrimstr, rtrimstr
381
+ - startswith, endswith
382
+ - explode, implode
383
+ - fromjson, tojson
384
+ - index, rindex, indices
385
+
386
+ - math functions
387
+
388
+ - floor, sqrt, cbrt, etcetera (depends on what's available from libm)
389
+
390
+ - libjq -- a C API interface to jq's JSON representation and for
391
+ running jq programs from C applications