From 083c7a19b88a1156d4f7642c301bf1f30f3141f5 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 18:37:19 -0400 Subject: [PATCH 1/7] Update changes for release --- CHANGES.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 925bbbe..4b3f64e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,2 +1,10 @@ -This release modifies the testing structure and updates other support files. +This release adds the following helpers: +- VoidTag helper +- Element helper +It also adds support for: +- Additional attributes on Scripts helper +- Multi check boxes +- "Internal" Styles and Scripts + +It also includes various documentation fixes. From 6cbb65ef0c780b72186a2e568f7fa59f74a9bbd9 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 19:25:30 -0400 Subject: [PATCH 2/7] Convert CHANGES to CHANGELOG --- CHANGELOG.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ CHANGES.md | 10 -------- 2 files changed, 68 insertions(+), 10 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 CHANGES.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e382b50 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,68 @@ +# CHANGELOG + +## 2.5.0 + +- ADD: VoidTag helper +- ADD: Element helper +- ADD: Support additional attributes on Scripts helper +- ADD: Support multi check boxes +- ADD: Support "Internal" Styles and Scripts +- DOC: Various documentation fixes. + +## 2.4.1 + +This release modifies the testing structure and updates other support files. + + +## 2.4.0 + +This release fixes a bug in Checkbox/Radio helpers by adding a feature. Previously, the helpers used strict checking of values, which was an unintentional holdover from previous versions. They both now have a strict() method, just like the Select helper, that allows you to turn strict checking off and on. The default is "off." + +It also includes a fix to the Escaper encoding lists: they were previously using "iso8859-" and now use "iso-8859-" (note the added dash, per the listing at http://php.net/manual/en/mbstring.supported-encodings.php). + +Finally, the links, metas, scripts, styles, and title helpers now allow one-off use by passing values directly to the helper invocation. See the updated documentation for these helpers for more information. + + +## 2.3.0 + +This release has SECURITY FIXES. All users are encouraged to upgrade immediately. + +- SEC: The AbstractChecked helper, which is the parent for Radio and Checkbox, now HTML-escapes the label. Previously, no escaping was applied. +- SEC: The Textarea helper now HTML-escapes the value. Previously, no escaping was applied. +- SEC: The Select helper now HTML-escapes each option label. Previously, no escaping was applied. +- FIX: The attributes for the Label helper now default to array() instead of null. + + +## 2.2.0 + +- FIX: Return empty string instead of null in AbstractList::__toString +- DOC: Branch alias 2.1 for the service config has been changed +- DOC: Fix typo in AttrEscaper::__invoke() doc comment +- DOC: Fix typo in HelperLocator::has() doc comment +- ADD: Add Helper/AnchorRaw for anchors w/ unescaped text; adds the helper, the factory to the locator, and the test. +- DOC: Various fixes to soothe PHPDocumentor. + + +## 2.1.1 +- CHG: Disable auto-resolve for container tests and make config explicit. + +## 2.1.0 +- DOC: Updated docblocks and README files. +- CHG: Renamed services using new rules: "aura/html:escaper" and "aura/html:helper". +- TST: Add new container integration tests. + + +## 2.0.0 +- DOC: Updated docblocks and README files. +- FIX #18 +- FIX #17: Input helper now extends HelperLocator rather than composing it. This helps support easier DI configuration. +- CHG: Standardize all input helpers to return self. +- CHG: Allow Input::__invoke() to return the input locator object +- CHG: Allow Label::__invoke() to return the label object +- ADD: Class "Escaper" as a helper. +- FIX #6: In Select helper, add placeholder() and strict() methods, and no longer uses strict equality by default. + +## 2.0.0-beta1 + +Extracted from Aura.View package. + diff --git a/CHANGES.md b/CHANGES.md deleted file mode 100644 index 4b3f64e..0000000 --- a/CHANGES.md +++ /dev/null @@ -1,10 +0,0 @@ -This release adds the following helpers: -- VoidTag helper -- Element helper - -It also adds support for: -- Additional attributes on Scripts helper -- Multi check boxes -- "Internal" Styles and Scripts - -It also includes various documentation fixes. From 5c0e19551fb332750d96cdefa7c298f6c417db44 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 19:26:07 -0400 Subject: [PATCH 3/7] Update LICENSE year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 2a28b98..5fbde86 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2011-2015, The Aura Project for PHP +Copyright (c) 2011-2017, The Aura Project for PHP All rights reserved. Redistribution and use in source and binary forms, with or without From c03438a680f500b1f1ff6f4f25b012d6e15c09f2 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 19:31:03 -0400 Subject: [PATCH 4/7] Document capture property --- src/Helper/Scripts.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Helper/Scripts.php b/src/Helper/Scripts.php index b54302d..2282049 100644 --- a/src/Helper/Scripts.php +++ b/src/Helper/Scripts.php @@ -17,6 +17,13 @@ */ class Scripts extends AbstractSeries { + /** + * Temporary storage or params passed to caputre functions + * + * @var mixed + * + * @access private + */ private $capture; /** From f730432c07827c9f4673cbb3d5385624f2058c44 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 19:31:19 -0400 Subject: [PATCH 5/7] Add defined capture property --- src/Helper/Styles.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Helper/Styles.php b/src/Helper/Styles.php index 91ace3f..510d91c 100644 --- a/src/Helper/Styles.php +++ b/src/Helper/Styles.php @@ -17,6 +17,15 @@ */ class Styles extends AbstractSeries { + /** + * Temporary storage or params passed to caputre functions + * + * @var mixed + * + * @access private + */ + private $capture; + /** * * Adds a tag to the series. From d18dcde061560ed83f4997ac9b240cc3d16eb675 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 19:34:01 -0400 Subject: [PATCH 6/7] Add doc for Checkbox::multiple() --- src/Helper/Input/Checkbox.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Helper/Input/Checkbox.php b/src/Helper/Input/Checkbox.php index dc06364..d041e0f 100644 --- a/src/Helper/Input/Checkbox.php +++ b/src/Helper/Input/Checkbox.php @@ -69,6 +69,13 @@ protected function htmlUnchecked() return $this->void('input', $attribs); } + /** + * + * Returns the HTML for multiple checkboxes. + * + * @return string + * + */ protected function multiple() { $html = ''; From d7dc2f6aa2af4aa53e8214126f826c3178d46cd4 Mon Sep 17 00:00:00 2001 From: jake johns Date: Sun, 2 Jul 2017 19:35:51 -0400 Subject: [PATCH 7/7] Update CHANGELOG for release --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e382b50..ec6f4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - ADD: Support additional attributes on Scripts helper - ADD: Support multi check boxes - ADD: Support "Internal" Styles and Scripts -- DOC: Various documentation fixes. +- DOC: Various documentation and phpDoc fixes. ## 2.4.1