Skip to content

Latest commit

 

History

History
199 lines (159 loc) · 7.22 KB

CHANGELOG.md

File metadata and controls

199 lines (159 loc) · 7.22 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

[0.4.4] - 2019-01-18

Changed

  • Changed Shortcode::prepare_context() to accept a second $atts argument.

0.4.3 - 2019-01-17

Added

  • Added Shortcode::prepare_context( array $context ): array to allow for easy context manipulation in extending classes.

0.4.2 - 2019-01-05

Added

  • Added Shortcode::with_injector() method to allow for the use of an external injector.

Changed

  • Changed the way $context is handled to make it easier to modify from external code, especially a DI.

0.4.1 - 2019-01-05

Added

  • Added Shortcode::add_context() method.

0.4.0 - 2019-01-04

Changed

  • Switched to PHPUnit v6+ and add basic tests.
  • Uses brightnucleus/view for rendering shortcode views.

Fixed

  • Add missing returns.

0.3.2 - 2017-06-03

Changed

  • Added information about the caught exception when instantiation failed.

0.3.1 - 2016-11-12

Changed

  • Changed license to MIT.

Fixed

  • Fixed bug with class instantiation.

0.3.0 - 2016-11-12

Changed

  • The custom class keys in the Config can now take either fully qualified class name or a callable that acts as a factory.
  • Update Composer dependencies.

0.2.19 - 2016-08-11

Fix

  • Fix broken TemplateShortcode::render_view() method.

0.2.18 - 2016-06-20

Changed

  • Removed dependency on beberlei/assert package.

0.2.17 - 2016-04-18

Fixed

  • Forward inner shortcode $content to view.

0.2.16 - 2016-04-05

Changed

  • Update Composer dependencies.

0.2.15 - 2016-03-26

Fixed

  • Switched gamjo-template-loader to release 1.2.0
  • Fix code style issue.

0.2.14 - 2016-03-22

Fixed

  • Only declare do_tag() function if it does not exist already.

0.2.13 - 2016-03-22

Fixed

  • Switch beberlei/assert back to official branch. Issue #138 has been fixed with v2.5.

0.2.12 - 2016-03-04

Fixed

  • Pass $atts through to view so they can be used in there. Props to @GaryJones.

0.2.11 - 2016-03-04

Fixed

  • Switch beberlei/assert to own fork until #138 has been fixed.

0.2.10 - 2016-02-26

Fixed

  • Removed executable bit from files.
  • Correctly type-hint closures.
  • Added abstract method declarations to CheckNeedTrait to ensure that classes using it will provide the necessary methods.
  • Bump brightnucleus/config requirement to v0.2.4

0.2.9 - 2016-02-25

Added

  • Enqueueing of dependencies for a shortcode now falls back to dependencies already registered outside of DependencyManager.
  • Added CheckNeedTrait to deduplicate is_needed() method.

Fixed

  • Corrected end-of-line characters for several files.

0.2.8 - 2016-02-25

Fixed

  • Use stable version of brightnucleus/dependencies.

0.2.7 - 2016-02-25

Changed

  • Dependencies are only enqueued if their handles are included in the shortcode's "dependencies" key.

Fixed

  • The ShortcodeManagerInterface now reuses Registerable.

0.2.6 - 2016-02-24

Added

  • gamajo/TemplateLoader is being used in a new TemplatedShortcode class to let themes override the shortcode's views.

Fixed

  • Let is_needed default to true so that it can be omited in most cases in the config.

0.2.5 - 2016-02-22

Fixed

  • Use shortcode tag getter method to access tag in Shortcode::do_this() method.
  • Docblock tweaks.

0.2.4 - 2016-02-22

Added

  • Added ShortcodeManagerInterface to decouple the implementation from the software that uses it.
  • Added do_tag() function to execute shortcode tags directly. Works with external shortcodes too.
  • Added ShortcodeManagerInterface::do_tag() method as a convenience access to do_tag() function.
  • Added ShortcodeInterface::do_this() method as a convenience access to do_tag() function.

Fixed

  • init_shortcodes() is now protected instead of public.

0.2.3 - 2016-02-18

Added

  • ShortcodeManager now properly manages passing $context information to its shortcodes.

Fixed

  • Docblock fixes for ShortcodeManager::__construct().

0.2.2 - 2016-02-18

Fixed

  • DependencyManager is now optional and you can pass in null or omit the argument completely.

0.2.1 - 2016-02-18

Fixed

  • Make shortcodes work by fixing the config routing.
  • Make shortcode UI work by fixing the config routing.
  • Let array_walk always work with references.

0.2.0 - 2016-02-18

Fixed

  • Switched to v0.2+ for both brightnucleus/config & brightnucleus/dependencies.
  • Removed $config_key from constructor and from processConfig().

0.1.2 - 2016-02-17

Fixed

  • Tweak precommit script.
  • Updated copyright dates.
  • Several typehint tweaks.

0.1.1 - 2016-02-17

Fixed

  • Fixed badges in readme.
  • Fixed changelog.

0.1.0 - 2016-02-17

Added

  • Initial release to GitHub.