Skip to content

Commit 1f828fe

Browse files
committed
Documentation
1 parent c62ffa1 commit 1f828fe

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,23 @@ Release Notes
1919

2020
**Breaking Changes**
2121

22-
- The only collections that can feed Mustache templates are arrays, sets, dictionaries, and Foundation collections that adopt NSFastEnumeration such as NSArray, SSet, NSOrderedSet, NSDictionary, etc.
22+
- The only collections that can feed Mustache templates are arrays, sets, dictionaries, and Foundation collections that adopt NSFastEnumeration such as NSArray, SSet, NSOrderedSet, NSDictionary, etc. Other Swift collections such as ranges can no longer feed templates.
2323

24-
- The Swift 3 *Grand Renaming* has impacted a few GRMustache APIs:
24+
- The following APIs were modified:
2525

2626
```diff
27+
// Use nil instead
28+
-func Box() -> MustacheBox
29+
30+
-typealias KeyedSubscriptFunction = (key: String) -> MustacheBox
31+
+typealias KeyedSubscriptFunction = (_ key: String) -> Any?
32+
33+
-typealias FilterFunction = (box: MustacheBox, partialApplication: Bool) throws -> MustacheBox
34+
+typealias FilterFunction = (_ box: MustacheBox, _ partialApplication: Bool) throws -> Any?
35+
36+
-typealias WillRenderFunction = (tag: Tag, box: MustacheBox) -> MustacheBox
37+
+typealias WillRenderFunction = (_ tag: Tag, _ box: MustacheBox) -> Any?
38+
2739
struct Configuration {
2840
- func registerInBaseContext(_ key: String, _ box: MustacheBox)
2941
+ func register(_ value: Any?, forKey key: String)

0 commit comments

Comments
 (0)