Skip to content

Commit 2f21596

Browse files
feat: upgrade jmespath_extensions to 0.6 with full feature set (#496)
Upgrades from 0.3.5 to 0.6.2, enabling all 297 extension functions. New function categories now available: - DURATION: format_duration, parse_duration, duration_hours/minutes/seconds - NETWORK: cidr_contains, is_private_ip, ip_to_int, cidr_network/broadcast - COMPUTING: format_bytes, parse_bytes, bit operations - SEMVER: semver_parse, semver_compare, semver_satisfies - GEO: geo_distance, geo_bearing - IDS: ulid, nanoid - JSONPATCH: json_patch, json_diff, json_merge_patch - MULTI-MATCH: match_all, match_any, extract_all - TEXT: word_count, reading_time, ngrams - COLOR: hex_to_rgb, rgb_to_hex, color_mix - REGEX: regex_match, regex_replace, regex_extract - HASH: sha256, md5, hmac_sha256 - FUZZY: levenshtein, jaro_winkler, soundex - PHONETIC: metaphone, sounds_like Enhanced DATETIME functions: - relative_time, time_ago for human-readable dates - timezone_convert for timezone handling - business_days_between, is_weekend, is_weekday - start_of_day/week/month/year, end_of_day
1 parent b7b875c commit 2f21596

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

Cargo.lock

Lines changed: 53 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/redisctl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ thiserror = { workspace = true }
5151
serde_yaml = { workspace = true }
5252
comfy-table = { workspace = true }
5353
jmespath = { workspace = true }
54-
jmespath_extensions = { version = "0.3", features = ["string", "array", "object", "math", "type", "utility", "datetime", "encoding", "validation"] }
54+
jmespath_extensions = { version = "0.6", features = ["full"] }
5555
config = { workspace = true }
5656

5757
# Keyring for Files.com API key storage (separate from profile credentials)

crates/redisctl/src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn print_output<T: Serialize>(
5252
) -> Result<()> {
5353
let mut json_value = serde_json::to_value(data)?;
5454

55-
// Apply JMESPath query if provided (using extended runtime with 150+ functions)
55+
// Apply JMESPath query if provided (using extended runtime with 300+ functions)
5656
if let Some(query_str) = query {
5757
let runtime = get_jmespath_runtime();
5858
let expr = runtime

0 commit comments

Comments
 (0)