Up to [cvs.NetBSD.org] / pkgsrc / textproc / dasel
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revbump for Go update (ticket #7379)
Revbump all Go packages after go127 update
*: Revbump for go126, go127. Ticket #7311
Revbump all Go packages after go127 security update
Revbump all Go packages after go127 security update
Revbump all Go packages after go127 update
Revbump all Go packages after go127 became the default
Revbump all Go packages after go126 update
Revbump all Go packages after Go 1.26 update
Revbump all Go packages after go126 update
Revbump all Go packages after go126 update
textproc/dasel: Update to 3.11.2 ## [v3.11.2] - 2026-06-27 ### Security - Fixed panic (index out of range) in the selector lexer when the input ends with whitespace, e.g. `dasel query 'a '` ([GHSA-65gg-g7rw-6cpc] (https://github.com/TomWright/dasel/security/advisories/GHSA-65gg-g7rw-6cpc)). The whitespace-skip loop could advance the position to the end of input, after which the next character access had no bounds check.
dasel: update to 3.11.1. ## [v3.11.1] - 2026-06-20 ### Security - Fixed stack overflow (unrecoverable `fatal error`) in the JSON and XML readers when parsing deeply nested input ([GHSA-cqxr-jxr2-85pq](https://github.com/TomWright/dasel/security/advisories/GHSA-cqxr-jxr2-85pq)). Both readers now enforce a 10,000-level nesting depth limit and return a clean error (`ErrJSONMaxDepthExceeded` / `ErrXMLMaxDepthExceeded`) instead of crashing the process.
Revbump all Go packages after go126 security update
dasel: update to 3.11.0. ## [v3.11.0] - 2026-05-19 ### Added - Support for newline-delimited JSON (NDJSON) input. Multiple JSON values in a single input are now parsed as a multi-document branch, matching the existing YAML multi-document behaviour. ### Fixed - Strip leading "v" from version output for consistency across build methods (Docker vs Homebrew).
dasel: update to 3.10.1.
v3.10.1 - 2026-05-13
Fixed
Fixed a non-terminating loop in the selector lexer when tokenizing unterminated regex patterns (e.g. r/abc). The tokenizer now returns an error instead of looping indefinitely.
Fix panic when selector query contains a trailing backslash in a quoted string (GHSA-m5j3-4634-c2vq).
v3.10.0 - 2026-05-13
Added
KDL format support (-i kdl / -o kdl) for reading and writing KDL configuration files (#504). Supports both v1 and v2 syntax with automatic version detection. Output version is configurable via --write-flag kdl-version=1 or --write-flag kdl-version=2 (default).
v3.9.0 - 2026-05-13
Added
groupBy(expr) function to group array elements by a derived key expression, producing a map of key to matching elements.
reduce(expr, init, update) function for folding arrays into a single value using an accumulator ($acc).
mapValues(expr) function for transforming all values of a map/object while preserving keys.
$key variable available in all iteration expressions (filter, map, each, sortBy, groupBy, any, all, count, reduce, mapValues, search, recursive descent). Provides the current index (for slices) or key name (for maps).
Revbump all Go packages after go126 security update
dasel: generate files during post-build, not install Following a hint from bsiegert@
dasel: update to 3.8.1. install man pages and shell completion ## [v3.8.1] - 2026-04-30 - `dasel man` now generates a reproducible manpage based on [SOURCE_DATE_EPOCH](https://reproducible-builds.org/specs/source-date-epoch).
dasel: update to 3.8.0.
v3.8.0 - 2026-04-26
Added
dasel completion <shell> subcommand to generate shell completion scripts for bash, zsh, fish, and powershell (#497).
dasel man subcommand to generate a man page (#497).
Fixed
YAML string quote style (double, single, literal, folded) is now preserved on round-trip (#452).
v3.7.0 - 2026-04-25
Changed
merge function now performs deep merge, recursively merging nested maps (#133).
v3.6.0 - 2026-04-25
Added
--compact flag for compact output (no indentation/newlines).
Changed
stringify function now produces compact output.
Fixed
Compact/pretty output support for JSON, TOML, YAML, and XML writers (#457).
v3.5.0 - 2026-04-25
Added
split function that splits a string by a separator into an array of strings.
toLower function that converts a string to lowercase.
toUpper function that converts a string to uppercase.
trim function that trims whitespace from both ends of a string.
trimPrefix function that trims a prefix from a string.
trimSuffix function that trims a suffix from a string.
startsWith function that checks if a string starts with a given prefix.
endsWith function that checks if a string ends with a given suffix.
indexOf function that returns the index of the first occurrence of a substring, or -1 if not found.
abs function that returns the absolute value of a number.
floor function that returns the largest integer less than or equal to the input.
ceil function that returns the smallest integer greater than or equal to the input.
round function that rounds a number to the nearest integer.
avg function that returns the average of the given numbers.
flatten function that flattens a nested array by one level.
unique function that removes duplicate values from an array.
first function that returns the first element of an array.
last function that returns the last element of an array.
values function that returns the values of a map as an array.
entries function that converts a map into an array of {key, value} objects.
fromEntries function that converts an array of {key, value} objects into a map.
toBool function that converts a value to a boolean.
any expression that returns true if any element in an array matches the predicate.
all expression that returns true if all elements in an array match the predicate.
count expression that counts the number of elements in an array that match the predicate.
stringify function that serializes a structured value into a format string (inverse of parse).
Ternary operator (condition ? then : else).
Fixed
Fixed a bug in YAML and TOML parsers that caused them to fail when parsing non-base10 numbers (e.g. hex, binary, octal).
Fixed a bug in the toInt function that caused it to fail when parsing non-base10 numbers (e.g. hex, binary, octal).
XML child element ordering now has more comprehensive round-trip handling. Thanks @takeokunn.
Revbump all Go packages after go126 security fix
dasel: update to 3.4.1. ## [v3.4.1] - 2026-03-30 ### Fixed - Escape characters in query strings now work as expected, e.g. `\n` will be treated as a newline character instead of the literal string `\n`. - Fixed a typo in the `<=` token that could cause a display issue.
Revbump all Go packages after security update
dasel: update to 3.4.0. Leaf package. Add keys func by @TomWright in #533
Revbump all Go packages after go126 update
dasel: update to 3.3.1. ## [v3.3.1] - 2026-02-26 ### Fixed - Fixed query selector parsing issue that incorrectly parsed array accessors when they followed a `filter` or `map` call. ## [v3.3.0] - 2026-02-25 ### Added - `replace` function to replace occurrences of a substring in a string with another string. [See docs](https://daseldocs.tomwright.me/functions/replace). ## [v3.2.3] - 2026-02-23 ### Added - XML parser now preserves comments and processing instructions during round-trip (#175). ### Fixed - Spread operator within array construction is now honoured.
Revbump all Go packages after default version bump
dasel: update to 3.2.2. ## [v3.2.2] - 2026-02-13 ### Changed - Swapped to use goccy/go-json for improved performance. Thanks @imix - Updated model `IsScalar` internals to improve efficiency. Thanks @imix - General dependency updates.
Revbump all Go packages after go125 update
dasel: update to 3.2.1. ## [v3.2.1] - 2026-01-05 ### Fixed - XML parser now correctly handles empty CDATA.
dasel: update to 3.2.0. ## [v3.2.0] - 2025-12-26 ### Added - `join` function to join array elements into a single string with a specified separator. [See docs](https://daseldocs.tomwright.me/functions/join).
dasel: update to 3.1.4. ## [v3.1.4] - 2025-12-18 ### Fixed - `Select` func in the exposed go API now correctly maps return values to the respective types. ## [v3.1.3] - 2025-12-18 ### Fixed - XML documents no longer create redundant `root` or `item` elements. - Dasel no longer loses value metadata when reading/writing to internal models. ## [v3.1.2] - 2025-12-17 ### Fixed - Fix XML reading/writing when XML processing instructions are present. ## [v3.1.1] - 2025-12-16 ### Fixed - Homebrew release. ## [v3.1.0] - 2025-12-16 ### Added - `sum` function to sum numeric values in an array. [See docs](https://daseldocs.tomwright.me/functions/sum). ## [v3.0.0] - 2025-12-15 ### Added - Major new version release. - INI support. - HCL support. - Dasel syntax now supports variables and expressions. - Files can now be read and parsed inside a dasel query. - Variables can now be passed to dasel from the command line. - Support for comments in queries. - Dasel config file to define default file format. - Interactive mode for dasel CLI (alpha). ### Changed - Go module path changed to `github.com/tomwright/dasel/v3`. - Internal changes to support new version. - Query/selector syntax revamp. See [docs](https://daseldocs.tomwright.me) for more information. - Majority of read/write operations will now maintain ordering. - Migrated from Cobra to Kong for CLI parsing/processing. - Removed `put` and `delete` commands. Instead, modify within the query and use `--root` flag. ### Fixed - File redirect now works in the same way as piped input. - Various other bug fixes and improvements. - Whitespace in query syntax is now handled correctly.
Revbump all Go packages after go125 update
Revbump all Go packages after go125 update
Revbump all Go packages after go125 update
Revbump all Go packages after go125 security update
dasel: create and install man pages Bump PKGREVISION.
Revbump all Go packages after moving to go125
Revbump all Go packages after go124 update
Pulup ticket #6952 - Update PKGREVISION for all Go packages. Go had a security update to one of the builtin libraries.
Belated revbump for all Go packages after go124 update I forgot to do the revbump again, sorry for doing it so late after the update.
Revbump all Go packages after go124 update I realize I forgot to do the revbump after updating the default Go version to 1.24, so let's do that now.
Revbump all Go packages after go122 update
textproc/dasel: import dasel-2.8.1 Dasel (short for data-selector) allows you to query and modify data structures using selector strings. Comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies. Dasel uses a standard selector syntax no matter the data format. This means that once you learn how to use dasel you immediately have the ability to query/modify any of the supported data types without any additional tools or effort.