v3.11.22026-06-27
Full Changelog: https://github.com/TomWright/dasel/compare/v3.11.1...v3.11.2
v3.11.12026-06-20
Full Changelog: https://github.com/TomWright/dasel/compare/v3.11.0...v3.11.1
v3.11.02026-05-19
What's Changed
* Support newline-delimited JSON (NDJSON) input by @TomWright in https://github.com/TomWright/dasel/pull/548
* Ensure version command output has consistent formatting.
Full Changelog: https://github.com/TomWright/dasel/compare/v3.10.1...v3.11.0
v3.10.12026-05-13
Full Changelog: https://github.com/TomWright/dasel/compare/v3.10.0...v3.10.1
v3.10.02026-05-13
What's Changed
* Add KDL format support (v1 + v2) by @TomWright in https://github.com/TomWright/dasel/pull/546
Full Changelog: https://github.com/TomWright/dasel/compare/v3.9.0...v3.10.0
v3.9.02026-05-13
New Functions
- groupBy(expr) — Group array elements by a derived key expression,
producing a map of key to matching elements.
``
[{"name": "Alice", "dept": "eng"}, {"name": "Bob", "dept": "eng"}, {"name":
"Carol", "dept": "sales"}].groupBy(dept)
// {"eng": [...], "sales": [...]}
`
- reduce(expr, init, update) — Fold an array into a single value using an
accumulator ($acc).
`
[1, 2, 3, 4].reduce($this, 0, $acc + $this)
// 10
`
- mapValues(expr) — Transform all values of a map/object while preserving
keys.
`
{"a": 1, "b": 2, "c": 3}.mapValues($this * 2)
// {"a": 2, "b": 4, "c": 6}
`
New Iteration Variable: $key
All iteration expressions now expose a $key variable — the current index
(for arrays) or key name (for maps).
Supported in: filter, map, each, sortBy, groupBy, any, all,
count, reduce, mapValues, search, and recursive descent.
`
[10, 20, 30].map($key)
// [0, 1, 2]
[10, 20, 30].filter($key >= 1)
// [20, 30]
{"a": 1, "b": 2}.mapValues($key)
// {"a": "a", "b": "b"}
[10, 20, 30].map($key + $this)
// [10, 21, 32]
``
Full Changelog: https://github.com/TomWright/dasel/compare/v3.8.1...v3.9.0
v3.8.12026-04-30
What's Changed
* fix(xml): reject invalid XML element and attribute names by @lawrence3699 in https://github.com/TomWright/dasel/pull/536
* Bump github.com/goccy/go-json from 0.10.5 to 0.10.6 by @dependabot[bot] in https://github.com/TomWright/dasel/pull/530
man: use SOURCEDATE_EPOCH if defined by @guilherme-puida in https://github.com/TomWright/dasel/pull/540
New Contributors
* @lawrence3699 made their first contribution in https://github.com/TomWright/dasel/pull/536
Full Changelog: https://github.com/TomWright/dasel/compare/v3.8.0...v3.8.1
v3.8.02026-04-25
Shell Completion Support
Dasel now includes built-in shell completion for Bash, Zsh, Fish, and PowerShell. Tab-complete subcommands, flags, and data format names (json, yaml, toml, etc.) directly in your terminal.
# Bash
source <(dasel completion bash)
# Zsh
source <(dasel completion zsh)
# Fish
dasel completion fish | source
# PowerShell
dasel completion powershell | Out-String | Invoke-Expression
See the shell completion docs for permanent installation instructions.
Man Page Generation
Generate and view a man page directly from the CLI:
dasel man | man -l -
Or install it system-wide:
sudo dasel man > /usr/local/share/man/man1/dasel.1
Bug Fixes
- YAML string quote style (double, single, literal, folded) is now preserved on round-trip (#452).
Full Changelog: https://github.com/TomWright/dasel/compare/v3.7.0...v3.8.0
v3.7.02026-04-25
Full Changelog: https://github.com/TomWright/dasel/compare/v3.5.0...v3.7.0
Make merge a deep merge by default
v3.6.02026-04-25
Added
- --compact flag — New CLI flag to produce compact output with no indentation or newlines. Supported for JSON, TOML, YAML, and XML formats.
$ echo '{"name": "Tom", "age": 30}' | dasel -i json -o json --compact
{"name":"Tom","age":30}
Changed
- stringify produces compact output — The stringify function now serializes values in compact form by default, which is the expected behavior when embedding serialized values in a query.
stringify("json", {"a": 1, "b": 2})
// "{"a":1,"b":2}"
Fixed
- Compact/pretty output support for all format writers (#457) — WriterOptions.Compact is now honored by JSON, TOML, YAML, and XML writers. Previously, the option existed but was ignored by all writers.
- JSON: Omits newlines, indentation, and spaces after colons
- TOML: Uses inline tables and single-line arrays
- YAML: Uses flow style ({a: 1, b: 2} / [1, 2, 3])
- XML: Removes all indentation, including around comments and processing instructions