Skip to content

Commit

Permalink
Provide migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed May 17, 2017
1 parent 53b90b7 commit be37d76
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Documentation/MigrationGuide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## StencilSwiftKit 2.0 (SwiftGen 5.0) ##

### For template writers:

* We've removed our `join` array filter as Stencil provides it's own version that accepts a parameter. If you were using StencilSwiftKit's version, replace instances of:
```{{ myArray|join }}```
with:
```{{ myArray|join:", " }}```
* We've refactored our `snakeToCamelCase` to accept arguments, thus removing the need for `snakeToCamelCaseNoPrefix`. If you were using the latter, replace instances of:
```{{ myValue|snakeToCamelCaseNoPrefix }}```
with:
```{{ myValue|snakeToCamelCase:true }}```

### For developers:

We've removed the following deprecated `typealias`es:

* `FilterError`: use `Filters.Error` instead.
* `ParametersError`: use `Parameters.Error` instead.
* `NumFilters`: use `Filters.Numbers` instead.
* `StringFilters`: use `Filters.Strings` instead.

0 comments on commit be37d76

Please sign in to comment.