Skip to content

Commit 3f48bd2

Browse files
committed
v1.15.0
1 parent ce2f8b3 commit 3f48bd2

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# Changelog
22

3+
## 1.15.0 (2021-11-03)
34

4-
## 1.14.0 (2021-11-01)
5+
- Add `default` parameter to `get` filter
6+
- `Tera::extend` now also copies over function
7+
- Remove the new Context-local Tera function support, it was an accidental breaking change and will be added in v2 in some ways
8+
instead
9+
10+
11+
## 1.14.0 (2021-11-01) - YANKED as it added a generic to Context, a breaking change
512

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

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

1017
- Add `default` parameter to `get` filter
1118
- `Tera::extend` now also copies over function

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tera"
3-
version = "1.14.0"
3+
version = "1.15.0"
44
authors = ["Vincent Prouillet <hello@prouilletvincent.com>"]
55
license = "MIT"
66
readme = "README.md"

src/builtins/filters/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn get(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
1212
Some(val) => try_get_value!("get", "key", String, val),
1313
None => return Err(Error::msg("The `get` filter has to have an `key` argument")),
1414
};
15-
15+
1616
match value.as_object() {
1717
Some(o) => match o.get(&key) {
1818
Some(val) => Ok(val.clone()),

0 commit comments

Comments
 (0)