@port-labs/jq-node-bindings 1.0.4 → 1.1.0-dev
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.
- package/.claude/settings.local.json +12 -0
- package/configure +6 -5
- package/deps/jq/.claude/settings.local.json +7 -0
- package/deps/jq/.gitattributes +1 -3
- package/deps/jq/AUTHORS +55 -1
- package/deps/jq/COPYING +40 -0
- package/deps/jq/Makefile.am +40 -36
- package/deps/jq/NEWS.md +277 -2
- package/deps/jq/README.md +23 -5
- package/deps/jq/compile-ios.sh +1 -1
- package/deps/jq/config/m4/check-math-func.m4 +2 -2
- package/deps/jq/config/m4/find-func-no-libs2.m4 +3 -3
- package/deps/jq/configure.ac +10 -18
- package/deps/jq/docs/Pipfile.lock +368 -313
- package/deps/jq/docs/README.md +3 -4
- package/deps/jq/docs/build_manpage.py +1 -1
- package/deps/jq/docs/build_mantests.py +1 -1
- package/deps/jq/docs/build_website.py +1 -8
- package/deps/jq/docs/content/download/default.yml +49 -9
- package/deps/jq/docs/content/index.yml +9 -0
- package/deps/jq/docs/content/manual/{manual.yml → dev/manual.yml} +218 -61
- package/deps/jq/docs/content/manual/v1.3/manual.yml +0 -5
- package/deps/jq/docs/content/manual/v1.4/manual.yml +0 -5
- package/deps/jq/docs/content/manual/v1.5/manual.yml +3 -8
- package/deps/jq/docs/content/manual/v1.6/manual.yml +3 -8
- package/deps/jq/docs/content/manual/v1.7/manual.yml +499 -500
- package/deps/jq/docs/content/manual/v1.8/manual.yml +3858 -0
- package/deps/jq/docs/content/tutorial/default.yml +3 -3
- package/deps/jq/docs/manual_schema.yml +0 -3
- package/deps/jq/docs/public/CNAME +1 -0
- package/deps/jq/docs/templates/index.html.j2 +10 -10
- package/deps/jq/docs/templates/manual.html.j2 +14 -3
- package/deps/jq/docs/templates/shared/_head.html.j2 +8 -3
- package/deps/jq/docs/templates/shared/_navbar.html.j2 +4 -4
- package/deps/jq/jq.1.prebuilt +219 -44
- package/deps/jq/jq.spec +2 -2
- package/deps/jq/libjq.pc.in +1 -1
- package/deps/jq/scripts/version +1 -1
- package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
- package/deps/jq/sig/v1.8.0/jq-1.8.0.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-1.8.0.zip.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.8.0/sha256sum.txt +26 -0
- package/deps/jq/src/builtin.c +446 -271
- package/deps/jq/src/builtin.jq +25 -60
- package/deps/jq/src/bytecode.h +8 -3
- package/deps/jq/src/compile.c +22 -43
- package/deps/jq/src/compile.h +1 -1
- package/deps/jq/src/execute.c +20 -25
- package/deps/jq/src/jq_test.c +113 -44
- package/deps/jq/src/jv.c +134 -42
- package/deps/jq/src/jv.h +10 -3
- package/deps/jq/src/jv_alloc.c +8 -5
- package/deps/jq/src/jv_alloc.h +0 -1
- package/deps/jq/src/jv_aux.c +41 -8
- package/deps/jq/src/jv_dtoa.c +4 -12
- package/deps/jq/src/jv_dtoa_tsd.c +5 -4
- package/deps/jq/src/jv_dtoa_tsd.h +1 -1
- package/deps/jq/src/jv_parse.c +5 -3
- package/deps/jq/src/jv_print.c +87 -65
- package/deps/jq/src/jv_unicode.c +18 -0
- package/deps/jq/src/jv_unicode.h +2 -0
- package/deps/jq/src/lexer.c +303 -278
- package/deps/jq/src/lexer.h +5 -4
- package/deps/jq/src/lexer.l +8 -2
- package/deps/jq/src/libm.h +15 -5
- package/deps/jq/src/linker.c +6 -4
- package/deps/jq/src/locfile.c +12 -12
- package/deps/jq/src/main.c +204 -270
- package/deps/jq/src/parser.c +1105 -1273
- package/deps/jq/src/parser.y +149 -181
- package/deps/jq/src/util.c +46 -48
- package/deps/jq/src/util.h +1 -1
- package/deps/jq/tests/base64.test +12 -0
- package/deps/jq/tests/jq.test +429 -37
- package/deps/jq/tests/jq_fuzz_load_file.c +1 -0
- package/deps/jq/tests/man.test +46 -13
- package/deps/jq/tests/manonig.test +13 -0
- package/deps/jq/tests/onig.test +40 -2
- package/deps/jq/tests/optional.test +4 -12
- package/deps/jq/tests/setup +5 -1
- package/deps/jq/tests/shtest +358 -130
- package/deps/jq/tests/uri.test +38 -0
- package/deps/jq/tests/uritest +5 -0
- package/deps/jq/{src → vendor}/decNumber/decBasic.c +1 -1
- package/deps/jq/{src → vendor}/decNumber/decCommon.c +1 -1
- package/deps/jq/{src → vendor}/decNumber/decNumber.c +4 -4
- package/deps/jq/{modules → vendor}/oniguruma/CMakeLists.txt +5 -3
- package/deps/jq/{modules → vendor}/oniguruma/HISTORY +45 -7
- package/deps/jq/{modules → vendor}/oniguruma/Makefile.am +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/README.md +10 -23
- package/deps/jq/{modules → vendor}/oniguruma/compile +29 -13
- package/deps/jq/{modules → vendor}/oniguruma/config.guess +91 -27
- package/deps/jq/{modules → vendor}/oniguruma/config.sub +716 -242
- package/deps/jq/{modules → vendor}/oniguruma/configure.ac +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/depcomp +10 -9
- package/deps/jq/{modules → vendor}/oniguruma/doc/API +3 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/API.ja +3 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.BUILTIN +10 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.BUILTIN.ja +9 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/RE +12 -13
- package/deps/jq/{modules → vendor}/oniguruma/doc/RE.ja +12 -13
- package/deps/jq/{modules → vendor}/oniguruma/doc/SYNTAX.md +202 -167
- package/deps/jq/{modules → vendor}/oniguruma/doc/UNICODE_PROPERTIES +33 -1
- package/deps/jq/vendor/oniguruma/doc/onig_syn_md.c +667 -0
- package/deps/jq/{modules → vendor}/oniguruma/harnesses/base.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/install-sh +9 -9
- package/deps/jq/{modules → vendor}/oniguruma/missing +50 -29
- package/deps/jq/{modules → vendor}/oniguruma/sample/callback_each_match.c +1 -3
- package/deps/jq/vendor/oniguruma/sbom.cdx.json +44 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/ascii.c +4 -1
- package/deps/jq/{modules → vendor}/oniguruma/src/gperf_fold_key_conv.py +4 -4
- package/deps/jq/{modules → vendor}/oniguruma/src/gperf_unfold_key_conv.py +4 -4
- package/deps/jq/vendor/oniguruma/src/make_unicode_egcb.sh +7 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_egcb_data.py +20 -19
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_fold.sh +5 -5
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_fold_data.py +37 -37
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_property.sh +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_property_data.py +66 -65
- package/deps/jq/vendor/oniguruma/src/make_unicode_wb.sh +7 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_wb_data.py +20 -19
- package/deps/jq/{modules → vendor}/oniguruma/src/oniguruma.h +6 -3
- package/deps/jq/{modules → vendor}/oniguruma/src/regcomp.c +14 -6
- package/deps/jq/{modules → vendor}/oniguruma/src/regerror.c +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/src/regexec.c +85 -14
- package/deps/jq/{modules → vendor}/oniguruma/src/regint.h +17 -4
- package/deps/jq/{modules → vendor}/oniguruma/src/regparse.c +115 -27
- package/deps/jq/{modules → vendor}/oniguruma/src/regsyntax.c +10 -7
- package/deps/jq/{modules → vendor}/oniguruma/src/st.c +49 -75
- package/deps/jq/{modules → vendor}/oniguruma/src/st.h +3 -10
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_egcb_data.c +54 -49
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_fold1_key.c +1567 -1507
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_fold2_key.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_fold3_key.c +1 -1
- package/deps/jq/vendor/oniguruma/src/unicode_fold_data.c +1619 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_property_data.c +5520 -4178
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_property_data_posix.c +239 -83
- package/deps/jq/vendor/oniguruma/src/unicode_unfold_key.c +3497 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_wb_data.c +51 -19
- package/deps/jq/{modules → vendor}/oniguruma/src/utf16_be.c +3 -2
- package/deps/jq/{modules → vendor}/oniguruma/src/utf16_le.c +3 -2
- package/deps/jq/{modules → vendor}/oniguruma/test/test_back.c +3 -3
- package/deps/jq/{modules → vendor}/oniguruma/test/test_options.c +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/test/test_syntax.c +54 -2
- package/deps/jq/{modules → vendor}/oniguruma/test/test_utf8.c +19 -5
- package/deps/jq/{modules → vendor}/oniguruma/test/testc.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/test/testp.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/test-driver +13 -6
- package/deps/jq/{modules → vendor}/oniguruma/windows/CMakeLists.txt +1 -1
- package/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/jq.js +2 -1
- package/package.json +4 -3
- package/test/santiy-async.test.js +4 -4
- package/test/santiy.test.js +4 -4
- package/test/template.test.js +6 -6
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +0 -7
- package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +0 -7
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +0 -1592
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +0 -3394
- package/deps/jq/scripts/update-website +0 -30
- /package/deps/jq/{src → vendor}/decNumber/ICU-license.html +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decContext.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decContext.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decDPD.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decDouble.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decDouble.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decNumber.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decNumberLocal.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decPacked.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decPacked.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decQuad.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decQuad.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decSingle.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decSingle.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal128.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal128.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal32.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal32.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal64.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal64.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decnumber.pdf +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example1.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example2.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example3.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example4.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example5.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example6.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example7.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example8.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/readme.txt +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/.travis.yml +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/AUTHORS +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/COPYING +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/ChangeLog +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/NEWS +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/README +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/README_japanese +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/autogen.sh +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/cmake/Config.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.API +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.API.ja +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/FAQ +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/FAQ.ja +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/ascii_compatible.dict +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/deluxe.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/dict_conv.py +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/fuzzer.options +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/libfuzzer-onig.cpp +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/regset.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/index.html +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/index_ja.html +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/m4/.whatever +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/make_win.bat +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/make_win32.bat +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/make_win64.bat +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/onig-config.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/onig-config.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/oniguruma.pc.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/oniguruma.pc.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/CMakeLists.txt +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/Makefile.am +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/bug_fix.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/callout.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/count.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/crnl.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/echo.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/encode.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/listcap.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/names.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/posix.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/regset.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/scan.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/simple.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/sql.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/syntax.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/user_property.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/Makefile.am +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/Makefile.windows +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/big5.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.win32 +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.win64 +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.windows.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/cp1251.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_jp.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_jp_prop.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_jp_prop.gperf +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_kr.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_tw.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/gb18030.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_1.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_10.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_11.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_13.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_14.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_15.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_16.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_2.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_3.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_4.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_5.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_6.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_7.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_8.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_9.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/koi8.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/koi8_r.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/make_property.sh +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/mktable.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/onig_init.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/oniggnu.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/onigposix.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regenc.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regenc.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regext.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/reggnu.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regparse.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regposerr.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regposix.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regtrav.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regversion.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/sjis.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/sjis_prop.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/sjis_prop.gperf +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/unicode.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/utf32_be.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/utf32_le.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/utf8.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/CMakeLists.txt +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/Makefile.am +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/test.sh +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/test_regset.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/testu.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/stub.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_back.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_regset.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_syntax.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_utf8.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/testc.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/testu.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/windows/testc.c +0 -0
package/deps/jq/NEWS.md
CHANGED
|
@@ -1,3 +1,278 @@
|
|
|
1
|
+
# 1.8.1
|
|
2
|
+
|
|
3
|
+
This is a patch release to fix security, performance, and build issues found in 1.8.0.
|
|
4
|
+
Full commit log can be found at <https://github.com/jqlang/jq/compare/jq-1.8.0...jq-1.8.1>.
|
|
5
|
+
|
|
6
|
+
## Security fixes
|
|
7
|
+
|
|
8
|
+
- CVE-2025-49014: Fix heap use after free in `f_strftime`, `f_strflocaltime`.
|
|
9
|
+
@wader 499c91bca9d4d027833bc62787d1bb075c03680e
|
|
10
|
+
- GHSA-f946-j5j2-4w5m: Fix stack overflow in `node_min_byte_len` of oniguruma.
|
|
11
|
+
@wader 5e159b34b179417e3e0404108190a2ac7d65611c
|
|
12
|
+
|
|
13
|
+
## CLI changes
|
|
14
|
+
|
|
15
|
+
- Fix assertion failure when syntax error happens at the end of the query. @itchyny #3350
|
|
16
|
+
|
|
17
|
+
## Changes to existing functions
|
|
18
|
+
|
|
19
|
+
- Fix portability of `strptime/1` especially for Windows. @itchyny #3342
|
|
20
|
+
|
|
21
|
+
## Language changes
|
|
22
|
+
|
|
23
|
+
- Revert the change of `reduce`/`foreach` state variable in 1.8.0 (#3205).
|
|
24
|
+
This change was reverted due to serious performance regression. @itchyny #3349
|
|
25
|
+
|
|
26
|
+
## Documentation changes
|
|
27
|
+
|
|
28
|
+
- Add LICENSE notice of NetBSD's `strptime()` to COPYING. @itchyny #3344
|
|
29
|
+
|
|
30
|
+
## Build improvements
|
|
31
|
+
|
|
32
|
+
- Fix build on old Mac with old sed. @qianbinbin #3336
|
|
33
|
+
|
|
34
|
+
# 1.8.0
|
|
35
|
+
|
|
36
|
+
We are pleased to announce the release of version 1.8.0.
|
|
37
|
+
This release includes a number of improvements since the last version.
|
|
38
|
+
Note that some changes may introduce breaking changes to existing scripts,
|
|
39
|
+
so be sure to read the following information carefully.
|
|
40
|
+
Full commit log can be found at <https://github.com/jqlang/jq/compare/jq-1.7.1...jq-1.8.0>.
|
|
41
|
+
|
|
42
|
+
## Releasing
|
|
43
|
+
|
|
44
|
+
- Change the version number pattern to `1.X.Y` (`1.8.0` instead of `1.8`). @itchyny #2999
|
|
45
|
+
- Generate provenance attestations for release artifacts and docker image. @lectrical #3225
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
gh attestation verify --repo jqlang/jq jq-linux-amd64
|
|
49
|
+
gh attestation verify --repo jqlang/jq oci://ghcr.io/jqlang/jq:1.8.0
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Security fixes
|
|
53
|
+
|
|
54
|
+
- CVE-2024-23337: Fix signed integer overflow in `jvp_array_write` and `jvp_object_rehash`.
|
|
55
|
+
@itchyny de21386681c0df0104a99d9d09db23a9b2a78b1e
|
|
56
|
+
- The fix for this issue now limits the maximum size of arrays and objects to 536870912 (`2^29`) elements.
|
|
57
|
+
- CVE-2024-53427: Reject NaN with payload while parsing JSON.
|
|
58
|
+
@itchyny a09a4dfd55e6c24d04b35062ccfe4509748b1dd3
|
|
59
|
+
- The fix for this issue now drops support for NaN with payload in JSON (like `NaN123`).
|
|
60
|
+
Other JSON extensions like `NaN` and `Infinity` are still supported.
|
|
61
|
+
- CVE-2025-48060: Fix heap buffer overflow in `jv_string_vfmt`.
|
|
62
|
+
@itchyny c6e041699d8cd31b97375a2596217aff2cfca85b
|
|
63
|
+
- Fix use of uninitialized value in `check_literal`. @itchyny #3324
|
|
64
|
+
- Fix segmentation fault on `strftime/1`, `strflocaltime/1`. @itchyny #3271
|
|
65
|
+
- Fix unhandled overflow in `@base64d`. @emanuele6 #3080
|
|
66
|
+
|
|
67
|
+
## CLI changes
|
|
68
|
+
|
|
69
|
+
- Fix `--indent 0` implicitly enabling `--compact-output`. @amarshall @gbrlmarn @itchyny #3232
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
$ jq --indent 0 . <<< '{ "foo": ["hello", "world"] }'
|
|
73
|
+
{
|
|
74
|
+
"foo": [
|
|
75
|
+
"hello",
|
|
76
|
+
"world"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
# Previously, this implied --compact-output, but now outputs with new lines.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
- Improve error messages to show problematic position in the filter. @itchyny #3292
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
$ jq -n '1 + $foo + 2'
|
|
86
|
+
jq: error: $foo is not defined at <top-level>, line 1, column 5:
|
|
87
|
+
1 + $foo + 2
|
|
88
|
+
^^^^
|
|
89
|
+
jq: 1 compile error
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
- Include column number in parser and compiler error messages. @liviubobocu #3257
|
|
93
|
+
- Fix error message for string literal beginning with single quote. @mattmeyers #2964
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
$ jq .foo <<< "{'foo':'bar'}"
|
|
97
|
+
jq: parse error: Invalid string literal; expected ", but got ' at line 1, column 7
|
|
98
|
+
# Previously, the error message was Invalid numeric literal at line 1, column 7.
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- Improve `JQ_COLORS` environment variable to support larger escapes like truecolor. @SArpnt #3282
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
JQ_COLORS="38;2;255;173;173:38;2;255;214;165:38;2;253;255;182:38;2;202;255;191:38;2;155;246;255:38;2;160;196;255:38;2;189;178;255:38;2;255;198;255" jq -nc '[null,false,true,42,{"a":"bc"}]'
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
- Add `--library-path` long option for `-L`. @thaliaarchi #3194
|
|
108
|
+
- Fix `--slurp --stream` when input has no trailing newline character. @itchyny #3279
|
|
109
|
+
- Fix `--indent` option to error for malformed values. @thaliaarchi #3195
|
|
110
|
+
- Fix option parsing of `--binary` on non-Windows platforms. @calestyo #3131
|
|
111
|
+
- Fix issue with `~/.jq` on Windows where `$HOME` is not set. @kirkoman #3114
|
|
112
|
+
- Fix broken non-Latin output in the command help on Windows. @itchyny #3299
|
|
113
|
+
- Increase the maximum parsing depth for JSON to 10000. @itchyny #3328
|
|
114
|
+
- Parse short options in order given. @thaliaarchi #3194
|
|
115
|
+
- Consistently reset color formatting. @thaliaarchi #3034
|
|
116
|
+
|
|
117
|
+
## New functions
|
|
118
|
+
|
|
119
|
+
- Add `trim/0`, `ltrim/0` and `rtrim/0` to trim leading and trailing white spaces. @wader #3056
|
|
120
|
+
|
|
121
|
+
```sh
|
|
122
|
+
$ jq -n '" hello " | trim, ltrim, rtrim'
|
|
123
|
+
"hello"
|
|
124
|
+
"hello "
|
|
125
|
+
" hello"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
- Add `trimstr/1` to trim string from both ends. @gbrlmarn #3319
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
$ jq -n '"foobarfoo" | trimstr("foo")'
|
|
132
|
+
"bar"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
- Add `add/1`. Generator variant of `add/0`. @myaaaaaaaaa #3144
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
$ jq -c '.sum = add(.xs[])' <<< '{"xs":[1,2,3]}'
|
|
139
|
+
{"xs":[1,2,3],"sum":6}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
- Add `skip/2` as the counterpart to `limit/2`. @itchyny #3181
|
|
143
|
+
|
|
144
|
+
```sh
|
|
145
|
+
$ jq -nc '[1,2,3,4,5] | [skip(2; .[])]'
|
|
146
|
+
[3,4,5]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
- Add `toboolean/0` to convert strings to booleans. @brahmlower @itchyny #2098
|
|
150
|
+
|
|
151
|
+
```sh
|
|
152
|
+
$ jq -n '"true", "false" | toboolean'
|
|
153
|
+
true
|
|
154
|
+
false
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
- Add `@urid` format. Reverse of `@uri`. @fmgornick #3161
|
|
158
|
+
|
|
159
|
+
```sh
|
|
160
|
+
$ jq -Rr '@urid' <<< '%6a%71'
|
|
161
|
+
jq
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Changes to existing functions
|
|
165
|
+
|
|
166
|
+
- Use code point index for `indices/1`, `index/1` and `rindex/1`. @wader #3065
|
|
167
|
+
- This is a breaking change. Use `utf8bytelength/0` to get byte index.
|
|
168
|
+
- Improve `tonumber/0` performance and rejects numbers with leading or trailing
|
|
169
|
+
white spaces. @itchyny @thaliaarchi #3055 #3195
|
|
170
|
+
- This is a breaking change. Use `trim/0` to remove leading and trailing white spaces.
|
|
171
|
+
- Populate timezone data when formatting time. This fixes timezone name in
|
|
172
|
+
`strftime/1`, `strflocaltime/1` for DST. @marcin-serwin @sihde #3203 #3264 #3323
|
|
173
|
+
- Preserve numerical precision on unary negation, `abs/0`, `length/0`. @itchyny #3242 #3275
|
|
174
|
+
- Make `last(empty)` yield no output values like `first(empty)`. @itchyny #3179
|
|
175
|
+
- Make `ltrimstr/1` and `rtrimstr/1` error for non-string inputs. @emanuele6 #2969
|
|
176
|
+
- Make `limit/2` error for negative count. @itchyny #3181
|
|
177
|
+
- Fix `mktime/0` overflow and allow fewer elements in date-time representation array. @emanuele6 #3070 #3162
|
|
178
|
+
- Fix non-matched optional capture group. @wader #3238
|
|
179
|
+
- Provide `strptime/1` on all systems. @george-hopkins @fdellwing #3008 #3094
|
|
180
|
+
- Fix `_WIN32` port of `strptime`. @emanuele6 #3071
|
|
181
|
+
- Improve `bsearch/1` performance by implementing in C. @eloycoto #2945
|
|
182
|
+
- Improve `unique/0` and `unique_by/1` performance. @itchyny @emanuele6 #3254 #3304
|
|
183
|
+
- Fix error messages including long string literal not to break Unicode characters. @itchyny #3249
|
|
184
|
+
- Remove `pow10/0` as it has been deprecated in glibc 2.27. Use `exp10/0` instead. @itchyny #3059
|
|
185
|
+
- Remove private (and undocumented) `_nwise` filter. @itchyny #3260
|
|
186
|
+
|
|
187
|
+
## Language changes
|
|
188
|
+
|
|
189
|
+
- Fix precedence of binding syntax against unary and binary operators.
|
|
190
|
+
Also, allow some expressions as object values. @itchyny #3053 #3326
|
|
191
|
+
- This is a breaking change that may change the output of filters with binding syntax as follows.
|
|
192
|
+
|
|
193
|
+
```sh
|
|
194
|
+
$ jq -nc '[-1 as $x | 1,$x]'
|
|
195
|
+
[1,-1] # previously, [-1,-1]
|
|
196
|
+
$ jq -nc '1 | . + 2 as $x | -$x'
|
|
197
|
+
-3 # previously, -1
|
|
198
|
+
$ jq -nc '{x: 1 + 2, y: false or true, z: null // 3}'
|
|
199
|
+
{"x":3,"y":true,"z":3} # previously, syntax error
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
- Support Tcl-style multiline comments. @emanuele6 #2989
|
|
203
|
+
|
|
204
|
+
```sh
|
|
205
|
+
#!/bin/sh --
|
|
206
|
+
# Can be use to do shebang scripts.
|
|
207
|
+
# Next line will be seen as a comment be of the trailing backslash. \
|
|
208
|
+
exec jq ...
|
|
209
|
+
# this jq expression will result in [1]
|
|
210
|
+
[
|
|
211
|
+
1,
|
|
212
|
+
# \
|
|
213
|
+
2
|
|
214
|
+
]
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
- Fix `foreach` not to break init backtracking with `DUPN`. @kanwren #3266
|
|
218
|
+
|
|
219
|
+
```sh
|
|
220
|
+
$ jq -n '[1, 2] | foreach .[] as $x (0, 1; . + $x)'
|
|
221
|
+
1
|
|
222
|
+
3
|
|
223
|
+
2
|
|
224
|
+
4
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
- Fix `reduce`/`foreach` state variable should not be reset each iteration. @itchyny #3205
|
|
228
|
+
|
|
229
|
+
```sh
|
|
230
|
+
$ jq -n 'reduce range(5) as $x (0; .+$x | select($x!=2))'
|
|
231
|
+
8
|
|
232
|
+
$ jq -nc '[foreach range(5) as $x (0; .+$x | select($x!=2); [$x,.])]'
|
|
233
|
+
[[0,0],[1,1],[3,4],[4,8]]
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
- Support CRLF line breaks in filters. @itchyny #3274
|
|
237
|
+
- Improve performance of repeating strings. @itchyny #3272
|
|
238
|
+
|
|
239
|
+
## Documentation changes
|
|
240
|
+
|
|
241
|
+
- Switch the homepage to custom domain [jqlang.org](https://jqlang.org). @itchyny @owenthereal #3243
|
|
242
|
+
- Make latest release instead of development version the default manual. @wader #3130
|
|
243
|
+
- Add opengraph meta tags. @wader #3247
|
|
244
|
+
- Replace jqplay.org with play.jqlang.org @owenthereal #3265
|
|
245
|
+
- Add missing line from decNumber's licence to `COPYING`. @emanuele6 #3106
|
|
246
|
+
- Various document improvements. @tsibley #3322, @itchyny #3240, @jhcarl0814 #3239,
|
|
247
|
+
@01mf02 #3184, @thaliaarchi #3199, @NathanBaulch #3173, @cjlarose #3164,
|
|
248
|
+
@sheepster1 #3105, #3103, @kishoreinvits #3042, @jbrains #3035, @thalman #3033,
|
|
249
|
+
@SOF3 #3017, @wader #3015, @wllm-rbnt #3002
|
|
250
|
+
|
|
251
|
+
## Build improvements
|
|
252
|
+
|
|
253
|
+
- Fix build with GCC 15 (C23). @emanuele6 #3209
|
|
254
|
+
- Fix build with `-Woverlength-strings` @emanuele6 #3019
|
|
255
|
+
- Fix compiler warning `type-limits` in `found_string`. @itchyny #3263
|
|
256
|
+
- Fix compiler error in `jv_dtoa.c` and `builtin.c`. @UlrichEckhardt #3036
|
|
257
|
+
- Fix warning: a function definition without a prototype is deprecated. @itchyny #3259
|
|
258
|
+
- Define `_BSD_SOURCE` in `builtin.c` for OpenBSD support. @itchyny #3278
|
|
259
|
+
- Define empty `JV_{,V}PRINTF_LIKE` macros if `__GNUC__` is not defined. @emanuele6 #3160
|
|
260
|
+
- Avoid `ctype.h` abuse: cast `char` to `unsigned char` first. @riastradh #3152
|
|
261
|
+
- Remove multiple calls to free when successively calling `jq_reset`. @Sameesunkaria #3134
|
|
262
|
+
- Enable IBM z/OS support. @sachintu47 #3277
|
|
263
|
+
- Fix insecure `RUNPATH`. @orbea #3212
|
|
264
|
+
- Avoid zero-length `calloc`. @itchyny #3280
|
|
265
|
+
- Move oniguruma and decNumber to vendor directory. @itchyny #3234
|
|
266
|
+
|
|
267
|
+
## Test improvements
|
|
268
|
+
|
|
269
|
+
- Run tests in C locale. @emanuele6 #3039
|
|
270
|
+
- Improve reliability of `NO_COLOR` tests. @dag-erling #3188
|
|
271
|
+
- Improve `shtest` not to fail if `JQ_COLORS` and `NO_COLOR` are already set. @SArpnt #3283
|
|
272
|
+
- Refactor constant folding tests. @itchyny #3233
|
|
273
|
+
- Make tests pass when `--disable-decnum`. @nicowilliams 6d02d53f515bf1314d644eee93ba30b0d11c7d2b
|
|
274
|
+
- Disable Valgrind by default during testing. @itchyny #3269
|
|
275
|
+
|
|
1
276
|
# 1.7.1
|
|
2
277
|
|
|
3
278
|
## Security
|
|
@@ -43,7 +318,7 @@
|
|
|
43
318
|
- Remove `-dirty` version suffix for windows release build. @itchyny #2888
|
|
44
319
|
- Make use of `od` in tests more compatible. @nabijaczleweli @emanuele6 @nicowilliams #2922
|
|
45
320
|
- Add dependabot. @yeikel #2889
|
|
46
|
-
- Extend fuzzing setup to fuzz parser and
|
|
321
|
+
- Extend fuzzing setup to fuzz parser and JSON serializer. @DavidKorczynski @emanuele6 #2952
|
|
47
322
|
- Keep releasing executables with legacy names. @itchyny #2951
|
|
48
323
|
|
|
49
324
|
# 1.7
|
|
@@ -262,7 +537,7 @@ Full commit log can be found at <https://github.com/jqlang/jq/compare/jq-1.6...j
|
|
|
262
537
|
- Fix `contains/1` to handle strings with NUL. @nicowilliams 61cd6db
|
|
263
538
|
- Fix `stderr/0` to output raw text without any decoration. @itchyny #2751
|
|
264
539
|
- Fix `nth/2` to emit empty on index out of range. @itchyny #2674
|
|
265
|
-
- Fix `implode` to not assert and instead replace invalid
|
|
540
|
+
- Fix `implode` to not assert and instead replace invalid Unicode codepoints. @wader #2646
|
|
266
541
|
- Fix `indices/1` and `rindex/1` in case of overlapping matches in strings. @emanuele6 #2718
|
|
267
542
|
- Fix `sub/3` to resolve issues involving global search-and-replace (gsub) operations. @pkoppstein #2641
|
|
268
543
|
- Fix `significand/0`, `gamma/0` and `drem/2` to be available on macOS. @itchyny #2756 #2775
|
package/deps/jq/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
|
|
7
|
-
- **Official Documentation**: [jqlang.
|
|
8
|
-
- **Try jq Online**: [
|
|
7
|
+
- **Official Documentation**: [jqlang.org](https://jqlang.org)
|
|
8
|
+
- **Try jq Online**: [play.jqlang.org](https://play.jqlang.org)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -17,6 +17,20 @@ Download the latest releases from the [GitHub release page](https://github.com/j
|
|
|
17
17
|
|
|
18
18
|
Pull the [jq image](https://github.com/jqlang/jq/pkgs/container/jq) to start quickly with Docker.
|
|
19
19
|
|
|
20
|
+
#### Run with Docker
|
|
21
|
+
|
|
22
|
+
##### Example: Extracting the version from a `package.json` file
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
##### Example: Extracting the version from a `package.json` file with a mounted volume
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
docker run --rm -i -v "$PWD:$PWD" -w "$PWD" ghcr.io/jqlang/jq:latest '.version' package.json
|
|
32
|
+
```
|
|
33
|
+
|
|
20
34
|
### Building from source
|
|
21
35
|
|
|
22
36
|
#### Dependencies
|
|
@@ -29,9 +43,10 @@ Pull the [jq image](https://github.com/jqlang/jq/pkgs/container/jq) to start qui
|
|
|
29
43
|
#### Instructions
|
|
30
44
|
|
|
31
45
|
```console
|
|
32
|
-
git submodule update --init
|
|
33
|
-
autoreconf -i
|
|
46
|
+
git submodule update --init # if building from git to get oniguruma
|
|
47
|
+
autoreconf -i # if building from git
|
|
34
48
|
./configure --with-oniguruma=builtin
|
|
49
|
+
make clean # if upgrading from a version previously built from source
|
|
35
50
|
make -j8
|
|
36
51
|
make check
|
|
37
52
|
sudo make install
|
|
@@ -57,4 +72,7 @@ For details on cross-compilation, check out the [GitHub Actions file](.github/wo
|
|
|
57
72
|
|
|
58
73
|
## License
|
|
59
74
|
|
|
60
|
-
`jq` is released under the [MIT License](COPYING).
|
|
75
|
+
`jq` is released under the [MIT License](COPYING). `jq`'s documentation is
|
|
76
|
+
licensed under the [Creative Commons CC BY 3.0](COPYING).
|
|
77
|
+
`jq` uses parts of the open source C library "decNumber", which is distributed
|
|
78
|
+
under [ICU License](COPYING)
|
package/deps/jq/compile-ios.sh
CHANGED
|
@@ -2,8 +2,8 @@ dnl AC_CHECK_MATH_FUNC(func)
|
|
|
2
2
|
AC_DEFUN([AC_CHECK_MATH_FUNC], [
|
|
3
3
|
AC_LANG(C)
|
|
4
4
|
AC_CHECK_LIB([m],[$1],[
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
m4_define([ac_tr_func], [HAVE_]m4_toupper($1))
|
|
6
|
+
AC_DEFINE(ac_tr_func, 1, [Define if you have the $1 math function.])
|
|
7
7
|
],[
|
|
8
8
|
])
|
|
9
9
|
])
|
|
@@ -42,7 +42,7 @@ case "$ac_res" in
|
|
|
42
42
|
yes)
|
|
43
43
|
eval "ac_cv_func_$1=yes"
|
|
44
44
|
eval "LIB_$1="
|
|
45
|
-
AC_DEFINE_UNQUOTED($ac_tr_func)
|
|
45
|
+
AC_DEFINE_UNQUOTED($ac_tr_func, 1, [Define if the $1 function is available.])
|
|
46
46
|
AC_MSG_RESULT([yes])
|
|
47
47
|
;;
|
|
48
48
|
no)
|
|
@@ -53,8 +53,8 @@ case "$ac_res" in
|
|
|
53
53
|
*)
|
|
54
54
|
eval "ac_cv_func_$1=yes"
|
|
55
55
|
eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
|
|
56
|
-
AC_DEFINE_UNQUOTED($ac_tr_func)
|
|
57
|
-
AC_DEFINE_UNQUOTED($ac_tr_lib)
|
|
56
|
+
AC_DEFINE_UNQUOTED($ac_tr_func, 1, [Define if you have the $1 function.])
|
|
57
|
+
AC_DEFINE_UNQUOTED($ac_tr_lib, 1, [Define if you have the $2 library.])
|
|
58
58
|
AC_MSG_RESULT([yes, in $ac_res])
|
|
59
59
|
;;
|
|
60
60
|
esac
|
package/deps/jq/configure.ac
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
m4_define([jq_version], m4_esyscmd_s([scripts/version])))
|
|
2
2
|
|
|
3
|
-
AC_INIT([jq],[jq_version],[https://github.com/jqlang/jq/issues],[jq],[https://jqlang.
|
|
3
|
+
AC_INIT([jq],[jq_version],[https://github.com/jqlang/jq/issues],[jq],[https://jqlang.org])
|
|
4
4
|
|
|
5
5
|
dnl Created autoconf implementation thompson@dtosolutions, 26NOV12
|
|
6
6
|
AC_PREREQ([2.65])
|
|
@@ -39,11 +39,6 @@ if test "$USE_MAINTAINER_MODE" = yes; then
|
|
|
39
39
|
AC_CHECK_PROGS(LEX, flex lex)
|
|
40
40
|
fi
|
|
41
41
|
|
|
42
|
-
dnl Check for valgrind
|
|
43
|
-
AC_CHECK_PROGS(valgrind_cmd, valgrind)
|
|
44
|
-
if test "x$valgrind_cmd" = "x" ; then
|
|
45
|
-
AC_MSG_WARN([valgrind is required to test jq.])
|
|
46
|
-
fi
|
|
47
42
|
AC_CHECK_FUNCS(memmem)
|
|
48
43
|
|
|
49
44
|
AC_CHECK_HEADER("sys/cygwin.h", [have_cygwin=1;])
|
|
@@ -54,10 +49,9 @@ dnl Running tests with Valgrind is slow. It is faster to iterate on
|
|
|
54
49
|
dnl code without Valgrind until tests pass, then enable Valgrind and
|
|
55
50
|
dnl fix leaks.
|
|
56
51
|
AC_ARG_ENABLE([valgrind],
|
|
57
|
-
AS_HELP_STRING([--
|
|
52
|
+
AS_HELP_STRING([--enable-valgrind],[enable Valgrind during testing]))
|
|
58
53
|
|
|
59
|
-
dnl
|
|
60
|
-
dnl faster.
|
|
54
|
+
dnl Address sanitizer (ASan)
|
|
61
55
|
AC_ARG_ENABLE([asan],
|
|
62
56
|
AS_HELP_STRING([--enable-asan],[enable address sanitizer]))
|
|
63
57
|
|
|
@@ -111,10 +105,10 @@ AC_ARG_ENABLE([decnum],
|
|
|
111
105
|
AS_HELP_STRING([--disable-decnum],[disable decnum support]))
|
|
112
106
|
|
|
113
107
|
AS_IF([test "x$enable_decnum" != "xno"],[
|
|
114
|
-
AC_DEFINE([USE_DECNUM],1)
|
|
108
|
+
AC_DEFINE([USE_DECNUM], 1, [Define to enable decnum support.])
|
|
115
109
|
])
|
|
116
110
|
|
|
117
|
-
AM_CONDITIONAL([ENABLE_VALGRIND], [test "x$enable_valgrind"
|
|
111
|
+
AM_CONDITIONAL([ENABLE_VALGRIND], [test "x$enable_valgrind" = xyes])
|
|
118
112
|
AM_CONDITIONAL([ENABLE_ASAN], [test "x$enable_asan" = xyes])
|
|
119
113
|
AM_CONDITIONAL([ENABLE_UBSAN], [test "x$enable_ubsan" = xyes])
|
|
120
114
|
AM_CONDITIONAL([ENABLE_GCOV], [test "x$enable_gcov" = xyes])
|
|
@@ -125,7 +119,7 @@ AM_CONDITIONAL([ENABLE_ALL_STATIC], [test "x$enable_all_static" = xyes])
|
|
|
125
119
|
dnl Find pthread, if we have it. We do this first because we may set -pthread on CFLAGS
|
|
126
120
|
dnl which can cause various macros to be defined (__REENTRANT on Darwin, for example)
|
|
127
121
|
AX_PTHREAD([
|
|
128
|
-
AC_DEFINE([HAVE_PTHREAD], [1])
|
|
122
|
+
AC_DEFINE([HAVE_PTHREAD], [1], [Define to enable POSIX threads support.])
|
|
129
123
|
LIBS="$PTHREAD_LIBS $LIBS"
|
|
130
124
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
|
131
125
|
CC="$PTHREAD_CC"
|
|
@@ -201,7 +195,6 @@ AC_CHECK_MATH_FUNC(lgamma_r)
|
|
|
201
195
|
AC_CHECK_MATH_FUNC(nearbyint)
|
|
202
196
|
AC_CHECK_MATH_FUNC(nextafter)
|
|
203
197
|
AC_CHECK_MATH_FUNC(nexttoward)
|
|
204
|
-
AC_CHECK_MATH_FUNC(pow10) # Not available with glibc version >= 2.27
|
|
205
198
|
AC_CHECK_MATH_FUNC(pow)
|
|
206
199
|
AC_CHECK_MATH_FUNC(remainder)
|
|
207
200
|
AC_CHECK_MATH_FUNC(rint)
|
|
@@ -275,10 +268,10 @@ AS_IF([test "x$with_oniguruma" != xno], [
|
|
|
275
268
|
AC_MSG_NOTICE([Oniguruma was not found. Will use the packaged oniguruma.])
|
|
276
269
|
])
|
|
277
270
|
])
|
|
278
|
-
AS_IF([test "x$build_oniguruma" = xyes && test -f "${srcdir}/
|
|
279
|
-
onig_CFLAGS="-I${srcdir}/
|
|
280
|
-
onig_LDFLAGS="-L${srcdir}/
|
|
281
|
-
AC_CONFIG_SUBDIRS([
|
|
271
|
+
AS_IF([test "x$build_oniguruma" = xyes && test -f "${srcdir}/vendor/oniguruma/configure.ac" ], [
|
|
272
|
+
onig_CFLAGS="-I${srcdir}/vendor/oniguruma/src"
|
|
273
|
+
onig_LDFLAGS="-L${srcdir}/vendor/oniguruma/src -Wl,-rpath,${libdir}"
|
|
274
|
+
AC_CONFIG_SUBDIRS([vendor/oniguruma])
|
|
282
275
|
AC_DEFINE([HAVE_LIBONIG],1,[Define to 1 if the system includes libonig])
|
|
283
276
|
])
|
|
284
277
|
CFLAGS="$save_CFLAGS"
|
|
@@ -289,7 +282,6 @@ AC_SUBST(onig_LDFLAGS)
|
|
|
289
282
|
|
|
290
283
|
AM_CONDITIONAL([BUILD_ONIGURUMA], [test "x$build_oniguruma" = xyes])
|
|
291
284
|
AM_CONDITIONAL([WITH_ONIGURUMA], [test "x$with_oniguruma" != xno])
|
|
292
|
-
AC_SUBST([BUNDLER], ["$bundle_cmd"])
|
|
293
285
|
|
|
294
286
|
AC_CONFIG_MACRO_DIRS([config/m4 m4])
|
|
295
287
|
AC_CONFIG_FILES([Makefile libjq.pc])
|