Skip to content

Latest commit

 

History

History
120 lines (58 loc) · 3.35 KB

CHANGELOG.md

File metadata and controls

120 lines (58 loc) · 3.35 KB

Environment Label Changelog

The format of this file is based on "Keep a Changelog". This project adheres to Semantic Versioning. Version numbers follow the pattern: MAJOR.FEATURE.BUGFIX

5.0.0 - 2024-05-23

Improved

  • Environment Label is ready for Craft 5!

Removed

  • Removed getJs(). The plugin no longer registers any info in JavaScript.

4.0.3 - 2023-04-25

Fixed

  • Fixed a bug where a naked hex string returned from the Color field would produce invalid CSS. (#15)

4.0.2 - 2022-07-28

Fixed

  • Fixed some additional errors that would occur if the CRAFT_ENVIRONMENT constant was not defined. (#12)

Deprecated

  • Deprecated getJs() and slated JS features for removal in 5.x, because they're not actually very useful. (Please open an issue if you're using these features!)

4.0.1 - 2022-07-11

Fixed

  • Fixed an error that occurred when instantiating a Settings model, if the CRAFT_ENVIRONMENT constant was not defined.

4.0.0 - 2022-04-27

Improved

  • Environment Label is ready for Craft 4!

Changed

  • Fully typed Settings properties.
  • Moved Label component to the root namespace.
  • Moved Settings model to the root namespace.
  • Moved TwigExtension to the root namespace.

Deprecated

  • Deprecated $textColor and $labelColor. (These styles will probably be specified via custom CSS in future versions.)
  • Deprecated $prefixText, getPrefixText(), $suffixText, and getSuffixText(). (These will probably be consolidated in future versions, so that the text of the label only includes $labelText.)

Removed

  • Removed EnvironmentLabel::$plugin static accessor; use getInstance() instead.

3.2.0 - 2019-01-06

Added

  • Added compatibility with new (Craft 3.4+) control panel layout. (#8)
  • Added the targetSelector setting, which optionally overrides the CSS selector for the label banner.

3.1.5 - 2018-11-02

Fixed

  • Fixed order-of-loading conflicts that could generate an error when Environment Label tried to add a Twig global. (#6)
  • Add craftcms/cms 3.0 as a requirement. (Required by plugin store)

3.1.4 - 2018-06-05

Fixed

  • Replaced broken URL to docs.

3.1.3 - 2018-03-22

Fixed

  • Updated the docs and example config file to reference the correct settings handles for prefixText and suffixText.

3.1.2 - 2018-03-08

Fixed

  • Removed a slightly overzealous typehint that causes an error in PHP 7.0 (since the void return type wasn't added until 7.1).

3.1.1 - 2017-12-31

Added

  • The environmentLabel Twig global now provides access directly to the Label service.

Fixed

  • The label text is now rendered later in the request (in response to the View's BEFORE_RENDER_PAGE_TEMPLATE event, rather than during the plugin initialization). This allows other plugins to register Twig extensions before we first use Twig to render the label text.

Removed

  • Removed the EnvironmentLabelTwigExtension in favor of a global pass-through to the Label service.

3.0.0 - 2017-12-25

Added

  • Environment Label is ready for Craft 3!