Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 337 lines (196 sloc) 12.127 kB
0219c22 @groue v1.0.0
authored
1 GRMustache Release Notes
2 ========================
3
9b3ce86 @groue Link to benchmarks
authored
4 You can compare the performances of GRMustache version at https://github.com/groue/GRMustacheBenchmark.
5
299d3b1 @groue v1.12.0
authored
6 ## v1.12
7
8 - **GRMustacheTemplateDelegate protocol**
9
10 Deprecated classes:
11
12 - `GRMustacheNumberFormatterHelper`
13 - `GRMustacheDateFormatterHelper`
14
d3b5626 @groue v1.11.2
authored
15 ## v1.11.2
16
2cfb609 @groue wording
authored
17 BOOL property custom getters can be used to control boolean sections.
d3b5626 @groue v1.11.2
authored
18
5d95cad @groue v1.11.1
authored
19 ## v1.11.1
20
21 Avoid deprecation warning in GRMustache headers.
22
92c07e2 @groue v1.11.0
authored
23 ## v1.11
24
25 **API cleanup**
26
27 New GRMustacheTemplateLoader methods:
28
29 - `- (GRMustacheTemplate *)templateWithName:(NSString *)name error:(NSError **)outError;`
30 - `- (GRMustacheTemplate *)templateFromString:(NSString *)templateString error:(NSError **)outError;`
31
32 New GRMustacheTemplate methods:
33
34 - `+ (id)templateFromString:(NSString *)templateString error:(NSError **)outError;`
35 - `+ (id)templateFromString:(NSString *)templateString options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
36 - `+ (id)templateFromContentsOfFile:(NSString *)path error:(NSError **)outError;`
37 - `+ (id)templateFromContentsOfFile:(NSString *)path options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
38 - `+ (id)templateFromResource:(NSString *)name bundle:(NSBundle *)bundle error:(NSError **)outError;`
39 - `+ (id)templateFromResource:(NSString *)name bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
40 - `+ (id)templateFromResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle error:(NSError **)outError;`
41 - `+ (id)templateFromResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
42 - `+ (id)templateFromContentsOfURL:(NSURL *)url error:(NSError **)outError;`
43 - `+ (id)templateFromContentsOfURL:(NSURL *)url options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
44
45 Deprecated GRMustacheTemplateLoader methods (use `templateWithName:error:` and `templateFromString:error:` instead):
46
47 - `- (GRMustacheTemplate *)parseTemplateNamed:(NSString *)name error:(NSError **)outError;`
48 - `- (GRMustacheTemplate *)parseString:(NSString *)templateString error:(NSError **)outError;`
49
50 Deprecated GRMustacheTemplate methods (replace `parse` with `templateFrom`):
51
52 - `+ (id)parseString:(NSString *)templateString error:(NSError **)outError;`
53 - `+ (id)parseString:(NSString *)templateString options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
54 - `+ (id)parseContentsOfFile:(NSString *)path error:(NSError **)outError;`
55 - `+ (id)parseContentsOfFile:(NSString *)path options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
56 - `+ (id)parseResource:(NSString *)name bundle:(NSBundle *)bundle error:(NSError **)outError;`
57 - `+ (id)parseResource:(NSString *)name bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
58 - `+ (id)parseResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle error:(NSError **)outError;`
59 - `+ (id)parseResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
60 - `+ (id)parseContentsOfURL:(NSURL *)url error:(NSError **)outError;`
61 - `+ (id)parseContentsOfURL:(NSURL *)url options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
62
d5730e5 @groue v1.10.3
authored
63 ## v1.10.3
64
65 Upgrade GRMustache, and get deprecation warnings when you use deprecated APIs. Your code will keep on running fine, though.
66
75eae3b @groue v1.10.2
authored
67 ## v1.10.2
68
69 Performance improvements
70
745be05 @groue v1.10.1
authored
71 ## v1.10.1
72
73 Performance improvements
74
31100d3 @groue v1.10.0
authored
75 ## v1.10
76
745be05 @groue v1.10.1
authored
77 **Improved Handlebars.js support and performance improvements**
31100d3 @groue v1.10.0
authored
78
745be05 @groue v1.10.1
authored
79 Now `{{foo/bar}}` and `{{foo.bar}}` syntaxes are both supported.
31100d3 @groue v1.10.0
authored
80
8020800 @groue v1.9.0
authored
81 ## v1.9
82
3293103 @groue Introduce GRMustacheNumberFormatterHelper
authored
83 - **Better lambda encapsulation with classes conforming to the GRMustacheHelper protocol.**
84 - **Format all numbers in a section with GRMustacheNumberFormatterHelper**
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored
85 - **Format all dates in a section with GRMustacheDateFormatterHelper**
8020800 @groue v1.9.0
authored
86
87 New protocol:
88
3293103 @groue Introduce GRMustacheNumberFormatterHelper
authored
89 - `GRMustacheHelper`
90
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored
91 New classes:
3293103 @groue Introduce GRMustacheNumberFormatterHelper
authored
92
93 - `GRMustacheNumberFormatterHelper`
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored
94 - `GRMustacheDateFormatterHelper`
8020800 @groue v1.9.0
authored
95
8704042 @groue v1.8.6
authored
96 ## v1.8.6
97
98 Fixed bug in [GRMustacheTemplate renderObjects:...]
99
d209bef @groue v1.8.5
authored
100 ## v1.8.5
101
102 Added missing symbols from lib/libGRMustache1-ios3.a
103
edf6200 @groue v1.8.4
authored
104 ## v1.8.4
105
d209bef @groue v1.8.5
authored
106 Added missing symbols from lib/libGRMustache1-ios3.a and lib/libGRMustache1-ios4.a
edf6200 @groue v1.8.4
authored
107
6a23fe6 @groue v1.8.3
authored
108 ## v1.8.3
109
110 Availability fixes.
111
8abbac9 @groue v1.8.2
authored
112 ## v1.8.2
113
114 Better testing of public API thanks to availability macros.
115
b643aa1 @groue v1.8.1
authored
116 ## v1.8.1
117
118 Bug fixes
119
18dc85c @groue v1.8.0
authored
120 ## v1.8
121
8abbac9 @groue v1.8.2
authored
122 **GRMustache now supports the [Mustache specification v1.1.2](https://github.com/mustache/spec).**
123
124 New type and enum:
125
126 enum {
127 GRMustacheTemplateOptionNone = 0,
128 GRMustacheTemplateOptionMustacheSpecCompatibility = 0x01,
129 };
130
131 typedef NSUInteger GRMustacheTemplateOptions;
132
133 New GRMustache methods:
134
135 - `+ (GRMustacheTemplateOptions)defaultTemplateOptions;`
136 - `+ (void)setDefaultTemplateOptions:(GRMustacheTemplateOptions)templateOptions;`
137
138 New GRMustacheTemplate methods:
139
140 - `+ (id)parseString:(NSString *)templateString options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
141 - `+ (id)parseContentsOfURL:(NSURL *)url options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
142 - `+ (id)parseContentsOfFile:(NSString *)path options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
143 - `+ (id)parseResource:(NSString *)name bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
144 - `+ (id)parseResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
145 - `+ (NSString *)renderObject:(id)object fromString:(NSString *)templateString options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
146 - `+ (NSString *)renderObject:(id)object fromContentsOfURL:(NSURL *)url options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
147 - `+ (NSString *)renderObject:(id)object fromContentsOfFile:(NSString *)path options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
148 - `+ (NSString *)renderObject:(id)object fromResource:(NSString *)name bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
149 - `+ (NSString *)renderObject:(id)object fromResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
150
151 New GRMustacheTemplateLoader methods:
152
153 - `+ (id)templateLoaderWithBaseURL:(NSURL *)url options:(GRMustacheTemplateOptions)options;`
154 - `+ (id)templateLoaderWithBaseURL:(NSURL *)url extension:(NSString *)ext options:(GRMustacheTemplateOptions)options;`
155 - `+ (id)templateLoaderWithBaseURL:(NSURL *)url extension:(NSString *)ext encoding:(NSStringEncoding)encoding options:(GRMustacheTemplateOptions)options;`
156 - `+ (id)templateLoaderWithDirectory:(NSString *)path options:(GRMustacheTemplateOptions)options;`
157 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext options:(GRMustacheTemplateOptions)options;`
158 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding options:(GRMustacheTemplateOptions)options;`
159 - `+ (id)templateLoaderWithBundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options;`
160 - `+ (id)templateLoaderWithBundle:(NSBundle *)bundle extension:(NSString *)ext options:(GRMustacheTemplateOptions)options;`
161 - `+ (id)templateLoaderWithBundle:(NSBundle *)bundle extension:(NSString *)ext encoding:(NSStringEncoding)encoding options:(GRMustacheTemplateOptions)options;`
162
18dc85c @groue v1.8.0
authored
163
d08841f @groue v1.7.4
authored
164 ## v1.7.4
165
166 Bug fix: avoid crashing when one provides uninitialized NSError* to GRMustache.
167
8059b38 @groue v1.7.3
authored
168 ## v1.7.3
169
170 One no longer needs to add `-all_load` to the "Other Linker Flags" target option tu use GRMustache static libraries.
171
6d6e020 @groue v1.7.2
authored
172 ## v1.7.2
173
174 - Fixed [issue #6](https://github.com/groue/GRMustache/issues/6)
175 - `[GRMustache preventNSUndefinedKeyExceptionAttack]` no longer prevents the rendering of `nil`.
176
cd4de9d @groue v1.7.1
authored
177 ## v1.7.1
178
179 Added missing header file
180
e5d100a @groue v1.7.0
authored
181 ## v1.7.0
182
183 **GRMustache now ships as a static library.**
184
185 See the [Embedding](https://github.com/groue/GRMustache/wiki/Embedding) wiki page in order to see how to embed GRMustache in your project.
186
187 Besides, the NSUndefinedKeyException silencing is no longer activated by the DEBUG macro. You now have to explicitely call the `[GRMustache preventNSUndefinedKeyExceptionAttack]` method. For more details, see the [Avoid the NSUndefinedKeyException attack](https://github.com/groue/GRMustache/wiki/Avoid-the-NSUndefinedKeyException-attack) wiki page.
188
4373916 @groue v1.6.2
authored
189 ## v1.6.2
190
191 **LLVM3 compatibility**
192
f19ba84 @groue v1.6.1
authored
193 ## v1.6.1
194
195 The NSUndefinedKeyException silencing activated by the DEBUG macro applies to NSManagedObject instances (see the [Avoid the NSUndefinedKeyException attack](https://github.com/groue/GRMustache/wiki/Avoid-the-NSUndefinedKeyException-attack) wiki page).
196
6b1dbf7 @groue v1.6.0
authored
197 ## v1.6.0
198
199 **Reduced memory footprint**
200
8abbac9 @groue v1.8.2
authored
201 New GRMustacheTemplateLoader methods:
6b1dbf7 @groue v1.6.0
authored
202
203 - `+ (id)templateLoaderWithDirectory:(NSString *)path;`
204 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext;`
205 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding;`
206
8abbac9 @groue v1.8.2
authored
207 Deprecated GRMustacheTemplateLoader methods (replace `BasePath` with `Directory`):
6b1dbf7 @groue v1.6.0
authored
208
209 - `+ (id)templateLoaderWithBasePath:(NSString *)path;`
210 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext;`
211 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding;`
212
213 Bug fixes around the NSUndefinedKeyException handling when the `DEBUG` macro is set (thanks to [Mike Ash](http://www.mikeash.com/)).
214
499face @groue v1.5.2
authored
215 ## v1.5.2
216
f19ba84 @groue v1.6.1
authored
217 The `DEBUG` macro makes GRMustache raise much less NSUndefinedKeyException (see the [Avoid the NSUndefinedKeyException attack](https://github.com/groue/GRMustache/wiki/Avoid-the-NSUndefinedKeyException-attack) wiki page).
499face @groue v1.5.2
authored
218
e0a103f @groue v1.5.1
authored
219 ## v1.5.1
220
4031037 @groue RELEASE_NOTES wording
authored
221 Bug fixes
e0a103f @groue v1.5.1
authored
222
3de3613 @groue v1.5.0
authored
223 ## v1.5.0
0915e91 @groue v1.4.1
authored
224
4031037 @groue RELEASE_NOTES wording
authored
225 **API simplification**
226
c5761e8 @groue RELEASE_NOTES wording
authored
227 New GRMustacheTemplate method:
228
229 - `- (NSString *)renderObjects:(id)object, ...;`
230
231 New GRMustacheSection method:
232
233 - `- (NSString *)renderObjects:(id)object, ...;`
234
235 New class:
236
237 - `GRMustacheBlockHelper`
238
239 Deprecated class (use `id` instead when refering to a context, and use `renderObjects:` methods instead of instanciating one):
240
241 - `GRMustacheContext`
242
243 Deprecated function (use GRMustacheBlockHelper instead):
244
245 - `id GRMustacheLambdaBlockMake(NSString *(^block)(GRMustacheSection*, GRMustacheContext*));`
0915e91 @groue v1.4.1
authored
246
a1f2cf1 @groue v1.4.0
authored
247 ## v1.4.0
248
4031037 @groue RELEASE_NOTES wording
authored
249 **iOS 3.0 support**
c5761e8 @groue RELEASE_NOTES wording
authored
250
251 New `GRMustacheTemplate` methods:
252
253 - `+ (NSString *)renderObject:(id)object fromContentsOfFile:(NSString *)path error:(NSError **)outError;`
254 - `+ (id)parseContentsOfFile:(NSString *)path error:(NSError **)outError;`
255
8abbac9 @groue v1.8.2
authored
256 New `GRMustacheTemplateLoader` methods:
c5761e8 @groue RELEASE_NOTES wording
authored
257
258 - `+ (id)templateLoaderWithBasePath:(NSString *)path;`
259 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext;`
260 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding;`
a1f2cf1 @groue v1.4.0
authored
261
de489d5 @groue v1.3.3
authored
262 ## v1.3.3
263
4031037 @groue RELEASE_NOTES wording
authored
264 Bug fixes
de489d5 @groue v1.3.3
authored
265
be39647 @groue v1.3.2
authored
266 ## v1.3.2
267
4031037 @groue RELEASE_NOTES wording
authored
268 Bug fixes
be39647 @groue v1.3.2
authored
269
7f1e927 @groue v1.3.1
authored
270 ## v1.3.1
271
4031037 @groue RELEASE_NOTES wording
authored
272 Bug fixes
7f1e927 @groue v1.3.1
authored
273
b03eb3c @groue v1.3.0
authored
274 ## v1.3.0
275
4031037 @groue RELEASE_NOTES wording
authored
276 **Block-less API for helpers.**
b03eb3c @groue v1.3.0
authored
277
c5761e8 @groue RELEASE_NOTES wording
authored
278 New classes:
279
280 - `GRMustacheContext`
281 - `GRMustacheSection`
b03eb3c @groue v1.3.0
authored
282
c5761e8 @groue RELEASE_NOTES wording
authored
283 New functions:
a368aaf @groue v1.2.1
authored
284
c5761e8 @groue RELEASE_NOTES wording
authored
285 - `id GRMustacheLambdaBlockMake(NSString *(^block)(GRMustacheSection*, GRMustacheContext*));`
286
287 Deprecated functions (use GRMustacheLambdaBlockMake instead):
288
289 - `GRMustacheLambda GRMustacheLambdaMake(NSString *(^block)(NSString *(^)(id object), id, NSString *));`
a368aaf @groue v1.2.1
authored
290
c88c5c6 @groue v1.2.0
authored
291 ## v1.2.0
292
4031037 @groue RELEASE_NOTES wording
authored
293 **iOS 4.0 support**
c5761e8 @groue RELEASE_NOTES wording
authored
294
295 Deprecated class (use `[NSNumber numberWithBool:YES]` instead of `[GRYes yes]`):
296
297 - `GRYes`
298
299 Deprecated class (use `[NSNumber numberWithBool:NO]` instead of `[GRNo no]`):
300
301 - `GRNo`
c88c5c6 @groue v1.2.0
authored
302
16c756d @groue v1.1.6
authored
303 ## v1.1.6
304
c5761e8 @groue RELEASE_NOTES wording
authored
305 GRMustacheTemplateLoader subclasses can now rely on an immutable `extension` property.
16c756d @groue v1.1.6
authored
306
0805e50 @groue v1.1.5
authored
307 ## v1.1.5
308
4031037 @groue RELEASE_NOTES wording
authored
309 Bug fixes
0805e50 @groue v1.1.5
authored
310
8e257be @groue v1.1.4
authored
311 ## v1.1.4
312
4031037 @groue RELEASE_NOTES wording
authored
313 Bug fixes
8e257be @groue v1.1.4
authored
314
3f89a0b @groue v1.1.3
authored
315 ## v1.1.3
316
4031037 @groue RELEASE_NOTES wording
authored
317 **Rendering performance improvement**
3f89a0b @groue v1.1.3
authored
318
8dbe23f @groue v1.1.2
authored
319 ## v1.1.2
320
4031037 @groue RELEASE_NOTES wording
authored
321 **Template compiling performance improvement**
8dbe23f @groue v1.1.2
authored
322
161c96c @groue v1.1.1
authored
323 ## v1.1.1
324
4031037 @groue RELEASE_NOTES wording
authored
325 Bug fixes
161c96c @groue v1.1.1
authored
326
6ede60b @groue v1.1.0
authored
327 ## v1.1.0
0219c22 @groue v1.0.0
authored
328
c5761e8 @groue RELEASE_NOTES wording
authored
329 New methods:
330
331 - `[GRYes yes]` responds to `boolValue`
332 - `[GRNo no]` responds to `boolValue`
6ede60b @groue v1.1.0
authored
333
334 ## v1.0.0
335
4031037 @groue RELEASE_NOTES wording
authored
336 **First versioned release**
Something went wrong with that request. Please try again.