Skip to content

Commit

Permalink
feat: update minijinja to 2.x (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Oct 9, 2024
1 parent 441e4d7 commit e58cee0
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 87 deletions.
103 changes: 56 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ content_inspector = "0.2.4"
serde_with = "3.11.0"
url = "2.5.2"
tracing = "0.1.40"
clap = { version = "4.5.19", features = ["derive", "env", "cargo"] }
minijinja = { version = "=1.0.14", features = [
clap = { version = "4.5.20", features = ["derive", "env", "cargo"] }
minijinja = { version = "2.3.1", features = [
"unstable_machinery",
"custom_syntax",
] }
Expand Down Expand Up @@ -96,8 +96,8 @@ indexmap = "2.6.0"
dunce = "1.0.5"
fs-err = "2.11.0"
which = "6.0.3"
clap_complete = "4.5.32"
clap_complete_nushell = "4.5.3"
clap_complete = "4.5.33"
clap_complete_nushell = "4.5.4"
tokio-util = "0.7.12"

tar = "0.4.42"
Expand Down Expand Up @@ -141,6 +141,7 @@ rattler_shell = { version = "0.22.4", default-features = false, features = ["sys
rattler_solve = { version = "1.1.0", default-features = false, features = ["resolvo", "serde"] }
rattler_virtual_packages = { version = "1.1.7", default-features = false }
rattler_package_streaming = { version = "0.22.10", default-features = false }
lazy_static = "1.5.0"

[dev-dependencies]
insta = { version = "1.40.0", features = ["yaml"] }
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/jinja.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ will return `1`) - `last`: return the last element of a list (e.g. `"{{ [1, 2, 3
- `sort`: sort a list (e.g. `"{{ [3, 1, 2] | sort }}"` will return `[1, 2, 3]`)
- `trim`: remove leading and trailing whitespace from a string (e.g. `"{{ ' foo ' | trim }}"` will return `"foo"`)
- `unique`: remove duplicates from a list (e.g. `"{{ [1, 2, 1, 3] | unique }}"` will return `[1, 2, 3]`)
- `split`: split a string into a list (e.g. `"{{ '1.2.3' | split('.') }}"` will return `['1', '2', '3']`). By default, splits on whitespace.
- `split`: split a string into a list (e.g. `"{{ '1.2.3' | split('.') | list }}"` will return `['1', '2', '3']`). By default, splits on whitespace.

??? "Removed filters"

Expand Down
Loading

0 comments on commit e58cee0

Please sign in to comment.