Skip to content

Commit 1043b71

Browse files
committed
GravCMS 1.4.4 and plugin updates
1 parent f2bb48c commit 1043b71

File tree

336 files changed

+12634
-4247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+12634
-4247
lines changed

CHANGELOG.md

Lines changed: 163 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,162 @@
1+
# v1.4.1
2+
## 03/11/2018
3+
4+
1. [](#bugfix)
5+
* Fixed session timing out because of session cookie was not being sent
6+
7+
# v1.4.0
8+
## 03/09/2018
9+
10+
1. [](#new)
11+
* Added `Grav\Framework\Uri` classes extending PSR-7 `HTTP message UriInterface` implementation
12+
* Added `Grav\Framework\Route` classes to allow route/link manipulation
13+
* Added `$grav['uri]->getCurrentUri()` method to get `Grav\Framework\Uri\Uri` instance for the current URL
14+
* Added `$grav['uri]->getCurrentRoute()` method to get `Grav\Framework\Route\Route` instance for the current URL
15+
* Added ability to have `php` version dependencies in GPM assets
16+
* Added new `{% switch %}` twig tag for more elegant if statements
17+
* Added new `{% markdown %}` twig tag
18+
* Added **Route Overrides** to the default page blueprint
19+
* Added new `Collection::toExtendedArray()` method that's particularly useful for Json output of data
20+
* Added new `|yaml_encode` and `|yaml_decode` Twig filter to convert to and from YAML
21+
* Added new `read_file()` Twig function to allow you to load and display a file in Twig (Supports streams and regular paths)
22+
* Added a new `Medium::exists()` method to check for file existence
23+
* Moved Twig `urlFunc()` to `Utils::url()` as its so darn handy
24+
* Transferred overall copyright from RocketTheme, LLC, to Trilby Media LLC
25+
* Added `theme_var`, `header_var` and `body_class` Twig functions for themes
26+
* Added `Grav\Framework\Cache` classes providing PSR-16 `Simple Cache` implementation
27+
* Added `Grav\Framework\ContentBlock` classes for nested HTML blocks with CSS/JS assets
28+
* Added `Grav\Framework\Object` classes for creating collections of objects
29+
* Added `|nicenumber` Twig filter
30+
* Added `{% try %} ... {% catch %} Error: {{ e.message }} {% endcatch %}` tag to allow basic exception handling inside Twig
31+
* Added `{% script %}` and `{% style %}` tags for Twig templates
32+
* Deprecated GravTrait
33+
1. [](#improved)
34+
* Improved `Session` initialization
35+
* Added ability to set a `theme_var()` option in page frontmatter
36+
* Force clearing PHP `clearstatcache` and `opcache-reset` on `Cache::clear()`
37+
* Better `Page.collection()` filtering support including ability to have non-published pages in collections
38+
* Stopped Chrome from auto-completing admin user profile form [#1847](https://github.com/getgrav/grav/issues/1847)
39+
* Support for empty `switch` field like a `checkbox`
40+
* Made `modular` blueprint more flexible
41+
* Code optimizations to `Utils` class [#1830](https://github.com/getgrav/grav/pull/1830)
42+
* Objects: Add protected function `getElement()` to get serialized value for a single property
43+
* `ObjectPropertyTrait`: Added protected functions `isPropertyLoaded()`, `offsetLoad()`, `offsetPrepare()` and `offsetSerialize()`
44+
* `Grav\Framework\Cache`: Allow unlimited TTL
45+
* Optimizations & refactoring to the test suite [#1779](https://github.com/getgrav/grav/pull/1779)
46+
* Slight modification of Whoops error colors
47+
* Added new configuration option `system.session.initialize` to delay session initialization if needed by a plugin
48+
* Vendor library updated to latest
49+
* Updated vendor libraries to latest versions
50+
* Removed constructor from `ObjectInterface`
51+
* Make it possible to include debug bar also into non-HTML responses
52+
* Updated built-in JQuery to latest 3.3.1
53+
1. [](#bugfix)
54+
* Fixed issue with image alt tag always getting empted out unless set in markdown
55+
* Fixed issue with remote PHP version determination for Grav updates [#1883](https://github.com/getgrav/grav/issues/1883)
56+
* Fixed issue with _illegal scheme offset_ in `Uri::convertUrl()` [page-inject#8](https://github.com/getgrav/grav-plugin-page-inject/issues/8)
57+
* Properly validate YAML blueprint fields so admin can save as proper YAML now [addresses many issues]
58+
* Fixed OpenGraph metatags so only Twitter uses `name=`, and all others use `property=` [#1849](https://github.com/getgrav/grav/issues/1849)
59+
* Fixed an issue with `evaluate()` and `evaluate_twig()` Twig functions that throws invalid template error
60+
* Fixed issue with `|sort_by_key` twig filter if the input was null or not an array
61+
* Date ordering should always be numeric [#1810](https://github.com/getgrav/grav/issues/1810)
62+
* Fix for base paths containing special characters [#1799](https://github.com/getgrav/grav/issues/1799)
63+
* Fix for session cookies in paths containing special characters
64+
* Fix for `vundefined` error for version numbers in GPM [form#222](https://github.com/getgrav/grav-plugin-form/issues/222)
65+
* Fixed `BadMethodCallException` thrown in GPM updates [#1784](https://github.com/getgrav/grav/issues/1784)
66+
* NOTE: Parsedown security release now escapes `&` to `&` in Markdown links
67+
68+
# v1.3.10
69+
## 12/06/2017
70+
71+
1. [](#bugfix)
72+
* Reverted GPM Local pull request as it broken admin [#1742](https://github.com/getgrav/grav/issues/1742)
73+
74+
# v1.3.9
75+
## 12/05/2017
76+
77+
1. [](#new)
78+
* Added new core Twig templates for `partials/metadata.html.twig` and `partials/messages.html.twig`
79+
* Added ability to work with GPM locally [#1742](https://github.com/getgrav/grav/issues/1742)
80+
* Added new HTML5 audio controls [#1756](https://github.com/getgrav/grav/issues/1756)
81+
* Added `Medium::copy()` method to create a copy of a medium object
82+
* Added new `force_lowercase_urls` functionality on routes and slugs
83+
* Added new `item-list` filter type to remove empty items
84+
* Added new `setFlashCookieObject()` and `getFlashCookieObject()` methods to `Session` object
85+
* Added new `intl_enabled` option to disable PHP intl module collation when not needed
86+
1. [](#bugfix)
87+
* Fixed an issue with checkbox field validation [form#216](https://github.com/getgrav/grav-plugin-form/issues/216)
88+
* Fixed issue with multibyte Markdown link URLs [#1749](https://github.com/getgrav/grav/issues/1749)
89+
* Fixed issue with multibyte folder names [#1751](https://github.com/getgrav/grav/issues/1751)
90+
* Fixed several issues related to `system.custom_base_url` that were broken [#1736](https://github.com/getgrav/grav/issues/1736)
91+
* Dynamically added pages via `Pages::addPage()` were not firing `onPageProcessed()` event causing forms not to be processed
92+
* Fixed `Page::active()` and `Page::activeChild()` to work with UTF-8 characters in the URL [#1727](https://github.com/getgrav/grav/issues/1727)
93+
* Fixed typo in `modular.yaml` causing media to be ignored [#1725](https://github.com/getgrav/grav/issues/1725)
94+
* Reverted `case_insensitive_urls` option as it was causing issues with taxonomy [#1733](https://github.com/getgrav/grav/pull/1733)
95+
* Removed an extra `/` in `CompileFile.php` [#1693](https://github.com/getgrav/grav/pull/1693)
96+
* Uri::Encode user and password to prevent issues in browsers
97+
* Fixed "Invalid AJAX response" When using Built-in PHP Webserver in Windows [#1258](https://github.com/getgrav/grav-plugin-admin/issues/1258)
98+
* Remove support for `config.user`, it was broken and bad practise
99+
* Make sure that `clean cache` uses valid path [#1745](https://github.com/getgrav/grav/pull/1745)
100+
* Fixed token creation issue with `Uri` params like `/id:3`
101+
* Fixed CSS Pipeline failing with Google remote fonts if the file was minified [#1261](https://github.com/getgrav/grav-plugin-admin/issues/1261)
102+
* Forced `field.multiple: true` to allow use of min/max options in `checkboxes.validate`
103+
104+
# v1.3.8
105+
## 10/26/2017
106+
107+
1. [](#new)
108+
* Added Page `media_order` capability to manually order page media via a page header
109+
1. [](#bugfix)
110+
* Fixed GPM update issue with filtered slugs [#1711](https://github.com/getgrav/grav/issues/1711)
111+
* Fixed issue with missing image file not throwing 404 properly [#1713](https://github.com/getgrav/grav/issues/1713)
112+
113+
# v1.3.7
114+
## 10/18/2017
115+
116+
1. [](#bugfix)
117+
* Regression Uri: `base_url_absolute` always has the port number [#1690](https://github.com/getgrav/grav-plugin-admin/issues/1690)
118+
* Uri: Prefer using REQUEST_SCHEME instead of HTTPS [#1698](https://github.com/getgrav/grav-plugin-admin/issues/1698)
119+
* Fixed routing paths with urlencoded spaces and non-latin letters [#1688](https://github.com/getgrav/grav-plugin-admin/issues/1688)
120+
121+
# v1.3.6
122+
## 10/12/2017
123+
124+
1. [](#bugfix)
125+
* Regression: Ajax error in Nginx [admin#1244](https://github.com/getgrav/grav-plugin-admin/issues/1244)
126+
* Remove the `_url=$uri` portion of the the Nginx `try_files` command [admin#1244](https://github.com/getgrav/grav-plugin-admin/issues/1244)
127+
128+
# v1.3.5
129+
## 10/11/2017
130+
131+
1. [](#improved)
132+
* Refactored `URI` class with numerous bug fixes, and optimizations
133+
* Override `system.media.upload_limit` with PHP's `post_max_size` or `upload_max_filesize`
134+
* Updated `bin/grav clean` command to remove unnecessary vendor files (save some bytes)
135+
* Added a `http_status_code` Twig function to allow setting HTTP status codes from Twig directly.
136+
* Deter XSS attacks via URI path/uri methods (credit:newbthenewbd)
137+
* Added support for `$uri->toArray()` and `(string)$uri`
138+
* Added support for `type` on `Asstes::addInlineJs()` [#1683](https://github.com/getgrav/grav/pull/1683)
139+
1. [](#bugfix)
140+
* Fixed method signature error with `GPM\InstallCommand::processPackage()` [#1682](https://github.com/getgrav/grav/pull/1682)
141+
142+
# v1.3.4
143+
## 09/29/2017
144+
145+
1. [](#new)
146+
* Added filter support for Page collections (routable/visible/type/access/etc.)
147+
1. [](#improved)
148+
* Implemented `Composer\CaBundle` for SSL Certs [#1241](https://github.com/getgrav/grav/issues/1241)
149+
* Refactored the Assets sorting logic
150+
* Improved language overrides to merge only 'extra' translations [#1514](https://github.com/getgrav/grav/issues/1514)
151+
* Improved support for Assets with query strings [#1451](https://github.com/getgrav/grav/issues/1451)
152+
* Twig extension cleanup
153+
1. [](#bugfix)
154+
* Fixed an issue where fallback was not supporting dynamic page generation
155+
* Fixed issue with Image query string not being fully URL encoded [#1622](https://github.com/getgrav/grav/issues/1622)
156+
* Fixed `Page::summary()` when using delimiter and multibyte UTF8 Characters [#1644](https://github.com/getgrav/grav/issues/1644)
157+
* Fixed missing `.json` thumbnail throwing error when adding media [grav-plugin-admin#1156](https://github.com/getgrav/grav-plugin-admin/issues/1156)
158+
* Fixed insecure session cookie initialization [#1656](https://github.com/getgrav/grav/pull/1656)
159+
1160
# v1.3.3
2161
## 09/07/2017
3162

@@ -19,7 +178,7 @@
19178
* Updated vendor libraries
20179
* Updated `travis.yml` to add support for PHP 7.1 as well as 7.0.21 for test suite
21180
1. [](#bugfix)
22-
* Fixed UTF8 2 character support in `Page::summary()` [#1554](https://github.com/getgrav/grav/issues/1554)
181+
* Fixed UTF8 multibyte UTF8 character support in `Page::summary()` [#1554](https://github.com/getgrav/grav/issues/1554)
23182

24183
# v1.3.2
25184
## 08/16/2017
@@ -30,12 +189,12 @@
30189
* Added new `onTwigLoader()` event to enable utilization of loader methods
31190
* Added new `Twig::addPath()` and `Twig::prependPath()` methods to wrap loader methods and support namespacing [#1604](https://github.com/getgrav/grav/issues/1604)
32191
* Added new `array_key_exists()` Twig function wrapper
33-
* Added a new `Collection::intersect()` method [#1605](github.com/getgrav/grav/issues/1605)
192+
* Added a new `Collection::intersect()` method [#1605](https://github.com/getgrav/grav/issues/1605)
34193
1. [](#bugfix)
35-
* Allow `session.timetout` field to be set to `0` via blueprints [#1598](https://github.com/getgrav/grav/issues/1598)
194+
* Allow `session.timeout` field to be set to `0` via blueprints [#1598](https://github.com/getgrav/grav/issues/1598)
36195
* Fixed `Data::exists()` and `Data::raw()` functions breaking if `Data::file()` hasn't been called with non-null value
37196
* Fixed parent theme auto-loading in child themes of Gantry 5
38-
197+
39198
# v1.3.1
40199
## 07/19/2017
41200

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ patches and features.
1212

1313
## Grav, Plugins, Themes and Skeletons
1414

15-
Grav is a large open source projectit's made up of over 100 repositories. When you initially consider contributing to Grav, you might be unsure about which of those 200 repositories implements the functionality you want to change or report a bug for.
15+
Grav is a large open source projectit's made up of over 100 repositories. When you initially consider contributing to Grav, you might be unsure about which of those 200 repositories implements the functionality you want to change or report a bug for.
1616

1717
[https://github.com/getgrav/grav](https://github.com/getgrav/grav) is the main Grav repository. The core of Grav is provided by this repo.
1818

@@ -60,20 +60,20 @@ Guidelines for bug reports:
6060
A good bug report shouldn't leave others needing to chase you up for more
6161
information. Please try to be as detailed as possible in your report.
6262

63-
What is your environment? Is it localhost, OSX, Linux, on a remote server? Same happening locally and or the server, or just locally or just on Linux?
63+
- What is your environment? Is it localhost, OSX, Linux, on a remote server? Same happening locally and or the server, or just locally or just on Linux?
6464

65-
What steps will reproduce the issue? What browser(s) and OS experience the problem?
65+
- What steps will reproduce the issue? What browser(s) and OS experience the problem?
6666

67-
What would you expect to be the outcome?
67+
- What would you expect to be the outcome?
6868

69-
Did the problem start happening recently (e.g. after updating to a new version of Grav) or was this always a problem?
69+
- Did the problem start happening recently (e.g. after updating to a new version of Grav) or was this always a problem?
7070

71-
If the problem started happening recently, can you reproduce the problem in an older version of Grav? What's the most recent version in which the problem doesn't happen? You can download older versions of Grav from the releases page on Github.
71+
- If the problem started happening recently, can you reproduce the problem in an older version of Grav? What's the most recent version in which the problem doesn't happen? You can download older versions of Grav from the releases page on Github.
7272

73-
Can you reliably reproduce the issue? If not, provide details about how often the problem happens and under which conditions it normally happens.
73+
- Can you reliably reproduce the issue? If not, provide details about how often the problem happens and under which conditions it normally happens.
7474

7575

76-
All these details will help people to fix any potential bugs.
76+
All these details will help contributors to fix any potential bugs.
7777

7878
Important: [include Code Samples in triple backticks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks) so that Github will provide a proper indentation. [Add the language name after the backticks](https://help.github.com/articles/github-flavored-markdown/#syntax-highlighting) to add syntax highlighting to the code snippets.
7979

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 Grav
3+
Copyright (c) 2018 Grav
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $ bin/gpm update
8686
We appreciate any contribution to Grav, whether it is related to bugs, grammar, or simply a suggestion or improvement! Please refer to the [Contributing guide](CONTRIBUTING.md) for more guidance on this topic.
8787

8888
## Security issues
89-
If you discover a possible security issue related to Grav or one of its plugins, please send an email to the core team at [email protected] and we'll address it as soon as possible.
89+
If you discover a possible security issue related to Grav or one of its plugins, please email the core team at [email protected] and we'll address it as soon as possible.
9090

9191
# Getting Started
9292

@@ -101,9 +101,11 @@ If you discover a possible security issue related to Grav or one of its plugins,
101101

102102
* Have a look at our [Basic Tutorial](https://learn.getgrav.org/basics/basic-tutorial)
103103
* Dive into more [advanced](https://learn.getgrav.org/advanced) functions
104+
* Learn about the [Grav CLI](https://learn.getgrav.org/cli-console/grav-cli)
105+
* Review examples in the [Grav Cookbook](https://learn.getgrav.org/cookbook)
104106

105107
# Backers
106-
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/grav#backer)]
108+
Support Grav with a monthly donation to help us continue development. [[Become a backer](https://opencollective.com/grav#backer)]
107109

108110
<a href="https://opencollective.com/grav/backer/0/website" target="_blank"><img src="https://opencollective.com/grav/backer/0/avatar.svg"></a>
109111
<a href="https://opencollective.com/grav/backer/1/website" target="_blank"><img src="https://opencollective.com/grav/backer/1/avatar.svg"></a>

composer.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"homepage": "http://getgrav.org",
77
"license": "MIT",
88
"require": {
9+
"roave/security-advisories": "dev-master",
910
"php": ">=5.5.9",
1011
"twig/twig": "~1.24",
1112
"erusev/parsedown": "~1.6",
@@ -15,29 +16,43 @@
1516
"symfony/event-dispatcher": "~2.8",
1617
"symfony/var-dumper": "~2.8",
1718
"symfony/polyfill-iconv": "~1.0",
18-
"doctrine/cache": "1.6.*",
19+
"doctrine/cache": "^1.6",
1920
"doctrine/collections": "1.3",
21+
"psr/simple-cache": "^1.0",
2022
"filp/whoops": "~2.0",
2123
"matthiasmullie/minify": "^1.3",
2224
"monolog/monolog": "~1.0",
2325
"gregwar/image": "2.*",
2426
"donatj/phpuseragentparser": "~0.3",
2527
"pimple/pimple": "~3.0",
26-
"rockettheme/toolbox": "~1.0",
28+
"rockettheme/toolbox": "~1.3",
2729
"maximebf/debugbar": "~1.10",
2830
"ext-mbstring": "*",
2931
"ext-openssl": "*",
3032
"ext-curl": "*",
3133
"ext-zip": "*",
3234
"league/climate": "^3.2",
3335
"antoligy/dom-string-iterators": "^1.0",
34-
"miljar/php-exif": "^0.6.3"
36+
"miljar/php-exif": "^0.6.3",
37+
"composer/ca-bundle": "^1.0"
3538
},
3639
"require-dev": {
3740
"codeception/codeception": "^2.1",
3841
"phpunit/php-code-coverage": "~2.0",
39-
"fzaninotto/faker": "^1.5"
42+
"fzaninotto/faker": "^1.5",
43+
"victorjonsson/markdowndocs": "dev-master"
4044
},
45+
"config": {
46+
"platform": {
47+
"php": "5.5.9"
48+
}
49+
},
50+
"repositories": [
51+
{
52+
"type": "vcs",
53+
"url": "https://github.com/trilbymedia/PHP-Markdown-Documentation-Generator"
54+
}
55+
],
4156
"autoload": {
4257
"psr-4": {
4358
"Grav\\": "system/src/Grav"
@@ -48,7 +63,6 @@
4863
"exclude": ["VERSION"]
4964
},
5065
"scripts": {
51-
"server": "@php -S localhost:8080 system/router.php",
5266
"post-create-project-cmd": "bin/grav install",
5367
"test": "vendor/bin/codecept run unit",
5468
"test-windows": "vendor\\bin\\codecept run unit"

0 commit comments

Comments
 (0)