Mike Farah
4cf123fed5
Fixed to_entries[]
2023-12-12 15:44:34 +11:00
Mike Farah
eff7d99e2b
Added sample yq script
2023-12-12 13:08:18 +11:00
Mike Farah
dd64899434
Bumping version
2023-12-12 11:35:15 +11:00
Mike Farah
755becdde3
Release notes
2023-12-12 11:34:38 +11:00
Mike Farah
7f26d91cd0
Fixed handling of --- #1890 , #1896
2023-12-12 11:30:12 +11:00
dependabot[bot]
fa322aec33
Bump golang from 1.21.4 to 1.21.5 ( #1895 )
...
Bumps golang from 1.21.4 to 1.21.5.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-12 09:55:54 +11:00
dependabot[bot]
c7b14eacbd
Bump actions/setup-go from 4 to 5 ( #1894 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
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>
2023-12-12 09:55:42 +11:00
dependabot[bot]
2fd1537b35
Bump github.com/alecthomas/participle/v2 from 2.1.0 to 2.1.1 ( #1893 )
...
Bumps [github.com/alecthomas/participle/v2](https://github.com/alecthomas/participle ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/alecthomas/participle/releases )
- [Changelog](https://github.com/alecthomas/participle/blob/master/CHANGES.md )
- [Commits](https://github.com/alecthomas/participle/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/participle/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-12 09:55:33 +11:00
dependabot[bot]
1db4b52c3a
Bump github.com/yuin/gopher-lua from 1.1.0 to 1.1.1 ( #1892 )
...
Bumps [github.com/yuin/gopher-lua](https://github.com/yuin/gopher-lua ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/yuin/gopher-lua/releases )
- [Commits](https://github.com/yuin/gopher-lua/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/yuin/gopher-lua
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-12 09:55:24 +11:00
Mike Farah
d474bb8ba4
Fixing sef fault on bad XML #1888
2023-12-05 13:21:12 +11:00
Mike Farah
1c3d551060
Bumping version
2023-12-04 11:17:53 +11:00
Mike Farah
d16b6fbb03
Release notes
2023-12-04 11:17:40 +11:00
Mike Farah
54a6978e97
Release notes
2023-12-04 11:16:49 +11:00
Mike Farah
a988cd9005
Updating JSON doc: NDJSON spec deprecated, prefer JSON Lines
2023-12-01 11:39:02 +11:00
Mike Farah
779b26310e
Updating references to yq being a YAML processor
2023-11-30 15:32:21 +11:00
dependabot[bot]
638deed03e
Bump golang.org/x/net from 0.18.0 to 0.19.0 ( #1887 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/net/compare/v0.18.0...v0.19.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
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>
2023-11-30 15:12:03 +11:00
Mike Farah
730f240d24
Fixed to_entries and del bug #1886
2023-11-30 14:04:54 +11:00
Mike Farah
c11a53322b
Bumping version
2023-11-23 11:59:22 +11:00
Mike Farah
430a6d5237
Release notes
2023-11-23 11:58:31 +11:00
Ville Skyttä
eecc106529
Update JSON to YAML example for new JSON input output default ( #1875 )
2023-11-23 11:54:43 +11:00
Ville Skyttä
998b4edb34
Grammar fixes ( #1877 )
2023-11-23 11:54:25 +11:00
Mike Farah
26effddb8c
Fixed empty array json bug #1880
2023-11-23 11:53:18 +11:00
Mike Farah
1cf9ecc79d
Bumping version
2023-11-18 15:05:29 +11:00
Mike Farah
8024470b51
Updating release notes
2023-11-18 15:04:42 +11:00
Alessandro Di Stefano
e5cc57bedf
Do not panic when StdIn is closed ( #1867 )
...
When the shell executing yq has no open stdin, os.Stdin.Stat() return nil and yq fails to continue. This commit fixes a missing verification on the result of os.Stdin.Stat() in the utils.processStdInArgs function and adds an acceptance test to cover this scenario in the future. This bug affects yq since version 4.26.1.
2023-11-18 12:20:12 +11:00
Mike Farah
3d64bdadc1
Fixes issue when update against self #1869
2023-11-18 12:19:27 +11:00
Mike Farah
4b8c8506a5
Updating release notes
2023-11-14 14:39:37 +11:00
dependabot[bot]
f789740f7e
Bump github.com/elliotchance/orderedmap from 1.5.0 to 1.5.1 ( #1854 )
...
Bumps [github.com/elliotchance/orderedmap](https://github.com/elliotchance/orderedmap ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/elliotchance/orderedmap/releases )
- [Commits](https://github.com/elliotchance/orderedmap/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/elliotchance/orderedmap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 13:55:55 +11:00
dependabot[bot]
0523c9df87
Bump golang.org/x/net from 0.17.0 to 0.18.0 ( #1856 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
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>
2023-11-14 13:55:32 +11:00
Mike Farah
c7ef946031
Fixed multi doc anchor bug #1861
2023-11-14 13:00:30 +11:00
Mike Farah
79a50b9c20
Fixes dos line separator issue when reading expression file #1860
2023-11-10 09:34:01 +11:00
dependabot[bot]
b75dc0782b
Bump github.com/fatih/color from 1.15.0 to 1.16.0 ( #1857 )
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
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>
2023-11-10 09:15:04 +11:00
dependabot[bot]
fc940689bf
Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 ( #1858 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
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>
2023-11-10 09:14:49 +11:00
dependabot[bot]
7892d38fca
Bump golang from 1.21.3 to 1.21.4 ( #1859 )
...
Bumps golang from 1.21.3 to 1.21.4.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 09:14:31 +11:00
Mike Farah
5f4c1fbd0a
Bumping version
2023-11-08 09:35:43 +11:00
Mike Farah
8122c9edf2
Release notes
2023-11-08 09:14:45 +11:00
Mike Farah
d6e099f7ff
Formatting
2023-11-08 09:09:21 +11:00
Jason Meridth
bbe196ba11
feat: upgrade go.mod to 1.21 ( #1830 )
...
This matches what was changed in the Dockerfile
### CSpell results
CSpell: Files checked: 243, Issues found: 0 in 0 files
### GOSec results
Summary:
Gosec : 2.18.1
Files : 121
Lines : 13091
Nosec : 8
Issues : 0
### Test Results
? github.com/mikefarah/yq/v4 [no test files]
ok github.com/mikefarah/yq/v4/cmd 0.693s
ok github.com/mikefarah/yq/v4/pkg/yqlib 1.023
Signed-off-by: jmeridth <jmeridth@gmail.com>
2023-10-23 20:04:10 +11:00
Valentin Lab
a60d27975a
add tests for root node unwrap bug in previous versions ( #1837 )
2023-10-23 20:03:51 +11:00
Mike Farah
c8f4ba7f45
Removing copier lib
2023-10-18 12:36:52 +11:00
Mike Farah
13d1bbb45f
Generic ast ( #1829 )
...
Remove dependency on yaml.Node for internal AST representation. Yaml decoder is now just another decoder.
2023-10-18 12:11:53 +11:00
Samuel Mutel
7430419413
fix: Missing dependencies to build application ( #1825 )
...
Co-authored-by: Samuel Mutel <samuel.mutel@deveryware.com>
2023-10-17 14:21:41 +11:00
dependabot[bot]
5ac95e543e
Bump golang from 1.21.1 to 1.21.3 ( #1823 )
...
Bumps golang from 1.21.1 to 1.21.3.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 21:03:06 +11:00
dependabot[bot]
aaa81ac45a
Bump golang.org/x/net from 0.15.0 to 0.17.0 ( #1822 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 11:25:42 +11:00
Kim Alvefur
7c78a15b23
Lua output fixes ( #1811 )
...
* encoder_lua: Handle explicitly positive infinity
* encoder_lua: Fix inclusion of pre-/suffix when prettyPrinted
It seems certain operations like --prettyPrint or subset selections does
not produce a DocumentNode, which is where the lua pre- and suffix was
printed, causing those to be omitted.
* encoder_lua: Improve Tag handling robustness
Using the method call seems more reliable in case the input parser
forgets to set the tag.
2023-10-12 11:25:26 +11:00
dependabot[bot]
610896e5ed
Bump github.com/alecthomas/repr from 0.2.0 to 0.3.0 ( #1813 )
...
Bumps [github.com/alecthomas/repr](https://github.com/alecthomas/repr ) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/alecthomas/repr/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/repr
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>
2023-10-10 14:40:52 +11:00
Mike Farah
d113344abf
Added tonumber support #71
2023-10-05 15:15:01 +11:00
Mike Farah
6e65d44a98
Can build yq with no lua
2023-10-03 16:22:23 +11:00
Kim Alvefur
5fa41624c9
Add support for Lua input ( #1810 )
2023-10-03 16:00:51 +11:00
Mike Farah
ee900ec997
Added kind operator
2023-10-02 14:43:12 +11:00