]>
granicus.if.org Git - jq/log
William Langford [Mon, 19 Jun 2017 14:55:26 +0000 (10:55 -0400)]
Merge pull request #1403 from Argoday/master
Use unsorted keys in walk
Nicolas Williams [Sun, 21 May 2017 21:24:48 +0000 (16:24 -0500)]
Deal with strptime() on OS X and *BSD (fix #1415)
strptime() on OS X and *BSDs (reputedly) does not set tm_wday and
tm_yday unless corresponding %U and %j format specifiers were used.
That can be... surprising when one parsed year, month, and day anyways.
Glibc's strptime() conveniently sets tm_wday and tm_yday in those cases,
but OS X's does not, ignoring them completely.
This commit makes jq compute those where possible, though the day of
week computation may be wrong for dates before 1900-03-01 or after
2099-12-31.
Nicolas Williams [Sun, 21 May 2017 06:58:18 +0000 (01:58 -0500)]
Attempt to fix #1415
OS X (and *BSD) strptime() does not set tm_wday nor tm_yday unless
corresponding format options are used. That means we must call timegm()
to set them.
Nicolas Williams [Sun, 21 May 2017 06:57:55 +0000 (01:57 -0500)]
Add private my_timegm()
Nicolas Williams [Sun, 21 May 2017 06:53:00 +0000 (01:53 -0500)]
Fix HAVE_TM_TM_GMT_OFF usage
Nicolas Williams [Sun, 21 May 2017 06:22:39 +0000 (01:22 -0500)]
Use AC_CHECK_MATH_FUNC() for all math functions
Nicolas Williams [Sat, 20 May 2017 20:47:41 +0000 (15:47 -0500)]
Fix jv_load_file() assertion (fix #1410)
Daniel Lange [Wed, 3 May 2017 18:37:21 +0000 (20:37 +0200)]
Improved git build instructions.
Jonathan Word [Wed, 3 May 2017 19:49:21 +0000 (15:49 -0400)]
Use unsorted keys in walk
Preserve key sorting order when executing in walk, if sorted keys is desired `--sort-keys` should be used to explicitly obtain sorted keys.
Nico Williams [Sat, 29 Apr 2017 18:00:52 +0000 (13:00 -0500)]
Add JQ_COLORS env var for color config (fix #1252)
Nicolas Williams [Thu, 27 Apr 2017 01:55:43 +0000 (20:55 -0500)]
Fix build
Nicolas Williams [Fri, 21 Apr 2017 23:40:39 +0000 (18:40 -0500)]
Always use jv_mem_*alloc()
pkoppstein [Sun, 26 Feb 2017 07:35:49 +0000 (02:35 -0500)]
def isempty(g) # Testing 'isempty(empty)' at line number 1364
William Langford [Sun, 2 Apr 2017 18:58:59 +0000 (14:58 -0400)]
Update oniguruma to fix #1370
William Langford [Fri, 31 Mar 2017 22:48:28 +0000 (18:48 -0400)]
Don't require java to build gh-pages
William Langford [Fri, 31 Mar 2017 22:48:05 +0000 (18:48 -0400)]
Add collect example with pipeline
William Langford [Fri, 31 Mar 2017 02:23:47 +0000 (22:23 -0400)]
Add missing close-backtick in docs
Nicolas Williams [Thu, 30 Mar 2017 16:46:03 +0000 (11:46 -0500)]
Also fix `jn/2` and `yn/2`
Nicolas Williams [Wed, 29 Mar 2017 05:07:42 +0000 (00:07 -0500)]
Fix frexp, modf, lgamma_r (fix #1374)
Nicolas Williams [Tue, 21 Feb 2017 01:24:22 +0000 (19:24 -0600)]
Allow . as {$a:$b} destructuring
Nicolas Williams [Tue, 21 Feb 2017 01:15:23 +0000 (19:15 -0600)]
Add flex/bison outputs
Nicolas Williams [Tue, 21 Feb 2017 01:15:05 +0000 (19:15 -0600)]
Add more destructuring tests
William Langford [Mon, 20 Feb 2017 05:49:28 +0000 (00:49 -0500)]
Add --debug-trace=all for detailed debug output
When tracing execution, print the whole stack, not just the items used by the
current opcode
William Langford [Fri, 17 Feb 2017 05:40:26 +0000 (00:40 -0500)]
Fix a tripped assertion when generating reduces
A noop body, while useless, should still compile successfully
William Langford [Fri, 17 Feb 2017 05:35:26 +0000 (00:35 -0500)]
Add alternation destructuring operator `?//`
This is a first pass to show the implementation.
It needs tests and evaluation, but doesn't break any existing tests.
NOT READY FOR MERGING
Nicolas Williams [Wed, 15 Mar 2017 06:07:37 +0000 (01:07 -0500)]
Conditional exprs are not path exprs (fix #1368)
The conditional expression in if-then-elif-else-end cannot contribute to
path expressions because it doesn't change the input to any of the then/
elif/else expressions. These must be generated via gen_subexp().
See also #1366.
Nicolas Williams [Fri, 3 Mar 2017 18:04:46 +0000 (12:04 -0600)]
Make and build dist in travis-CI (#1356)
Nicolas Williams [Sun, 5 Mar 2017 04:57:14 +0000 (22:57 -0600)]
Make configure.ac work for shallow clones
Nicolas Williams [Fri, 3 Mar 2017 20:28:58 +0000 (14:28 -0600)]
Make scripts/version work in shallow clones
Shallow clones don't have tags. Use git describe --always --dirty in
such cases.
XXX Add branch name.
Nicolas Williams [Thu, 2 Mar 2017 05:01:08 +0000 (23:01 -0600)]
Fix make dist
Nicolas Williams [Thu, 2 Mar 2017 04:45:02 +0000 (22:45 -0600)]
Fix off-by-one bug in #1108 fix
Nicolas Williams [Wed, 1 Mar 2017 23:35:08 +0000 (17:35 -0600)]
Array slice overflows (fix #1108)
Nicolas Williams [Wed, 1 Mar 2017 03:39:54 +0000 (21:39 -0600)]
getpath/1 should be a path expression (fix #1358)
It needs to be possible to do something like
getpath($paths[]) += 1
meaning: increment all the paths in . that are listed in $paths[].
In order to do this getpath() needs to update the jq->path and
jq->value_at_path as necessary.
William Langford [Mon, 27 Feb 2017 00:50:10 +0000 (19:50 -0500)]
Fix name of builtins in the builtins/0 output
Nicolas Williams [Mon, 27 Feb 2017 00:22:30 +0000 (18:22 -0600)]
Fix warning about environ
Nicolas Williams [Mon, 27 Feb 2017 00:22:23 +0000 (18:22 -0600)]
Fix --without-oniguruma build
Nicolas Williams [Mon, 27 Feb 2017 00:06:35 +0000 (18:06 -0600)]
Fix environ Win32 build problem
Nicolas Williams [Thu, 23 Feb 2017 05:01:56 +0000 (23:01 -0600)]
Add `halt`, `halt_error` builtins (fix #386)
Nicolas Williams [Thu, 23 Feb 2017 05:01:39 +0000 (23:01 -0600)]
Document `stderr`
Nicolas Williams [Sun, 26 Feb 2017 22:32:43 +0000 (16:32 -0600)]
Fix memory leak
Nicolas Williams [Sun, 26 Feb 2017 22:13:22 +0000 (16:13 -0600)]
Fix Appveyor for non-master branches
Nicolas Williams [Sun, 26 Feb 2017 22:12:57 +0000 (16:12 -0600)]
fixup
Nicolas Williams [Sun, 26 Feb 2017 06:28:12 +0000 (00:28 -0600)]
Add $ENV builtin variable to access environment
Nicolas Williams [Sun, 26 Feb 2017 06:25:09 +0000 (00:25 -0600)]
Fix error message for undefined vars
Nicolas Williams [Sun, 26 Feb 2017 03:49:38 +0000 (21:49 -0600)]
Preserve precious vars in configure.ac (fix #795)
Nicolas Williams [Sun, 26 Feb 2017 01:21:06 +0000 (19:21 -0600)]
Document $ARGS and friends
Nicolas Williams [Mon, 20 Feb 2017 00:11:18 +0000 (18:11 -0600)]
Add $ARGS, --args and --jsonargs (fix #1345)
Nicolas Williams [Mon, 20 Feb 2017 00:08:03 +0000 (18:08 -0600)]
jq_compile_args(): allow object args to be object
Nicolas Williams [Mon, 20 Feb 2017 00:05:38 +0000 (18:05 -0600)]
Add jv_object_has()
Nicolas Williams [Mon, 20 Feb 2017 00:23:36 +0000 (18:23 -0600)]
Make test/shtest test of constant folding robust
Rather than testing that a constant expression produces so many
instructions, test that a variety of of such expressions produce the
same number of instructions. This will make future changes in the
compiler less likely to break this test.
Nicolas Williams [Sat, 25 Feb 2017 20:30:14 +0000 (14:30 -0600)]
Improve Appveyor build
Among other things, make TESTS=... breaks when using modules/oniguruma,
so set SUBDIRS= then.
Nicolas Williams [Sun, 26 Feb 2017 00:22:24 +0000 (18:22 -0600)]
Windows: configure fails to detect missing math
For some reason AC_CHECK_MATH_FUNC() on Windows is not detecting a
handful of math functions as not being supported. This commit is a bit
of a hack.
Nicolas Williams [Sat, 25 Feb 2017 20:24:43 +0000 (14:24 -0600)]
Make comment consistent with code
Yasuhiro Matsumoto [Fri, 1 Apr 2016 05:53:38 +0000 (14:53 +0900)]
Don't call SetConsoleOutputCP
Should use wide-string function instead of SetConsoleOutputCP.
Fixes #1121
Yasuhiro Matsumoto [Fri, 1 Apr 2016 05:53:12 +0000 (14:53 +0900)]
Quiet a compiler warning
Nicolas Williams [Sat, 25 Feb 2017 20:15:18 +0000 (14:15 -0600)]
Windows: Also use -lshlwapi for jq(1)
Nicolas Williams [Sat, 25 Feb 2017 20:02:03 +0000 (14:02 -0600)]
When using builtin Oniguruma, set flags correctly
This should fix the Travis-CI build.
Nicolas Williams [Fri, 24 Feb 2017 05:39:24 +0000 (23:39 -0600)]
Document `localtime` and `strflocaltime`
Nicolas Williams [Fri, 24 Feb 2017 04:26:53 +0000 (22:26 -0600)]
Add `localtime` and `strflocaltime` (fix #1349)
Nicolas Williams [Fri, 24 Feb 2017 04:17:54 +0000 (22:17 -0600)]
Improve manual section on assignment forms
Nicolas Williams [Fri, 24 Feb 2017 04:01:43 +0000 (22:01 -0600)]
Revert
e7caf68 for Dockerfile
Nicolas Williams [Thu, 23 Feb 2017 06:33:08 +0000 (00:33 -0600)]
Attempt to use builtin Oniguruma for CIs
Nicolas Williams [Thu, 23 Feb 2017 06:30:13 +0000 (00:30 -0600)]
Allow ./configure --with-oniguruma=builtin
This allows one to force the use of jq's builtin copy of Oniguruma
(builtin as a git submodule).
We still need to fix make dist to include that copy of Oniguruma.
Nicolas Williams [Wed, 22 Feb 2017 00:11:35 +0000 (18:11 -0600)]
Allow var bindings in path expressions (#1347)
The expression in a variable binding is not and must not be seen as
being part of a path expression in which the variable binding appears.
Erik Brinkman [Fri, 27 Jan 2017 04:29:00 +0000 (23:29 -0500)]
Add local oniguruma submodule
Configure should still allow use of prebuilt onigurumas (whether
system-installed or in a special prefix). If these are not found, and
configure was not called with `--without-oniguruma`, then use the vendored
oniguruma module. If configure was called with `--without-oniguruma`, then we
do not build regex functionality into jq.
Nicolas Williams [Wed, 15 Feb 2017 05:37:35 +0000 (23:37 -0600)]
Improve manual
William Langford [Sun, 5 Feb 2017 06:28:15 +0000 (01:28 -0500)]
Add `builtins` builtin
William Langford [Sun, 5 Feb 2017 05:47:19 +0000 (00:47 -0500)]
Fix memory leak in libm cfunctions
William Langford [Sun, 12 Feb 2017 21:25:44 +0000 (16:25 -0500)]
Merge pull request #1089 from l8nite/base64_decode
Shaun Guth [Sun, 24 Jan 2016 23:30:28 +0000 (23:30 +0000)]
Add @base64d for decoding base64 #47
J Phani Mahesh [Tue, 7 Feb 2017 08:44:29 +0000 (14:14 +0530)]
fix truncate_stream to match docs
Nicolas Williams [Sat, 4 Feb 2017 06:11:19 +0000 (00:11 -0600)]
Add more missing math functions
Nicolas Williams [Sat, 4 Feb 2017 06:11:10 +0000 (00:11 -0600)]
Fix handling of unsupported math functions
Nicolas Williams [Tue, 31 Jan 2017 22:13:32 +0000 (16:13 -0600)]
Promote wiki more in README
Nicolas Williams [Sat, 28 Jan 2017 18:30:57 +0000 (12:30 -0600)]
Improve docs somewhat, inspired by #1326
Nicolas Williams [Fri, 27 Jan 2017 23:46:00 +0000 (17:46 -0600)]
Make |= delete LHS when RHS is empty (Fix #1314)
Now that #1313 is fixed, |= no longer outputs null when the RHS update
expression outputs empty.
When a user wants to keep the current value of the LHS they would have
the RHS update expression output `.`, so having `empty` achieve the same
thing would be redundant. The obvious thing to do is to delete the LHS
when the RHS update outputs `empty` (i.e., doesn't output any values).
It's reasonable to think that existing programs won't be broken by this
change, because reduce and |= not handling empty well is clearly a bug.
(Though it's possible that some programs were using empty to quickly
terminate reduce or |=, it's not likely. They should use label/break
instead.)
Prior to this change |= would use the _last_ value output by the RHS
update expression. With this change |= will use the _first_ value
instead. This change _is_ a minor backwards-incompatible change. It
may or may not be acceptable; we'll see. It is a useful change in that
it makes |= faster when the update expression produces multiple values.
Nicolas Williams [Fri, 27 Jan 2017 21:51:06 +0000 (15:51 -0600)]
recurse (i.e., ..) needs to find leaf nulls
Nicolas Williams [Fri, 27 Jan 2017 16:06:04 +0000 (10:06 -0600)]
Add SQL-style operators (#1322)
Nicolas Williams [Fri, 27 Jan 2017 15:48:13 +0000 (09:48 -0600)]
Make first(g) more efficient: extract only 1 value
first(g) was extracting two values, which, if g is slow, made first(g)
slow. And if the second extraction were to throw an error, then
first(g) would throw that error, which is clearly not the right thing to
do. Besides that, first(g) was allocating garbage, which it no longer
does.
Nicolas Williams [Mon, 23 Jan 2017 23:10:51 +0000 (17:10 -0600)]
reduce: handle empty updates (fix #1313)
Attila Fülöp [Wed, 10 Aug 2016 20:27:21 +0000 (22:27 +0200)]
Solaris needs XPG6 for c99
William Langford [Sat, 28 Jan 2017 02:45:15 +0000 (21:45 -0500)]
Merge pull request #1317 from wtlangford/dont-split-utf8-sequences
Handle cut-off UTF-8 sequences when reading files
William Langford [Wed, 25 Jan 2017 04:05:47 +0000 (23:05 -0500)]
Handle cut-off UTF-8 sequences when reading files
Read additional bytes from the file to complete the UTF-8 sequence so the bytes
in it don't get converted to U+FFFD replacement characters.
W-Mark Kubacki [Fri, 19 Aug 2016 18:10:21 +0000 (20:10 +0200)]
Parse no deeper than MAX_PARSING_DEPTH
while true; do printf '{"deeper": '; done | jq .
W-Mark Kubacki [Fri, 19 Aug 2016 17:50:39 +0000 (19:50 +0200)]
Skip printing what's below a MAX_PRINT_DEPTH
This addresses #1136, and mitigates a stack exhaustion when printing
a very deeply nested term.
Jakub Wilk [Thu, 26 Jan 2017 18:42:59 +0000 (19:42 +0100)]
gen_utf8_tables: remove unused variable
Jan Schulz [Thu, 14 Apr 2016 16:22:16 +0000 (18:22 +0200)]
Revert "Disable appveyor build for now"
This reverts commit
0b8218515eabf1a967eba0dbcc7a0e5ae031a509 .
There is a new oniguruma package which previously trashed the build.
Richard Groves [Thu, 7 Jul 2016 09:05:42 +0000 (10:05 +0100)]
Typo fixed
simply -> simple
Janne Cederberg [Sun, 10 Apr 2016 05:34:44 +0000 (08:34 +0300)]
Documentation clarification suggestions
James Pearson Hughes [Thu, 14 Apr 2016 23:56:21 +0000 (16:56 -0700)]
Update download instructions for Arch
jq has been in the community repo for [just over a year now][0].
[0]: https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/jq&id=
8d5e06065bc92bf56ea651970c9bda07fb545554
Tim McCormack [Fri, 4 Nov 2016 20:21:39 +0000 (16:21 -0400)]
Typo: s/more/mode/ in `--seq`
Clément MATHIEU [Tue, 3 Jan 2017 21:19:58 +0000 (22:19 +0100)]
Fix input_(line_number|filename) leak memory
Jay Satiro [Sat, 22 Oct 2016 20:00:44 +0000 (16:00 -0400)]
Fix cross-compile tmp dir removal
- cd out of the tmp dir before attempting to remove it.
Nicolas Williams [Mon, 21 Mar 2016 22:43:01 +0000 (17:43 -0500)]
Disable appveyor build for now
David Tolnay [Wed, 24 Feb 2016 08:39:56 +0000 (00:39 -0800)]
Remove David from maintainers
Nicolas Williams [Mon, 18 Jan 2016 20:58:58 +0000 (14:58 -0600)]
Travis-CI build for OSX (fix #1083)
Nicolas Williams [Mon, 18 Jan 2016 18:17:58 +0000 (12:17 -0600)]
Always test sort_by/group_by post-#1082
Stephen Dolan [Mon, 18 Jan 2016 10:56:54 +0000 (10:56 +0000)]
Make jv_sort stable regardless of qsort details.
Stephen Dolan [Mon, 18 Jan 2016 10:15:43 +0000 (10:15 +0000)]
Add AppVeyor badge to README.md
Thanks @JanSchulz, @nicowilliams!
Nicolas Williams [Sun, 17 Jan 2016 18:09:43 +0000 (12:09 -0600)]
Add --enable-ubsan (undefined behavior sanitizer)