Changelog History
Page 2
-
v0.11.0 Changes
๐ Released on October 14, 2015
๐ Fixed
- Compatibility with iOS7 (#13)
- GRMustache.swift no longer messes with AnyObject subscript operator (#12)
๐ฅ Breaking Changes
Error
has been renamedMustacheError
.Error.Type
has been renamedMustacheError.Kind
- ๐ Subscript operators on
MustacheBox
andContext
have been removed due to a weird Swift bug. Use themustacheBoxForKey()
function instead.
-
v0.10.0 Changes
๐ Released on September 10, 2015
๐ New
StandardLibrary.Logger
is there to help debugging templates.
๐ฅ Breaking changes
Swift 2.
๐ Collections no longer expose Objective-C-compatible keys to templates:
{{ array.firstObject }}
,{{ array.lastObject }}
,{{ set.anyObject }}
no longer render anything. Focusing on Swift standard library, the only supported keys are nowfirst
,count
, andlast
(the latter being undefined for sets).Context.BoxForMustacheExpression
has been renamedContext.mustacheBoxForExpression
๐
BoxAnyObject()
is removed. You must now explicit castAnyObject
to a boxable type that you can box withBox()
.Box(value:boolValue:keyedSubscript:filter:render:willRender:didRender:)
has been replaced by a MustacheBox initializer with the same arguments.
-
v0.9.4 Changes
๐ Released on August 19, 2015
๐ Fixed
- A memory leak
- ๐ Reduced deployment targets to iOS 8.0 and OSX 10.9 (#11)
-
v0.9.3 Changes
๐ Released on June 9, 2015
๐ฅ Breaking changes
๐ There is no longer any automatic conversion between Swift and Objective-C numeric types beyond conversions provided by the Swift language itself. For example, a filter of
Int
no longer acceptsDouble
inputs. TheMustacheBox.intValue
,uintValue
,doubleValue
properties that performed those conversions are removed.๐ High-level APIs that would build filters of non-optional values are removed. It is now the responsability of the library user to handle values that are missing or of the wrong type.
-
v0.9.2 Changes
๐ Released on June 7, 2015
๐ Fixed
- โ
The
Lambda
functions pass all mustache/spec tests for "Mustache lambdas".
๐ New
๐ง
TagDelimiterPair
is a pair of tag delimiters such as("{{","}}")
. It is the type of the propertiesConfiguration.tagDelimiterPair
andTag.tagDelimiterPair
.The
Template.contentType
property exposes the content type (Text or HTML) of a template.๐ The Swift
Set
type now has explicit support throughfunc Box<T: MustacheBoxable>(set: Set<T>?) -> MustacheBox
.
๐ฅ Breaking changes
๐
Template(string:error:)
used to load{{>partial}}
tags from resources in the main bundle. It is no longer the case, and it returns aGRMustacheErrorDomain
error of codeGRMustacheErrorCodeTemplateNotFound
if such partial tag is found. To parse a template string that contain partial tags that should be loaded from the main bundle resources, store this string as a resource and loadTemplate(named:...)
, or use an explicitTemplateRepository(bundle: NSBundle.mainBundle())
.๐ง
Configuration.tagStartDelimiter
andConfiguration.tagEndDelimiter
have been replaced byConfiguration.tagDelimiterPair
.Tag.renderInnerContent
has been renamedTag.render
.Mustache-specific errors are now of type
Mustache.Error
.
- โ
The