1
1
mirror of https://github.com/wader/fq.git synced 2024-11-25 05:55:43 +03:00
Commit Graph

184 Commits

Author SHA1 Message Date
Mattias Wadman
b24ed16181 mod: Update golang.org/x/exp and github.com/gomarkdown/markdown 2023-11-25 18:28:55 +01:00
bump
527aad6c74 Update gomod-gopacket to 1.2.0 from 1.1.1
Release notes https://github.com/gopacket/gopacket/releases/tag/v1.2.0
2023-11-25 09:21:39 +00:00
bump
14fe728cc0 Update gomod-golang-x-net to 0.18.0 from 0.17.0
Tags https://github.com/golang/net/tags
2023-11-09 16:03:45 +00:00
Mattias Wadman
dc376f3491 gojq: Update rebased fq fork
From upstream:
    implement pick function
    fix comment continuation with newline in dos format
    implement comment continuation with backslash
2023-11-05 18:04:09 +01:00
bump
1011f19c36 Update gomod-golang/text to 0.14.0 from 0.13.0
Source diff 0.13.0..0.14.0 https://github.com/golang/text/compare/v0.13.0..v0.14.0
2023-11-04 16:03:44 +00:00
bump
5381f38108 Update gomod-golang-x-net to 0.17.0 from 0.16.0
Tags https://github.com/golang/net/tags
2023-10-11 16:03:58 +00:00
bump
f108194de4 Update gomod-golang-x-net to 0.16.0 from 0.15.0
Tags https://github.com/golang/net/tags
2023-10-06 16:03:58 +00:00
bump
906bc3bb3e Update gomod-golang-x-crypto to 0.14.0 from 0.13.0
Tags https://github.com/golang/crypto/tags
2023-10-05 16:04:12 +00:00
Mattias Wadman
c4e8644884 mod: Update golang.org/x/exp and github.com/gomarkdown/markdown
Fixes https://nvd.nist.gov/vuln/detail/CVE-2023-42821
2023-09-24 20:41:38 +02:00
bump
07069a5183 Update gomod-golang-x-net to 0.15.0 from 0.14.0
Tags https://github.com/golang/net/tags
2023-09-06 16:03:59 +00:00
bump
ebb71e2412 Update gomod-golang-x-crypto to 0.13.0 from 0.12.0
Tags https://github.com/golang/crypto/tags
2023-09-05 16:03:45 +00:00
bump
2f8ebf1144 Update gomod-golang/text to 0.13.0 from 0.12.0
Source diff 0.12.0..0.13.0 https://github.com/golang/text/compare/v0.12.0..v0.13.0
2023-09-02 16:03:56 +00:00
Mattias Wadman
0d0147643a gomod: Update x/exp and gomarkdown
Add cmp package from go 1.21 to have cmp.Compare to make sort easier
2023-08-09 14:36:51 +02:00
Mattias Wadman
fa3dba104b gojq: Update fq fork
Changes from upstream:
8fcc90e implement abs function
cbbd4bb fix default module paths assuming gojq is located in a bin directory
45d4c5b change behavior of walk with multiple outputs
846cf99 fix stderr to output strings in raw format
c352d50 change zero division to produce an error when dividend is zero
d579009 fix empty string repeating with the maximum integer
d4de65c fix string multiplication by zero to emit empty string
04b48fd remove deprecated leaf_paths function
c882861 bump up version to 0.12.13
c310d5d update CHANGELOG.md for v0.12.13
8fb5cc3 update dependencies
fb00b66 improve error message of indices, setpath, delpaths functions
2023-08-08 12:22:29 +02:00
bump
a46ee6597f Update gomod-golang-x-net to 0.14.0 from 0.13.0
Tags https://github.com/golang/net/tags
2023-08-05 16:04:52 +00:00
bump
79432e71da Update gomod-golang/text to 0.12.0 from 0.11.0
Source diff 0.11.0..0.12.0 https://github.com/golang/text/compare/v0.11.0..v0.12.0
2023-08-04 16:04:02 +00:00
bump
c8aae6660b Update gomod-golang-x-net to 0.13.0 from 0.12.0
Tags https://github.com/golang/net/tags
2023-08-02 16:04:11 +00:00
Mattias Wadman
62870e3ed8
Merge pull request #696 from wader/bump-gomod-BurntSushi/toml-1.3.2
Update gomod-BurntSushi/toml to 1.3.2 from 1.2.1
2023-07-06 18:51:24 +02:00
bump
a079b73a4e Update gomod-gopacket to 1.1.1 from 1.1.0
Release notes https://github.com/gopacket/gopacket/releases/tag/v1.1.1
2023-07-06 16:04:20 +00:00
bump
660ca032a9 Update gomod-golang-x-net to 0.12.0 from 0.11.0
Tags https://github.com/golang/net/tags
2023-07-05 16:04:19 +00:00
bump
8e75dc9bc8 Update gomod-BurntSushi/toml to 1.3.2 from 1.2.1
Source diff 1.2.1..1.3.2 https://github.com/BurntSushi/toml/compare/v1.2.1..v1.3.2
2023-07-05 17:36:12 +02:00
bump
0eb6557d00 Update gomod-golang/text to 0.11.0 from 0.10.0
Source diff 0.10.0..0.11.0 https://github.com/golang/text/compare/v0.10.0..v0.11.0
2023-07-04 16:04:12 +00:00
bump
939d98c27c Update gomod-golang-x-net to 0.11.0 from 0.10.0
Tags https://github.com/golang/net/tags
2023-06-13 16:04:11 +00:00
Mattias Wadman
38cb82929a gojq: Update rebased fq fork
From upstream:
e940c43 update GitHub action dependencies
2d97ddb update jq links to the new jqlang organization
2a6cb00 improve error message of various functions
5e26bef add a note on differences of supported functions missing in jq
96c4843 fix functions returning arrays not to emit nil slices
4a681c8 improve .dockerignore
850177b Merge pull request #213 from movableink/uri-decode
dbba5e7 add urid to decode URI values, mirroring uri
2023-05-29 17:47:01 +02:00
bump
c405afd4d4 Update gomod-golang-x-crypto to 0.9.0 from 0.8.0
Tags https://github.com/golang/crypto/tags
2023-05-09 16:03:59 +00:00
bump
6e5df724e6 Update gomod-golang-x-crypto to 0.8.0 from 0.7.0
Tags https://github.com/golang/crypto/tags
2023-04-07 16:04:00 +00:00
bump
f13cc979ea Update gomod-golang/text to 0.9.0 from 0.8.0
Source diff 0.8.0..0.9.0 https://github.com/golang/text/compare/v0.8.0..v0.9.0
2023-04-06 16:04:07 +00:00
bump
e2af57ee43 Update gomod-gopacket to 1.1.0 from 1.0.0
Release notes https://github.com/gopacket/gopacket/releases/tag/v1.1.0
2023-03-28 16:04:46 +00:00
bump
19140a6f97 Update gomod-creasty-defaults to 1.7.0 from 1.6.0
Source diff 1.6.0..1.7.0 https://github.com/creasty/defaults/compare/v1.6.0..v1.7.0
2023-03-13 16:03:52 +00:00
Mattias Wadman
3cc8383735 gojq: Update fq fork
Mostly interface{} -> any and fixes from upstream
2023-03-08 15:59:35 +01:00
Mattias Wadman
f50bd6eed0 readline: Update fq fork
Some bug and redraw fixes from @tpodowd

Windows native ANSI support from @slingamn
2023-03-07 18:32:02 +01:00
bump
c03d3ccd75 Update gomod-golang-x-crypto to 0.7.0 from 0.6.0
Tags https://github.com/golang/crypto/tags
2023-03-05 16:04:06 +00:00
bump
e7168b994b Update gomod-golang/text to 0.8.0 from 0.7.0
Source diff 0.7.0..0.8.0 https://github.com/golang/text/compare/v0.7.0..v0.8.0
2023-03-04 16:03:58 +00:00
bump
dd8ab79927 Update gomod-golang-x-net to 0.7.0 from 0.6.0
Tags https://github.com/golang/net/tags
2023-02-15 10:35:04 +00:00
bump
b1d9306b18 Update gomod-golang-x-crypto to 0.6.0 from 0.5.0
Tags https://github.com/golang/crypto/tags
2023-02-09 16:03:59 +00:00
Mattias Wadman
7855b359eb gomod: Update non-bump tracked mods and add bump config 2023-01-31 17:54:22 +01:00
Mattias Wadman
0aa6e3e285 gojq: Update rebased fq fork
Upstream:
avoid nil panic
fix crash on assignment operators with multiple values
2023-01-31 17:40:06 +01:00
Mattias Wadman
55ef7a4b64 readline: Update fq fork to fix draw issue when using del key
Turrned out reading flag was no reset on del causing writes to be ignored
2023-01-29 14:57:58 +01:00
bump
e8ecbf950a Update gomod-golang/text to 0.6.0 from 0.5.0
Source diff 0.5.0..0.6.0 https://github.com/golang/text/compare/v0.5.0..v0.6.0
2023-01-04 16:04:37 +00:00
Mattias Wadman
fb16977391
Merge pull request #539 from wader/update-mods
mod: Update modules not tracked with bump
2022-12-21 19:51:45 +01:00
Mattias Wadman
2f37cb5561 mod: Update modules not tracked with bump 2022-12-21 19:41:04 +01:00
Mattias Wadman
164e527b31 gojq: Update rebased fq fork 2022-12-21 19:38:20 +01:00
Mattias Wadman
6c86945125 gojq: Update rebased fq fork
Fix issue with JQValue:s in assig/update paths.

Rebase on upstream master, commits since last rebase:
c1a3ebd (tag: v0.12.10, origin/main) bump up version to 0.12.10
5294c9e update CHANGELOG.md for v0.12.10
319a797 update dependencies
20ca575 add notes on precedence of unary operators against variable binding
62ffdf7 fix break in try catch syntax
35c123b improve the order of test cases
fe0e20a improve performance of ascii_downcase, ascii_upcase functions
76648c7 improve match/2 to reduce syntax tree nodes just like splits/2
6a683bb improve the install targets in Makefile
6631dd3 escape the null character in csv, tsv, sh formats (close #200)
5253817 fix path value validation on getpath function (fix #198)
2022-12-07 16:45:08 +01:00
bump
2a91d29358 Update gomod-golang/text to 0.5.0 from 0.4.0
Source diff 0.4.0..0.5.0 https://github.com/golang/text/compare/v0.4.0..v0.5.0
2022-12-04 16:03:39 +00:00
Mattias Wadman
1c7d3252c0 mod: Update ones without bump config 2022-11-19 10:59:13 +01:00
Mattias Wadman
450f584461 gojq: Update rebased fq fork 2022-11-19 10:47:14 +01:00
Mattias Wadman
d8641ab1c3 gomod: Update modules that lack bump config 2022-10-30 14:08:50 +01:00
Mattias Wadman
349d949701 gojq: Update rebased fq fork
From upstream:
improve performance of assignment operators and del function
improve jq compatibility of walk function (fix #195)
2022-10-30 14:00:00 +01:00
bump
56dcb3a0e3 Update gomod-BurntSushi/toml to 1.2.1 from 1.2.0
Source diff 1.2.0..1.2.1 https://github.com/BurntSushi/toml/compare/v1.2.0..v1.2.1
2022-10-22 16:04:32 +00:00
bump
d80f12c700 Update gomod-golang/text to 0.4.0 from 0.3.8
Source diff 0.3.8..0.4.0 https://github.com/golang/text/compare/v0.3.8..v0.4.0
2022-10-18 16:07:35 +00:00
bump
101b2806f6 Update gomod-golang/text to 0.3.8 from 0.3.7
Source diff 0.3.7..0.3.8 https://github.com/golang/text/compare/v0.3.7..v0.3.8
2022-10-12 16:08:07 +00:00
Mattias Wadman
d07b2eec73 markdown,fuzz: Update gomarkdown
Fixes performance https://github.com/gomarkdown/markdown/issues/265

Should make it possible to fuzz all formats again. Before fuzzer timed out at times.
2022-10-11 10:44:17 +02:00
Mattias Wadman
404b17047d gojq: Update fq fork
Fixes: Iter function with no outputs in a path(...) throws errors
https://github.com/itchyny/gojq/issues/191
2022-09-29 16:19:40 +02:00
Mattias Wadman
a468684ae8 deps: Manual update ones not using bump
Uses branch as they lack release tag

github.com/gomarkdown/markdown@master
golang.org/x/crypto@master
golang.org/x/exp@master
golang.org/x/net@master
2022-09-28 16:05:33 +02:00
Mattias Wadman
376f0ebb24 gojq: Update rebased fq fork
Also sync colorjson encoder with gojq encoder
2022-09-28 15:44:16 +02:00
Mattias Wadman
ea81efec38 readline: Update rebased fq fork 2022-09-28 15:00:26 +02:00
Mattias Wadman
00a50662ea markdown: Add decoder 2022-09-10 18:26:45 +02:00
Mattias Wadman
804ad1e2a2 gojq: Update fq fork
Fixes https://github.com/itchyny/gojq/issues/186
skip appending path while variable argument evaluation
2022-08-22 15:42:14 +02:00
Mattias Wadman
394717cae8 gopacket: Switch/update to new fork, remove SLL2 hack
SLL2 support merged upstream https://github.com/gopacket/gopacket/pull/1

This also cuts down a bit on some indirect deps
2022-08-20 01:25:03 +02:00
Mattias Wadman
add3dcfd91 gojq: Update fq fork, fix scope argcount issue 2022-08-16 12:04:36 +02:00
Mattias Wadman
d898732c3d gojq: Update fq fork, new scope function, rawstring, stricter integers
Update repl completion for new scope/0 function, now reports name/arity and is more correct
Support for experimental `rawstring` literals, similar to go raw string literals
Sticter number literals, now 0b,0o and 0x fail it they have invalud symbols, ex: 0b123
2022-08-14 22:40:44 +02:00
Mattias Wadman
0cd846a18c *extra: Rename <pkg>extra to just <pkg>ex and refactor to use generics 2022-08-12 16:29:47 +02:00
Mattias Wadman
af35b2848d gojq: Preserve keys order for to_entries when used with JQValue
Feels like what one would expect when doing to_entries on a decode value struct etc,
that is get the pairs in same order as decoder wants.

Quite sure this used to the case but was change to sorted key order when
to_entries was move from bein implemented in jq to be internal for performance
reasons. Now internal gojq to_entries has a special case for JQValue objects.

Also use new gojq.JQType* constants for type strings and switch binary type
to look more like strings. Can still use _exttype to get "binary".
2022-07-26 15:55:58 +02:00
Mattias Wadman
cae288e6be format,intepr: Refactor json, yaml, etc into formats also move out related functions
json, yaml, toml, xml, html, csv are now normal formats and most of them also particiate
in probing (not html and csv).

Also fixes a bunch of bugs in to/fromxml, to/fromjq etc.
2022-07-23 21:48:45 +02:00
bump
62be9223b3 Update gomod-BurntSushi/toml from 1.1.0 to 1.2.0
Source diff 1.1.0..1.2.0 https://github.com/BurntSushi/toml/compare/v1.1.0..v1.2.0
2022-07-20 16:33:59 +00:00
Mattias Wadman
a5122690e4 readline: Rebase on top of tpodowd's update PR
Fixes:
Tab Completion Candidate Pager for when candidates don't fit on a single page
https://github.com/chzyer/readline/pull/207
2022-07-04 11:21:31 +02:00
Mattias Wadman
c57dc17d17 gojq: Rebase fq fork
Expose number parse validate functions, will be used later by text format decoders:
gojq.ValidNumber(s string)
gojq.NormalizeNumber(v json.Number)
gojq.NormalizeNumbers(v interface{})

From upstream:
Fixes: Regression since dace191 (fix fromjson to keep integer precision (close #172)) (https://github.com/itchyny/gojq/issues/178)
otherwise mostly cosmetic and cleanups since last rebase
2022-07-03 11:55:28 +02:00
Mattias Wadman
d45fee5221
Merge pull request #306 from wader/golang.org/x/net-crypto-update
mod: Update golang.org/x/{crypto,net}
2022-07-01 20:00:25 +02:00
Mattias Wadman
c2a359bdbd mod: Update golang.org/x/{crypto,net} 2022-07-01 19:47:45 +02:00
Mattias Wadman
44bab2746a readline: Rebase on top of tpodowd's redraw/completion fixes PR
Also some cleanup and fixup of commits

https://github.com/chzyer/readline/pull/207
2022-07-01 19:43:39 +02:00
Mattias Wadman
c1a0cda5a8 gojq: Update rebased fq fork
Fix tostring for non-string JQValue:s, is now JSON
Update EOF error
2022-06-01 17:27:45 +02:00
Mattias Wadman
3b717c3ba4 interp: Add to/from<encoding> for some common serialzations, encodings and hashes
Add toxml/fromxml for XML encoding, mighe be lossy on ordering
fromxml has {seq:bool} to add #seq attributes to improve ordering
toxml has {indent:number} to choose space indent depth

Add tojson, same as in jq but also has {indent:number} options

Add toyaml/fromyaml for YAML

Add totoml/fromtoml for TOML

Add tojq/fromjq for jq-flavored JSON (optional quotes for keys, comments and trailing commas support)

Add tocsv/fromcsv for CSV
formcvs takes {comma:string, comment:string} for custom separtor and comment character

Rename/split hex into tohex/fromhex
Rename/split base64 into tobase64/frombase64
tobase64/frombase64 takes {encoding:string} option for base64 flavour (std, url, rawstd, rawurl)

Add to/from<format> urlpath, urlquery, url, xmlentities, base64, hex

Add to<hash> md4, md5, sha1, sha256, sha512, sha3_224, sha3_256, sha3_384, sha3_512

Add to/from<encoding> iso8859-1, utf8, utf16, utf16le, utf16be
2022-05-28 16:31:20 +02:00
Mattias Wadman
9a7ce14886 gojq: Update rebased fq fork
Use new gojq.TypeOf and gojq.Preview
2022-05-23 21:33:12 +02:00
Mattias Wadman
59c7d0df6b gojq: Rebase fq fork 2022-05-23 11:26:09 +02:00
Mattias Wadman
e9d9f8aef9 fq: Use go 1.18
Rename s/interface{}/any/g
Preparation for using generics in decode API and native jq funcations etc
Remove some unused linter ignores as linter has been fixed
2022-05-20 15:23:16 +02:00
Mattias Wadman
54dcdce909 readline: Update fq fork
Rebase on master
Cherry-pick https://github.com/chzyer/readline/pull/202
2022-05-19 16:56:22 +02:00
Mattias Wadman
0f78687b78 gojq: Fix JQValue index and destructuring issue and rebase fq fork
Rebase on upstream main
Fix issue using JQValue as object index
Fix issue destructuring JQValue array
2022-05-03 18:22:26 +02:00
Mattias Wadman
f4480c6fe5 decode,interp: Support for format specific options
interp: Refactor format help and also include options
interp: Add -o name=@path to load file content as value (not documented yet, might change)
interp,decode: Expose decode out value as _out (might change)
interp: Refactor foramts.jq into format_{decode,func,include}.jq
interp: Refactor torepr into _format_func for generic format function overloading
interp: Refactor -o options parsing to be more generic and collect unknowns options to be used as format options
decode of decode alises
func for format overloaded functions
include for format specific jq functions (also _help, torepr etc)
flac_frame: Add bits_per_sample option
mp3: Add max_unique_header_config and max_sync_seek options
mp4: Add decode_samples and allow_truncate options
avc_au: Has length_size option
hevc_au: Has length_size option
aac_frame: Has object_typee option
doc: Rewrite format doc generation, less hack more jq
2022-05-01 17:08:30 +02:00
bump
d9195ac48a Update gomod-mapstructure from 1.4.3 to 1.5.0
CHANGELOG https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md
2022-04-21 16:08:54 +00:00
Mattias Wadman
afd724bf9c gojq: Rebase fq fork. Fixes JQValue path tracking when iterating
Add some decode value path and assign tests
2022-04-19 19:00:37 +02:00
Mattias Wadman
02a97fa39a gojq: Rebase fq fork
debug code conflict and removed some unused code
2022-04-17 19:45:58 +02:00
Mattias Wadman
518f6af4a8 gojq: Rebase fq fork
Upstream changes:
Many performance improvements
Error message improvments
Lots of refactoring

Most of the JQValue interface changes in gojq fork had to be reworked but
resultet in a much nicer and cleaner changeset.

fq changes:
Assignment to JQValue (like a decode value) now shallowly converts the value into
a jq value before assigning. Was a bit hacky as it was and this makes JQValue
behave more like real jq values. This also fixes some advanced indexing issues.

Actual custom path updates will be something for the future.
2022-04-11 19:23:15 +02:00
Mattias Wadman
dd0d97eabc gojq: Rebase fq fork (speedup and fix range with JQValue)
Include upstream speedups to:
flatten
join
ltrimstr
rtrimstr
startswith
endswith
min_by
max_by
min
max
sort
2022-03-28 22:51:23 +02:00
Mattias Wadman
adde8c7004 gojq: Rebase fq fork 2022-03-21 10:47:22 +01:00
Mattias Wadman
2e240447e3 gojq: Rebase fq fork 2022-03-16 10:26:59 +01:00
Mattias Wadman
8c91870235 gojq: Rebase fq fork 2022-03-14 18:35:17 +01:00
Mattias Wadman
88f791e0fa gojq: Rebase fq fork 2022-03-14 14:22:47 +01:00
Mattias Wadman
d79afeb386 gojq: Rebase fq fork
Includes from_entries optimization
2022-03-12 18:51:23 +01:00
Mattias Wadman
be6f00935f gojq: Rebase fq fork and add support for non-10 base for tonumber
tonumber now works with non-10 number literals
Fix try precedences changes
Fix .[]? error handling changes
2022-03-02 23:46:20 +01:00
Mattias Wadman
01ecde640e bump: Add snappy config
Also rearrange requires sections a bit
2022-02-13 10:38:52 +01:00
Xentripetal
9636613ec6 Merge branch 'master' of https://github.com/wader/fq into avro 2022-02-12 22:16:50 -06:00
Mattias Wadman
b55ca2cd5d gojq: Rebase fq branch
Add bin,hex,oct bigint number literal tests
2022-02-12 13:03:38 +01:00
Xentripetal
31c4c0d3c4 Support snappy and deflate codecs 2022-02-07 23:03:50 -06:00
Mattias Wadman
36d28913ae readline: Update to verison with less deps
Should make it easier to package for debian etc
2022-01-18 00:40:12 +01:00
Mattias Wadman
be0ef80c8d interp,fq: Make bit operators normal functions
Uses same rule as jq math functions, 1 arg uses input, more than one all passed as args.
So "bnot 1" -> "1 | bnot", "1 bsl 1" -> "bsl(1; 1)"

Don't think it's worth changing the jq syntax for this and also it could make fq
scripts no compatiblr with other jq tools. Non-10 base number literals are still allowed
but should probably not be used in scripts, only in repl and with cli.
2022-01-09 01:06:36 +01:00
Mattias Wadman
1500fd90e4 gojq: Update to rebased fq fork 2021-12-11 11:23:11 +01:00
bump
d4b2d58b1b Update gomod-mapstructure from 1.4.2 to 1.4.3 2021-12-02 18:11:39 +01:00
Mattias Wadman
f55b1af6ac inet: Add tcp and ipv4 reassembly
Also add tcp_stream and udp_payload to decode content
2021-11-29 18:42:18 +01:00
Mattias Wadman
bfec366613 gojq: Update fq fork 2021-11-05 17:40:21 +01:00
Mattias Wadman
4104a18697 gojq: Update fq fork 2021-10-30 18:25:23 +02:00