Sage Directives Versions Save

A set of Blade directives for use with Roots Sage.

v2.0.3

1 month ago

Change log

Bug fixes

  • 🚚 Rename @style to @stylesheet (Fixes #142)
  • 🐛 Fix parsing when using the @image directive (Fixes #135, Fixes #117)

Enhancements

  • ✨ Add a @thememod directive (#102)
  • ♻ Refactor directives into classes
  • 🎨 Improve directive registration
  • 🙈 Add composer.lock to .gitignore
  • ⬆ Bump documentation dependencies
  • 📝 Update the @image documentation
  • ✅ Update tests to reflect output changes

New Contributors

Full Changelog: https://github.com/Log1x/sage-directives/compare/v2.0.2...v2.0.3

v2.0.2

9 months ago

[!IMPORTANT] Read the v2.0.0 and v2.0.1 release notes.

Change log

Enhancements

  • chore: various code/docblock clean up (#99)
  • chore(test): Add additional tests for @posts
  • chore(deps): bump pestphp/pest from 2.9.5 to 2.10.1

Bug fixes

  • fix(directive): Fix condition when passing multiple roles to @role (#98)

v2.0.1

9 months ago

[!IMPORTANT] Read the v2.0.0 release notes.

🚀 This release closes every remaining issue.

Change log

Enhancements

  • enhance(directives): Add Blade $loop variable support to @posts (#96)
  • enhance(directives): Add proper Blade $loop variable support to @repeat
  • enhance(directives): Add support for customizing the @field format value (Fixes #43) (#97)
  • chore(test): Redo @posts tests for $loop support
  • chore(test): Update the @repeat test for $loop support
  • chore(docs): Add mention of $loop to the @posts docs section
  • chore(test): Add tests for @field format values
  • chore(deps): Bump docs dependencies (#95)
  • chore(docs): Update the docs homepage to match repo README (#94)
  • chore(ci): Bump CI node version to 16

Bug fixes

  • fix(test): Fix invalid @posts test

v2.0.0

9 months ago

[!IMPORTANT] Sage Directives v2.0.0 drops support for Sage 9, PHP 7.x, and PHP 8.0.

[!WARNING] Breaking Changes

All Font Awesome (@fa, @fab, etc.) directives have been removed. Use Blade Icons instead. Otherwise, this release should fix way more then it breaks and now has full test coverage matching examples in the docs.

Change log

Bug fixes

  • fix(docs): Fix typo on @term and @terms example parameters
  • fix(directives): Fix a lot of instances where directives didn't work as described by the docs (Fixes #75, Fixes #73, Fixes #70, Fixes #63, Fixes #50, Fixes #44, Fixes #42, Fixes #40, Fixes #37, Fixes #30, Supersedes #76, Supersedes #74, Supersedes #68, Supersedes #65, and probably more.)
  • fix(directive): Fix @published and @modified directives with custom date format (Fixes #57)
  • fix(directive): Fix missing closing tag for @noposts (Fixes #59) (#60)

Enhancements

  • feat(tests): Add blade compiler tests for directives
  • chore(git): Add Acorn test directory to .gitignore
  • chore(git): Add /tests to .gitattributes
  • chore: Remove CHANGELOG.md
  • chore: Remove unnecessary license year
  • enhance(provider): Move Sage Directives registration into a Service Provider (Fixes #80, Supersedes #81)
  • chore: Rename the Utilities class to Util
  • chore(docs): Remove deprecated Font Awesome directives
  • enhance(directives): Use new isIdentifier utility as needed
  • chore(directives): Change <?= to <?php echo
  • enhance(directives): Clean up directive implementation
  • chore(directives): Remove Font Awesome directives
  • chore(deps): Use PSR-4 autoloading
  • chore(deps): Autoload tests
  • chore(deps): Bump minimum PHP requirement to 8.1
  • chore(deps): Add roots/acorn, pestphp/pest, and laravel/pint as dev-dependencies
  • chore(deps): Remove sage-svg suggestion
  • chore(deps): Add acorn to package keywords
  • chore(ci): Add Dependabot to the project
  • chore(ci): Bump tested PHP versions
  • build(deps): bump actions/cache from 2 to 3
  • build(deps): bump actions/setup-node from 2 to 3
  • build(deps): bump actions/checkout from 2 to 3
  • enhance(util): Improve the parse utility when dealing with delimiters
  • chore(test): Add tests for @published and @modified using custom date format
  • chore(directive): Remove unnecessary str_replace on implode
  • enhance(directives): Add support for passing multiple roles to @role (Fixes #49)
  • chore(test): Add test for passing multiple roles to @role
  • chore(docs): Update docs for @role
  • enhance(directives): Add a @postmeta directive (Fixes #79)
  • chore(test): Add tests for @postmeta
  • chore(docs): Add @postmeta to the docs
  • enhance(directives): Add a @postclass directive (Fixes #31)
  • chore(test): Add tests for @postclass
  • chore(docs): Add @postclass to the docs
  • enhance(directives): Add a @sidebar, @hassidebar, and @endhassidebar directive (Fixes #71)
  • chore(test): Add tests for @sidebar, @hassidebar, and @endhassidebar
  • chore(docs): Add @sidebar to the docs
  • chore(directive): Rename ACF to Acf
  • chore(directive): Update directive class namespaces

v1.1.9

3 years ago

Change log

Enhancements

  • feat(wordpress): Add @__ translate directive (#38)
  • feat(wordpress): Add @wpbodyopen directive (#46)
  • chore(docs): Document @wpbodyopen directive
  • feat(acf): Add @hasfields and @endhasfields directives (#52)
  • chore(docs): Add @hasfields and @endhasfields to docs (#53)
  • enhance(package): Add log1x/sage-directives/namespace filter for overriding default namespace (#33)
  • feat(directives): Add @hasoptions & @endhasoptions (#54)
  • chore(changelog): Add v1.1.7 – v1.1.9 to the changelog

Bug fixes

  • fix(docs): Update legacy codex documentation links (#47)
  • fix(term-directive): Fix warnings for @term (#55)

v1.1.8

4 years ago

Change log

Bug fixes

  • fix(hasposts): add missing closing tag (Fixes: #34)

v1.1.7

4 years ago

Change log

Bug fixes

  • Fix @thumbnail() having thumbnail hardcoded as its image size when passed false as the second value.
    • This was intended behavior so hopefully it doesn't break something else.
    • Please report if it does – if so, this directive may need a rewrite tbh.

v1.1.6

4 years ago

Change log

Bug fixes

  • Allow the second parameter of @set to accept a value containing commas (e.g. an array) (Fixes #28)

Enhancements

  • Allow passing raw as the second parameter of @image to return an attachment URL (Fixes #24)
  • Add the $limit parameter to the parse method to allow passing a limit to explode() (#28)
  • Bump lock files

Documentation

  • Add @image example for raw

v1.1.5

4 years ago

Change log

Enhancements

  • Add @notempty / @endnotempty (#27, @shanejones)
  • Bump dependencies
  • Remove unused $expression from @end directives
  • Fix linting for 3.5

v1.1.4

4 years ago

Change log

Bug fixes

  • Use Illuminate\Support\Str instead of str_