Brahm Lower
c350566001
Adds "toboolean" builtin function for converting strings to booleans ( #2098 )
2025-05-18 16:31:10 +09:00
itchyny
b088e83a82
Refactor splits/2 using foreach syntax (remove private filter _nwise) ( #3260 )
...
This commit refactors `splits/2` implementation using `foreach` syntax
and reduces intermediate arrays. This refactoring removes an unnecessary
private (and undocumented) filter `_nwise` and closes #3148 .
2025-05-18 08:27:44 +09:00
Thomas Sibley
931a362f8b
docs: Use a better input example in the streaming section ( #3322 )
...
The introduction says all the usage examples (e.g. of truncate_stream,
etc) in the section use [0,[1]] as input, but they actually use [1,[2]].
["a",["b"]] seems better than [1,[2]] as the string values won't be
confusable with the indexes in <path>.
2025-05-14 20:46:31 +09:00
dependabot[bot]
9f6bcdc321
build(deps): bump lxml from 5.3.1 to 5.4.0 in /docs ( #3311 )
...
Bumps [lxml](https://github.com/lxml/lxml ) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/lxml/lxml/releases )
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt )
- [Commits](https://github.com/lxml/lxml/compare/lxml-5.3.1...lxml-5.4.0 )
---
updated-dependencies:
- dependency-name: lxml
dependency-version: 5.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 11:01:19 +00:00
dependabot[bot]
622e2d1d7f
build(deps): bump markdown from 3.7 to 3.8 in /docs ( #3312 )
...
Bumps [markdown](https://github.com/Python-Markdown/markdown ) from 3.7 to 3.8.
- [Release notes](https://github.com/Python-Markdown/markdown/releases )
- [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md )
- [Commits](https://github.com/Python-Markdown/markdown/compare/3.7...3.8 )
---
updated-dependencies:
- dependency-name: markdown
dependency-version: '3.8'
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 11:01:11 +00:00
dependabot[bot]
947fcbbb1f
build(deps): bump jsonschema from 4.18.4 to 4.23.0 in /docs ( #3302 )
...
Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema ) from 4.18.4 to 4.23.0.
- [Release notes](https://github.com/python-jsonschema/jsonschema/releases )
- [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.18.4...v4.23.0 )
---
updated-dependencies:
- dependency-name: jsonschema
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-28 09:57:51 +09:00
dependabot[bot]
1e22960cf5
build(deps): bump lxml from 4.9.3 to 5.3.1 in /docs ( #3301 )
...
Bumps [lxml](https://github.com/lxml/lxml ) from 4.9.3 to 5.3.1.
- [Release notes](https://github.com/lxml/lxml/releases )
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt )
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.3...lxml-5.3.1 )
---
updated-dependencies:
- dependency-name: lxml
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-28 09:56:51 +09:00
dependabot[bot]
0b2bda8108
build(deps): bump markdown from 3.4.3 to 3.7 in /docs ( #3300 )
...
Bumps [markdown](https://github.com/Python-Markdown/markdown ) from 3.4.3 to 3.7.
- [Release notes](https://github.com/Python-Markdown/markdown/releases )
- [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md )
- [Commits](https://github.com/Python-Markdown/markdown/compare/3.4.3...3.7 )
---
updated-dependencies:
- dependency-name: markdown
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-28 09:55:39 +09:00
dependabot[bot]
313b0e3735
build(deps): bump jinja2 from 3.1.5 to 3.1.6 in /docs ( #3298 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.5 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.5...3.1.6 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-27 21:33:55 +09:00
Owen Ou
8ba03f788f
Replace jqplay.org with play.jqlang.org ( #3265 )
...
As discussed in https://github.com/jqlang/jq/discussions/3244 , we are
moving jqplay to the jqlang GitHub organization. This updates all
references from jqplay.org to play.jqlang.org.
2025-02-18 08:22:05 +09:00
itchyny
fa6a2ff688
website: remove unused root path on building website ( #3248 )
...
We no longer use the `--root` option of `build_website.py` since we have
moved to jqlang.org (from jqlang.github.io/jq where the root was `/jq`).
We don't need the option on local development either since `http.server`
has the `-d` option to specify the directory to serve from.
2025-02-06 22:42:27 +09:00
Mattias Wadman
e33578a53e
Add opengraph meta tags ( #3247 )
...
Makes the site preview a bit nicer when sharing
2025-02-06 22:14:29 +09:00
itchyny
6ce3bdf382
fix: preserve numerical precision on unary negation ( #3242 )
2025-02-06 07:50:21 +09:00
itchyny
0d1e371e63
website: switch to custom domain jqlang.org ( #3243 )
2025-02-01 11:54:32 +09:00
itchyny
dea5e61cde
docs: fix example links to jqplay.org ( #3241 )
2025-01-28 22:15:19 +09:00
itchyny
ce54621904
docs: mention the behavior of scan using regex with capturing groups ( #3240 )
2025-01-28 11:41:17 +09:00
Han Jiang
da28628edd
Fix redundant subexpression in Generators and iterators example in doc ( #3239 )
2025-01-27 19:45:27 +09:00
Michael Färber
18bd8374c1
Escape some code parts in manual. ( #3184 )
2025-01-25 21:55:06 +09:00
dependabot[bot]
588ff1874c
build(deps): bump jinja2 from 3.1.4 to 3.1.5 in /docs ( #3226 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-29 21:54:10 +09:00
itchyny
a7b22539a4
fix: make last(empty) yield no output values ( #3179 )
2024-11-13 20:35:50 +09:00
Thalia Archibald
32a304b912
Clarify -f argument parsing ( #3199 )
2024-11-09 15:48:24 +01:00
Thalia Archibald
eb9bdca296
Remove outdated FIXME
...
This comment predates the addition of $ARGS in jq 1.6, so there was no
way to access named arguments with an invalid identifier. Rather than
forbid such names, update the manual to clarify.
2024-11-08 19:07:55 +01:00
Thalia Archibald
0558e77e8c
Add --library-path long option for -L
...
-L is the only option without a long form.
2024-11-08 19:07:55 +01:00
itchyny
1bebd23aad
add skip/2 as the counterpart to limit/2 ( #3181 )
...
I also changed the behavior of limit/2 with negative count to emit an error, like nth/2 does.
Also, I redefined nth/2 using skip/2 to minimize the impact of growth of builtin filters.
2024-10-06 08:25:38 +09:00
Nathan Baulch
860af44fee
Fix typos ( #3173 )
2024-09-13 18:30:49 +09:00
Chris LaRose
37f4cd2648
Fix docs for strptime(fmt) ( #3164 )
2024-08-27 10:59:43 +09:00
Kirk McKelvey
6322b99252
fix: find and source ~/.jq file on windows ( fixes #3104 ) ( #3114 )
2024-08-24 08:44:08 +09:00
fletcher gornick
0e0cdd552e
feat: uri decode function ( #3161 )
2024-08-22 08:07:24 +09:00
myaaaaaaaaa
0b5ae30f19
Implement add/1 ( #3144 )
2024-08-20 21:02:24 +09:00
Mattias Wadman
c1d885b024
website: Make latest release (1.7) be default manual ( #3130 )
...
Fixes issue with confusion about features that has not been
released yet.
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test and man page generation to use dev/manual.yml
Related to #3078 #3127
2024-07-12 17:43:02 +02:00
dependabot[bot]
e2ffb5360a
build(deps): bump zipp from 3.16.2 to 3.19.1 in /docs
...
Bumps [zipp](https://github.com/jaraco/zipp ) from 3.16.2 to 3.19.1.
- [Release notes](https://github.com/jaraco/zipp/releases )
- [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst )
- [Commits](https://github.com/jaraco/zipp/compare/v3.16.2...v3.19.1 )
---
updated-dependencies:
- dependency-name: zipp
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 09:18:50 +02:00
Nicolas Williams
6d02d53f51
Make tests pass when --disable-decnum
2024-05-15 12:48:00 -05:00
dependabot[bot]
c1276169d6
build(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docs
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-07 01:56:22 +02:00
Mattias Wadman
be437ec049
Add trim/0, ltrim/0 and rtrim/0 that trims leading and trailing whitespace ( #3056 )
2024-03-20 11:04:17 +01:00
itchyny
81f4f883ac
Remove non-standard pow10 filter in favor of exp10 ( #3059 )
...
The pow10 function was a glibc extension removed in 2.27. Use exp10 filter instead.
2024-03-20 18:23:08 +09:00
Bhargava Mummadireddy
913b26469f
docs: Update chocolatey install command in default.yml ( #3042 )
2024-02-13 16:50:58 +01:00
J. B. Rainsberger and Emanuele Torre
92d35378ff
Fix typo in documentation for map_values ( #3035 )
...
* Fix typo in documentation for map_values
"map_value(f)" -> "map_values(f)"
* map_value => map_values also in the devolpment manual
---------
Co-authored-by: Emanuele Torre <torreemanuele6@gmail.com >
2024-02-08 13:52:50 +00:00
Emanuele Torre
13e02ba348
docs: rename example jq utility to total
...
Apparently sum(1) is a BSD and GNU coreutil used to compute the
"16-bit BSD checksum" of a file.
2024-01-30 12:23:33 -06:00
Jonathan Chan Kwan Yin
1daabc67ed
typo contruct->construct ( #3017 )
2024-01-25 22:21:41 +01:00
Mattias Wadman
c95f6ce700
Fix "in the a search" typo ( #3015 )
...
Fixes #3014
2024-01-24 23:34:41 +01:00
Emanuele Torre
71e7bcdfc1
Revert "lexer: temporarily revert #\ patch; keep CR in comment bug fix"
...
This reverts commit 5d95791a67 .
2024-01-16 16:08:03 -06:00
dependabot[bot]
f51e841fbc
Bump jinja2 from 3.1.2 to 3.1.3 in /docs ( #3009 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-13 11:24:16 +09:00
Mattias Wadman
701c880805
Add jq 1.7.1 news item ( #3004 )
2023-12-26 15:22:39 +09:00
wllm-rbnt
0b922725b1
Fix typo ( #3002 )
2023-12-24 11:22:20 +01:00
Mattias Wadman
e011f003b6
Add jq 1.7.1 to webpage ( #3003 )
...
Make it the default download
2023-12-24 11:17:21 +01:00
Emanuele Torre
5d95791a67
lexer: temporarily revert #\ patch; keep CR in comment bug fix
...
This commit temporarily reverts the commit that allows #\ "tcl-style"
comments everywhere and documents them, for the 1.7.1 patch release
cca1f7d18f .
\r is removed from the list of characters not allowed in a comment to
preserve that bugfix.
2023-12-13 16:38:18 +01:00
Jesper Rønn-Jensen
2ccab044fe
chore: Improve readability (for Alternative operator '//')
...
The description of the Alternative operator `//` was hard for me to grasp in its wording.
I suggest dividing the looong sentence into two parts. Since it is actually an alternative formulation, the sentence can be divided into the first formulation, and the alternative formulation.
2023-12-11 11:38:54 +00:00
Emanuele Torre
1617091033
website: use https URLs instead of http URLs in download page
...
Also add markdown formatting for decNumber URL so it gets rendered as a
link in the html page.
2023-11-29 09:35:36 +01:00
Emanuele Torre
cca1f7d18f
Comment bug fixes, and fully support Tcl-style multiline comments
...
* bugfix: comments were incorrectly being terminated by CR; for example
jq -n $'1 #foo\r'
fails to compile because the CR character terminates the comment, and
CR is not a valid character in jq syntax.
* improvement: comments fully support Tcl-style line continuation.
Previously this was only "supported" in `-f' scripts, whose first line
starts with "#!", and second line starts with # and ends with \, only
for the comment on the second line, only for one extra line.
* man: document comment syntax, which was previously undocumented.
* tests: add regression tests for the bugfix, and some tests for line
continuation in comments.
2023-11-03 15:52:02 -05:00
Emanuele Torre
9de0e26ce6
Generate links in man page
...
Some [foo](bar) links were added to manual.yml without updating
build_manpage.py to make it generate roff for "a" tags.
Fixes #2930
2023-10-12 15:32:23 -05:00