Releases: itchyny/gojq
Releases · itchyny/gojq
Release v0.7.0
v0.6.0
- implement arbitrary-precision integer calculation
- implement various functions (
repeat,pow10,nan,isnan,nearbyint,halt,INDEX,JOIN,IN) - implement long options (
--compact-output,--raw-output, etc.) - implement join output options (
-j,--join-output) - implement color/monochrome output options (
-C,--color-output,-M,--monochrome-output) - refactor builtin functions
v0.5.0
- implement various functions (
with_entries,from_entries,leaf_paths,contains,inside,split,stream,fromstream,truncate_stream,bsearch,path,paths,map_values,del,delpaths,getpath,gmtime,localtime,mktime,strftime,strflocaltime,strptime,todate,fromdate,now,match,test,capture,scan,splits,sub,gsub,debug,stderr) - implement assignment operator (
=) - implement modify operator (
|=) - implement update operators (
+=,-=,*=,/=,%=,//=) - implement destructuring alternative operator (
?//) - allow function declaration inside query
- implement
-fflag for loading query from file - improve error message for parsing multiple line query
v0.4.0
- improve performance significantly
- rewrite from recursive interpreter to stack machine based interpreter
- allow debugging with
make install-debugandexport GOJQ_DEBUG=1 - parse built-in functions and generate syntax trees before compilation
- optimize tail recursion
- fix behavior of optional operator
- fix scopes of arguments of recursive function call
- fix duplicate function argument names
- implement
setpathfunction
v0.3.0
- implement
reduce,foreach,label,breaksyntax - improve binding variable syntax to bind to an object or an array
- implement string interpolation
- implement object index by string (
."example") - implement various functions (
add,flatten,min,min_by,max,
max_by,sort,sort_by,group_by,unique,unique_by,tostring,
indices,index,rindex,walk,transpose,first,last,nth,
limit,all,any,isempty,error,builtins,env) - implement math functions (
sin,cos,tan,asin,acos,atan,
sinh,cosh,tanh,asinh,acosh,atanh,floor,round,
rint,ceil,trunc,fabs,sqrt,cbrt,exp,exp10,exp2,
expm1,frexp,modf,log,log10,log1p,log2,logb,
gamma,tgamma,lgamma,erf,erfc,j0,j1,y0,y1,
atan2/2,copysign/2,drem/2,fdim/2,fmax/2,fmin/2,fmod/2,
hypot/2,jn/2,ldexp/2,nextafter/2,nexttoward/2,remainder/2,
scalb/2,scalbln/2,pow/2,yn/2,fma/3) - support object construction with variables
- support indexing against strings
- fix function evaluation for recursive call
- fix error handling of
//operator - fix string representation of NaN and Inf
- implement
-Rflag for reading input as raw strings - implement
-cflag for compact output - implement
-nflag for using null as input value - implement
-rflag for outputting raw string - implement
-sflag for reading all inputs into an array
v0.2.0
- implement binding variable syntax (
... as $var) - implement
trycatchsyntax - implement alternative operator (
//) - implement various functions (
in,to_entries,startswith,endswith,ltrimstr,rtrimstr,combinations,ascii_downcase,ascii_upcase,tojson,fromjson) - support query for object indexing
- support object construction with variables
- support indexing against strings
v0.1.0
- implement binary operators (
+,-,*,/,%,==,!=,>,<,>=,<=,and,or) - implement unary operators (
+,-) - implement booleans (
false,true),null, number and string constant values - implement
emptyvalue - implement conditional syntax (
ifthenelifelseend) - implement builtin functions (
length,utf8bytelength,not,keys,has,map,select,recurse,while,until,range,tonumber,type,arrays,objects,iterables,booleans,numbers,strings,nulls,values,scalars,reverse,explode,implode,join) - support function declaration
- support iterators in object keys
- support object construction shortcut
- support query in array indices
- support negative number indexing against arrays
- support json file name arguments