Skip to content

Releases: Log1x/blade-svg-sage

v3.0.0

01 Oct 05:35
5b7b96a
Compare
Choose a tag to compare

Change log

This is a courtesy release for PHP 8.0 / Illuminate 8.x. It is unlikely there will be another release unless there are critical bugs.

Enhancements

  • chore(deps): Add support for Illuminate 8.x (#25)

v2.0.2

07 Feb 22:46
Compare
Choose a tag to compare

Changelog

Bug fix: Make sure add_action() exists before initializing. (Fixes #19)

v2.0.1

28 Nov 10:58
Compare
Choose a tag to compare

Changelog

Bug fix: Fix helper functions from clashing with blade-svg. When calling functions directly (e.g. not with Blade directives), you must use the App namespace. (Fixes #17)

v2.0.0

18 Nov 07:34
3aa2f4d
Compare
Choose a tag to compare

This update includes breaking changes.

Changelog

  • Refactor/rewrite existing functions/helpers, converting them into static methods inside of the BladeSvgSage class with a more appropriate naming scheme.
  • Remove a lot of unnecessary methods instead falling back onto blade-svg's internal methods for handling pathing, etc.
  • Add config.php for housing the default configuration values.
  • Replace existing configuration filters with a single filter, bladesvg, that accepts an array of values that get merged with the defaults.
  • Remove the need to specify a full path when passing a custom svg_path and spritesheet_path (now defaults to theme root).
  • Register the SvgFactory and Blade directives during the initialization of the BladeSvgSage class within after_setup_theme instead of awkwardly calling the action/filter twice.
  • Register BladeSvgSage with the sage container.
  • Default svg_path and spritesheet_path to resources/svg and resources/svg/spritesheet.svg respectively to not only conform with vanilla Blade SVG and Laravel standards but remove the unnecessary issues that arise from the build process and BrowserSync.
  • Move svg_image() and svg_spritesheet() to the App namespace for use globally throughout Sage.
  • Add empty() conditionals for $icon on methods where it is being used for a more graceful return instead of erroring.
  • Remove RelPath dependency.
  • Bump dependencies & lock file.
  • Add the missing description, support, and keywords fields to composer.json.
  • Add MIT license for good measure.
  • Clean up .editorconfig and .gitignore.
  • Clean up and reword various sections of the readme, update configuration to reflect filter change, remove existing usage examples instead replacing it with a link to the Basic examples from the Blade SVG documentation.

v1.0.6

06 Feb 19:19
c41f118
Compare
Choose a tag to compare

Fixed pathing issues courtesy of @strarsis.

v1.0.5

23 Aug 18:28
Compare
Choose a tag to compare

Full rewrite to act as a wrapper rather than a standalone plugin.

v1.0.3

25 Apr 09:28
Compare
Choose a tag to compare
Use parse_url() on asset_path() to get relative paths instead of get_…

…stylesheet_directory().

v1.0.2

12 Apr 00:01
Compare
Choose a tag to compare
Add graceful fallback for missing icons and stylesheets using Filesys…

…tem::exists.

Use Filesystem::get() instead of file_get_contents()