Merge pull request #327 from stencilproject/release/0.15.0

Release 0.15.0
This commit is contained in:
David Jennes
2022-07-30 00:23:04 +02:00
committed by GitHub
6 changed files with 22 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
## Master ## 0.15.0
### Breaking ### Breaking
@@ -8,16 +8,6 @@
### Enhancements ### Enhancements
- Made the `tokens` property on a `Template` public.
[Stefanomondino](https://github.com/stefanomondino)
[#292](https://github.com/stencilproject/Stencil/pull/292)
- Made the `Template.render(_:)` method (that accepts a `Context`) public.
[David Jennes](https://github.com/djbe)
[#322](https://github.com/stencilproject/Stencil/pull/322)
- Enable dynamic member lookup using a new `DynamicMemberLookup` protocol. Conform your own types to this protocol to support dynamic member from with contexts.
[Ilya Puchka](https://github.com/ilyapuchka)
[#219](https://github.com/stencilproject/Stencil/issues/219)
[#246](https://github.com/stencilproject/Stencil/pull/246)
- Added support for trimming whitespace around blocks with Jinja2 whitespace control symbols. eg `{%- if value +%}`. - Added support for trimming whitespace around blocks with Jinja2 whitespace control symbols. eg `{%- if value +%}`.
[Miguel Bejar](https://github.com/bejar37) [Miguel Bejar](https://github.com/bejar37)
[Yonas Kolb](https://github.com/yonaskolb) [Yonas Kolb](https://github.com/yonaskolb)
@@ -41,14 +31,14 @@
[David Jennes](https://github.com/djbe) [David Jennes](https://github.com/djbe)
[#164](https://github.com/stencilproject/Stencil/pull/164) [#164](https://github.com/stencilproject/Stencil/pull/164)
[#325](https://github.com/stencilproject/Stencil/pull/325) [#325](https://github.com/stencilproject/Stencil/pull/325)
- Enable dynamic member lookup using a new `DynamicMemberLookup` marker protocol. Conform your own types to this protocol to support dynamic member from with contexts.
[Ilya Puchka](https://github.com/ilyapuchka)
[#219](https://github.com/stencilproject/Stencil/issues/219)
[#246](https://github.com/stencilproject/Stencil/pull/246)
- Allow providing lazily evaluated context data, using the `LazyValueWrapper` structure. - Allow providing lazily evaluated context data, using the `LazyValueWrapper` structure.
[David Jennes](https://github.com/djbe) [David Jennes](https://github.com/djbe)
[#324](https://github.com/stencilproject/Stencil/pull/324) [#324](https://github.com/stencilproject/Stencil/pull/324)
### Deprecations
_None_
### Bug Fixes ### Bug Fixes
- Fixed using `{{ block.super }}` inside nodes other than `block`. - Fixed using `{{ block.super }}` inside nodes other than `block`.
@@ -61,6 +51,12 @@ _None_
- Updated internal maintenance scripts, and switched to GitHub actions. - Updated internal maintenance scripts, and switched to GitHub actions.
[David Jennes](https://github.com/djbe) [David Jennes](https://github.com/djbe)
[#321](https://github.com/stencilproject/Stencil/pull/321) [#321](https://github.com/stencilproject/Stencil/pull/321)
- Made the `tokens` property on a `Template` public.
[Stefanomondino](https://github.com/stefanomondino)
[#292](https://github.com/stencilproject/Stencil/pull/292)
- Made the `Template.render(_:)` method (that accepts a `Context`) public.
[David Jennes](https://github.com/djbe)
[#322](https://github.com/stencilproject/Stencil/pull/322)
## 0.14.2 ## 0.14.2

View File

@@ -32,7 +32,9 @@ namespace :files do
/^version = .*/ => %Q(version = '#{version}'), /^version = .*/ => %Q(version = '#{version}'),
/^release = .*/ => %Q(release = '#{version}') /^release = .*/ => %Q(release = '#{version}')
) )
docs_package = Utils.first_match_in_file('docs/installation.rst', /\.package\(url: .+ from: "(.+)"/, 1)
replace("docs/installation.rst", replace("docs/installation.rst",
/\.package\(url: .+, from: "(.+)"/ => %Q(.package\(url: "https://github.com/stencilproject/Stencil.git", from: "#{version}"),
/pod 'Stencil', '.*'/ => %Q(pod 'Stencil', '~> #{version}'), /pod 'Stencil', '.*'/ => %Q(pod 'Stencil', '~> #{version}'),
/github "stencilproject\/Stencil" ~> .*/ => %Q(github "stencilproject/Stencil" ~> #{version}) /github "stencilproject\/Stencil" ~> .*/ => %Q(github "stencilproject/Stencil" ~> #{version})
) )

View File

@@ -1,6 +1,6 @@
{ {
"name": "Stencil", "name": "Stencil",
"version": "0.14.2", "version": "0.15.0",
"summary": "Stencil is a simple and powerful template language for Swift.", "summary": "Stencil is a simple and powerful template language for Swift.",
"homepage": "https://stencil.fuller.li", "homepage": "https://stencil.fuller.li",
"license": { "license": {
@@ -13,7 +13,7 @@
"social_media_url": "https://twitter.com/kylefuller", "social_media_url": "https://twitter.com/kylefuller",
"source": { "source": {
"git": "https://github.com/stencilproject/Stencil.git", "git": "https://github.com/stencilproject/Stencil.git",
"tag": "0.14.2" "tag": "0.15.0"
}, },
"source_files": [ "source_files": [
"Sources/Stencil/*.swift" "Sources/Stencil/*.swift"

View File

@@ -58,9 +58,9 @@ author = 'Kyle Fuller'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '0.14.2' version = '0.15.0'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.14.2' release = '0.15.0'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

View File

@@ -14,7 +14,7 @@ dependencies inside ``Package.swift``.
let package = Package( let package = Package(
name: "MyApplication", name: "MyApplication",
dependencies: [ dependencies: [
.package(url: "https://github.com/stencilproject/Stencil.git", from: "0.14.2"), .package(url: "https://github.com/stencilproject/Stencil.git", from: "0.15.0"),
] ]
) )
@@ -26,7 +26,7 @@ If you're using CocoaPods, you can add Stencil to your ``Podfile`` and then run
.. code-block:: ruby .. code-block:: ruby
pod 'Stencil', '~> 0.14.2' pod 'Stencil', '~> 0.15.0'
Carthage Carthage
-------- --------
@@ -37,7 +37,7 @@ Carthage
.. code-block:: text .. code-block:: text
github "stencilproject/Stencil" ~> 0.14.2 github "stencilproject/Stencil" ~> 0.15.0
2) Checkout your dependencies, generate the Stencil Xcode project, and then use Carthage to build Stencil: 2) Checkout your dependencies, generate the Stencil Xcode project, and then use Carthage to build Stencil:

View File

@@ -13,6 +13,8 @@ namespace :release do
task :check_versions do task :check_versions do
results = [] results = []
Utils.table_header('Check', 'Status')
# Check if bundler is installed first, as we'll need it for the cocoapods task (and we prefer to fail early) # Check if bundler is installed first, as we'll need it for the cocoapods task (and we prefer to fail early)
`which bundler` `which bundler`
results << Utils.table_result( results << Utils.table_result(