From 41bf2635603ca9e27e33a017923d2813f407d0c3 Mon Sep 17 00:00:00 2001 From: Giuseppe Criscione Date: Mon, 13 May 2019 13:29:18 +0200 Subject: [PATCH] Release 0.12.0 --- CHANGELOG.md | 42 ++++++++++++++++++++++++++++++++++++++ README.md | 2 +- formwork/Core/Formwork.php | 2 +- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa80b27a..1ae7604c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,47 @@ # Changelog +## [0.12.0](https://github.com/getformwork/formwork/releases/tag/0.12.0) (2019-05-13) + +**Enhancements** + +- **Add metadata support** +- **Add support for helpers to** `Template` +- **Add the possibility to set HTTP headers in pages frontmatter** +- **Add the possibility to set a canonical route for pages** +- **Add the possibility to redirect to browser preferred language** +- **Add Metadata and Aliases fields to site options** +- Add `Metadatum` class +- Add `Metadata` class +- Move template-related classes to `Formwork\Template` namespace +- Add `TemplateHelpers` class +- Add `Site::template()` +- Use `Template::path()` to get path from `Site::template()` +- Add `Arr` class +- Support dot notation in data getters and pages +- Extract `AssociativeCollection` class +- Add `Field::formName()` +- Use `Field::formName()` in field views +- Avoid using raw POST data from HTTP requests +- Remove `HTTPRequest::postDataFromRaw()` +- Add placeholder support for text-based fields +- Add placeholder support for `tags` field +- Use underscores in frontmatter keys for consistency +- Use site defaults when updating options +- Add `array` field type +- Add `robots` meta tag to Admin views +- Add `Router::rewriteRoute()` +- Add `Router::rewrite()` to rewrite current route with new params +- Add canonical route to index page +- Rename `languages` option to `languages.available` +- Add `HTTPNegotiation` class + +**Bug fixes** + +- Fix `Layout::scheme()` throwing a `RuntimeException` +- Fix `Validator::validateTags()` not resetting keys after filtering +- Fix `Field::isEmpty()` evaluating fields with `false` value empty +- Revert instance check on `$resource` in `Formwork::run()` from [7c63eba](https://github.com/getformwork/formwork/commit/7c63eba) + ## [0.11.2](https://github.com/getformwork/formwork/releases/tag/0.11.2) (2019-05-04) **Enhancements** diff --git a/README.md b/README.md index 9eac9575..82948595 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Formwork is a flat file-based Content Management System (CMS) to make and manage simple sites. -Latest version: [**0.11.2**](https://github.com/getformwork/formwork/releases/latest) | [**Changelog**](CHANGELOG.md) +Latest version: [**0.12.0**](https://github.com/getformwork/formwork/releases/latest) | [**Changelog**](CHANGELOG.md) ## Features - ⚡️ Lightweight diff --git a/formwork/Core/Formwork.php b/formwork/Core/Formwork.php index 7472a965..0302286a 100755 --- a/formwork/Core/Formwork.php +++ b/formwork/Core/Formwork.php @@ -21,7 +21,7 @@ class Formwork * * @var string */ - const VERSION = '0.11.2'; + const VERSION = '0.12.0'; /** * Formwork instance