itchyny
e2bc8de8bb
Fix the latest manual on string multiplication by zero
2023-07-08 23:10:07 -05:00
itchyny
cac3ea3726
Fix string multiplication by 0 (and less than 1) to emit empty string
2023-07-08 22:25:22 -05:00
itchyny
88b45771bd
Fix string multiplication with a value between 0.0 and 1.0
...
This commit fixes a regression of 6306ac8966 .
2023-07-08 22:25:22 -05:00
itchyny
af57893bc2
Optimize appending deletion path in modify
2023-07-07 20:11:10 -05:00
itchyny
371abc73ba
Fix deletion using assigning empty against arrays ( fix #2051 )
2023-07-07 20:11:10 -05:00
Emanuele Torre
cd8898d5b9
exit immediately after halt or halt_error is called
...
Instead of continuing to the next input, and only exiting if there are
no more inputs.
Closes #2533
2023-07-07 11:13:28 -05:00
itchyny
0ecededefa
Remove deprecated filters: leaf_paths, recurse_down
2023-07-07 10:53:40 -05:00
itchyny
6944d81bc8
Fix dumping large floating numbers ( fix #2367 ) ( #2661 )
2023-07-06 21:44:17 +09:00
pkoppstein
c68ad08805
manual.yml: pick(pathexps)
...
Change formal parameter name
2023-07-05 23:48:31 -05:00
pkoppstein
37225a9a07
builtin.jq: def pick(pathexps):
...
Change the name of the formal parameter.
2023-07-05 23:48:31 -05:00
pkoppstein
416e8ada7d
builtin: add pick(stream)
...
pick(stream) works on both arrays and objects
Restrictions on the dot-paths are specified in manual.yml
See #2578
2023-07-05 23:48:31 -05:00
itchyny
a881532b29
Fix exit code on JSON parse error ( #2654 )
2023-07-06 10:01:59 +09:00
Mattias Wadman
95625c3fdb
Validate JSON for --jsonarg
...
Fixes #2572
2023-07-05 16:30:14 -05:00
itchyny
c077b95ba2
Remove outdated CI badges from README.md ( #2653 )
2023-07-05 07:51:25 +09:00
itchyny
9014c212e8
Release Docker image to GitHub Container Registry ( #2652 )
2023-07-05 04:33:57 +09:00
itchyny
886a9b18b1
Make 0 divided by 0 results in NaN consistently ( #2253 )
2023-07-05 04:28:08 +09:00
Mattias Wadman
dfd440f0de
Setup path correctly after stream parsing a key:value object pair ( #2642 )
2023-07-05 04:23:52 +09:00
itchyny
7d424fd52e
Fix release workflow tag trigger pattern ( #2651 )
2023-07-04 16:00:25 +09:00
itchyny
2270e208d2
Improve Dockerfile: update base image and optimize image size ( #2649 )
...
Also, drop ineffectual flags from configure.
2023-07-04 16:00:04 +09:00
Mattias Wadman
12ce4e3b54
Support optional else-branch for if-then-elif-end ( #2598 )
2023-07-04 07:51:29 +09:00
itchyny
4dc2a2fb9d
Implement scan/2 filter ( #1961 )
2023-07-04 07:48:29 +09:00
pkoppstein
83f375cc83
Revamp sub/3 to resolve most issues with gsub (and sub with "g") ( #2641 )
...
The primary purpose of this commit is to rectify most problems with
`gsub` (and also `sub` with the `g` option), in particular fix #1425 ('\b'),
fix #2354 (lookahead), and fix #2532 (regex == `"^(?!cd ).*$|^cd "`).
This commit also partly resolves #2148 and resolves #1206 in that
`gsub` no longer loops infinitely; however, because the new `gsub`
depends critically on `match/2`, the behavior when regex == `""` is
sometimes non-standard.
The documentation has been updated to reflect the fact that `sub`
and `gsub` are intended to be regular in the second argument.
Also, `_nwise/1` has been tweaked to take advantage of TCO.
2023-07-04 07:46:29 +09:00
itchyny
edb0d88e3b
Fix duplicate entry in .gitignore
2023-07-03 23:05:51 +09:00
itchyny
3847ebb699
Create dist and upload on release also disable docs on build ( #2648 )
2023-07-03 21:05:21 +09:00
pkoppstein
3c76a5b3f3
manual.yml: fix references to javascript, and clarify semantics of == ( #2645 )
...
remove inaccurate and confusing references to javascript; clarify semantics of ==
2023-07-03 12:35:41 +09:00
itchyny
4b5fcb936f
Fix the default search paths and documentation ( #2093 )
2023-07-03 09:12:22 +09:00
itchyny
5ae04c0f52
Strip debug information from executables ( fix #1221 ) ( #2647 )
2023-07-03 08:46:35 +09:00
Owen Ou
44a0f3448a
Release pipeline ( #2620 )
...
* Release pipeline
* Group CI builds for different OSes into `ci.yml`.
* Add release job to release `jq` when tag is in the format of v*.
* Use `clang` as the only compiler on CI.
* Provide extensible matrix for future cross-compile builds, e.g.
for https://github.com/jqlang/jq/pull/2618 .
* Locate bison for Windows build
* Also install flex for Windows build
* Add matrix to test all available GH Actions images
* Enable all tests for Windows
* Run `brew update-reset` when `brew update` fails
`brew update` can fail for "Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!"
Ref: https://github.com/owenthereal/jq/actions/runs/5432314910/jobs/9879266028#step:3:19
* Select gcc binaries to release
* Only enable CI when push to master & tag
* Try out statick build
* No need to enforce the same `AM_INIT_AUTOMAKE` version for MacOS
* Disable static build for ubuntu-20.04
See https://github.com/jqlang/jq/pull/2620#discussion_r1248936822
2023-07-02 10:48:26 -07:00
itchyny
f88c4e5888
Move an example to the manual and regenerate man.test ( #2639 )
2023-06-30 07:45:29 +09:00
itchyny
03db5509cb
Remove unused function: jv_mem_invalidate, jv_mem_uninit_setup ( #2636 )
2023-06-28 22:59:41 +09:00
Allan Clark
d5dd41e2dc
fix: tarball fails distcheck: add files missing from manifest ( #2538 )
2023-06-28 22:37:49 +09:00
itchyny
d829524680
Remove deleted README file from jq.spec ( #2637 )
2023-06-28 22:37:31 +09:00
itchyny
6d694a4a58
Validate module metadata to be an object ( #2357 )
2023-06-28 17:59:46 +09:00
itchyny
5dacc6b3a1
Fix bison warnings on incompatibilities with POSIX Yacc ( #2634 )
2023-06-28 17:56:53 +09:00
itchyny
82d5602230
Fix "writing output failed" error of non ASCII output on Windows ( #2633 )
2023-06-28 17:54:40 +09:00
itchyny
7c1efd67ff
Update oniguruma submodule (June 2023) ( #2635 )
2023-06-28 17:04:42 +09:00
itchyny
98835eec24
Fix halt_error to print message without prefix in raw mode ( fix #1902 ) ( #2632 )
2023-06-27 07:33:21 +09:00
itchyny
e468eaa396
Fix glibc warning about _BSD_SOURCE and redefined _GNU_SOURCE ( fix #1978 ) ( #2631 )
2023-06-27 07:25:55 +09:00
itchyny
44c89ad3da
Ignore error of outdated manual test when docs disabled ( fix #2310 ) ( #2630 )
2023-06-27 07:25:24 +09:00
itchyny
73966c80ec
Fix number lexer to avoid conflict with object indexing ( #2254 )
2023-06-27 07:24:49 +09:00
itchyny
fac5553b22
Fix overflow exception of the modulo operator ( fix #1176 ) ( #2629 )
2023-06-27 07:23:41 +09:00
itchyny
6864aa8630
Fix manual section titles, minor typos, and improve inline codes ( #2626 )
2023-06-22 08:31:38 +09:00
Alex Jurkiewicz
dd5ce98caf
Document length for numbers and bools ( #2625 )
...
This was added in ae7a042876 but not explicitly documented.
2023-06-21 18:21:39 +09:00
itchyny
9a590427db
Improve Download page: drop versions for each package manager ( #2619 )
2023-06-20 08:23:42 +09:00
Nico Williams
f7102e9bed
Create SECURITY.md
2023-06-19 00:07:29 -05:00
Dan Church
38b42e537f
Fix double-installed doc ( #2482 )
...
The README symlink was causing the file to be installed twice in
<DOCDIR>.
2023-06-16 23:11:01 +09:00
Dan Church
076d0a2826
Use autotools standard ${docdir} ( #2468 )
...
Specified with `--docdir=<path>`, the `$(docdir)` variable is already
available, and has the same default as what it was being set to.
By specifying it here, it overrides what the `--docdir` option
specifies.
2023-06-16 23:06:34 +09:00
Dawid Ferenczy Rogožan
11d909170e
Added usage under Powershell to the manual ( #2306 )
2023-06-16 22:47:37 +09:00
calpeconsulting
c2026f5d9e
Fedora link returns 404 ( #2067 )
2023-06-16 22:03:32 +09:00
Marcin Kłopotek
0567d26923
Add Windows installation via scoop ( #2188 )
2023-06-16 21:55:29 +09:00