Repository navigation
Releases
Releases · mikefarah/yq
v4.54.3
Immutable
release. Only release title and notes can be modified.
- Fixed preservation of YAML aliases across documents within the same input stream, without leaking anchors between files (#2956) Thanks @ingydotnet
- Restricted
--split-expoutput paths to the current directory by default. Use--security-allow-write-any-pathwith trusted input to restore the previous behaviour (#2965) - Fixed
--inplaceto reject direct updates to read-only files and replace symbolic links instead of modifying their targets. (#2973)
v4.54.2
Immutable
release. Only release title and notes can be modified.
- Fixed command injection risk in shell output with
-o=shell -r: unsafe values are now quoted and a warning is logged. Use--security-force-never-escape-shell-outputto restore the previous unsafe behaviour (GHSA-h2cv-65fq-jgrp) - Fixed YAML structure being changed when assigning head comments (#2847) Thanks @rootsec1
- Fixed
ireduceto run per pipeline input, matching jq'sreducebehaviour (#2869) Thanks @00200200 - Fixed
map_valuesto remove entries when the expression returns nothing (#2862) Thanks @yuefdev - Fixed preservation of comments on TOML inline table values (#2879) Thanks @iamhuman-cheolheelee
- Fixed INI keys containing colons (#2886)
- Fixed YAML line numbers after header preprocessing (#2939) Thanks @imharjot
- Fixed an extra leading comment blank line with CRLF input (#2856) Thanks @cestercian
- Cleaned up failed in-place edits (#2920) Thanks @Boulea7
- Bumped dependencies
v4.54.1 - if-then-else
Immutable
release. Only release title and notes can be modified.
- Added jq style
if-then-elif-else-endconditional operator (#2871) Thanks to @anandghegde - Added
@base64url/@base64urldoperators (RFC 4648 §5) (#2827) Thanks @MsfPablo - Fixed: preserve explicit assignments in read-only expressions (#2850) Thanks @RRXXZZYY
- Fixed: error on int64 overflow in +, -, * instead of silently wrapping (#2826) Thanks @MsfPablo
- Fixed(toml): quote empty keys (#2870) Thanks @jakezwang
- Fixed: /dev/null was triggering colour output (#2852) Thanks @laraibg786
- Fixed dead snapcraft confinement link in README (#2840) Thanks @ShurongCAO
- Bumped dependencies
v4.53.6
Immutable
release. Only release title and notes can be modified.
v4.53.4
Immutable
release. Only release title and notes can be modified.
- Close input files after processing each one (#2796) (#2808) Thanks @MsfPablo
- Fixed non string HCL string keys (#2795)
- Fixed heap allocation bug (#2809) Thanks @MsfPablo
- Fix deleting commented empty list YAML output (#2765) Thanks @dpersek
- Fix (has) return false for negative array indices (#2769) Thanks @maximilize
- Fix (sort): avoid int64 overflow comparing large integers (#2771) Thanks @maximilize
- Fix: preserve correct parent references in explode merge anchor reconstruction (#2730) Thanks @vomba
- Improve Guard ExpressionParser initialization with sync.Once (#2789) Thanks @arcaven
- Fix: reject negative indent instead of panicking (#2746) Thanks @StressTestor
- Fix: parse signed hex and octal integers (#2749) Thanks @StressTestor
- Fix: skip UTF-8 BOM when processing front matter (#2751) Thanks @StressTestor
- Fix !!merge tag regression for yq (#2705) Thanks @W-Floyd
- Default to yaml when a file's extension is not a recognised format (#2785) Thanks @devthedevil
- Bumped dependencies
v4.53.3
Immutable
release. Only release title and notes can be modified.
- Add
--ini-preserve-quotesflag for INI round-trip quote preservation (#2728) Thanks @toller892! - Fix: reset INI decoder state on init (#2719) Thanks @xieby1!
- Fix: decode properties array bracket paths (#2693) Thanks @cyphercodes!
- Fix: preserve floats with trailing zero when encoding YAML to JSON (#2701) Thanks @ChrisJr404!
- Fix: JSON to TOML root scope and null handling (#2689) Thanks @LovesAsuna!
- Fix: reset TOML decoder finished flag on Init for multi-doc evaluation (#2704) Thanks @terminalchai!
- Fix: reset TOML decoder between files when evaluating all at once (#2685) Thanks @terminalchai!
- Fix: preserve TOML inline table array scope (#2694) Thanks @cyphercodes!
- Fix: preserve empty TOML arrays in tables (#2686) Thanks @cyphercodes!
- Fix: TOML encoder uses inline tables for YAML FlowStyle mappings (#2687)
- Fix nested inline YAML merge explode (#2699) Thanks @cyphercodes!
- Fix repeatString overflow test on 32-bit platforms (#2680) Thanks @jandubois!
- Bumped dependencies
v4.53.2
Immutable
release. Only release title and notes can be modified.
- Releases and tags now signed and immutable!
- Add system(command; args) operator (disabled by default) (#2640)
- TOML encoder: prefer readable table sections over inline tables (#2649)
- Fix TOML encoder to quote keys containing special characters (#2648)
- Add string slicing support (#2639)
- Fix findInArray misuse on MappingNodes in equality and contains (#2645) Thanks @jandubois!
- Fix panic on negative slice indices that underflow after adjustment (#2646) Thanks @jandubois!
- Fix stack overflow from circular alias in traverse (#2647) Thanks @jandubois!
- Fix panic and OOM in repeatString for large repeat counts (#2644) Thanks @jandubois!
- Bumped dependencies
v4.52.5
- Fix: reset TOML decoder state between files (#2634) thanks @terminalchai
- Fix: preserve original filename when using --front-matter (#2613) thanks @cobyfrombrooklyn-bot
- Fix typo in filename (#2611) thanks @alexandear
- Bumped dependencies
v4.52.4
- Dropping windows/arm - no longer supported in cross-compile
- Fixing comments in TOML arrays (#2592)
- Bumped dependencies