Skip to content

Commit

Permalink
v1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Nov 3, 2021
1 parent ce2f8b3 commit 3f48bd2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Changelog

## 1.15.0 (2021-11-03)

## 1.14.0 (2021-11-01)
- Add `default` parameter to `get` filter
- `Tera::extend` now also copies over function
- Remove the new Context-local Tera function support, it was an accidental breaking change and will be added in v2 in some ways
instead


## 1.14.0 (2021-11-01) - YANKED as it added a generic to Context, a breaking change

- Ensure `Context` stays valid in Sync+Send, fixing an issue introduced in 1.13. 1.113 will be yanked.

## 1.13.0 (2021-10-17)
## 1.13.0 (2021-10-17) - YANKED as it made Context not Send+Sync

- Add `default` parameter to `get` filter
- `Tera::extend` now also copies over function
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tera"
version = "1.14.0"
version = "1.15.0"
authors = ["Vincent Prouillet <hello@prouilletvincent.com>"]
license = "MIT"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/builtins/filters/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn get(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
Some(val) => try_get_value!("get", "key", String, val),
None => return Err(Error::msg("The `get` filter has to have an `key` argument")),
};

match value.as_object() {
Some(o) => match o.get(&key) {
Some(val) => Ok(val.clone()),
Expand Down

0 comments on commit 3f48bd2

Please sign in to comment.