Skip to content

Releases: Log1x/sage-directives

v2.0.5

16 Aug 09:03
c391f84
Compare
Choose a tag to compare

This mainly improves support with Livewire disabling the @script, @endscript, and @js directives from registering when it is detected.

Change log

  • 🧑‍💻 Do not load Directives that conflict with other packages (#150)

Full Changelog: v2.0.4...v2.0.5

v2.0.4

21 Jun 14:06
a58a9e2
Compare
Choose a tag to compare

Change log

Enhancements

  • ✨ Add @menu, @hasmenu and @endhasmenu WordPress directives (#147)

New Contributors

Full Changelog: v2.0.3...v2.0.4

v2.0.3

26 Mar 13:45
c6b5ed9
Compare
Choose a tag to compare

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: v2.0.2...v2.0.3

v2.0.2

01 Aug 08:57
59ef697
Compare
Choose a tag to compare

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

29 Jul 17:23
adf2dde
Compare
Choose a tag to compare

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

29 Jul 15:36
cdb5741
Compare
Choose a tag to compare

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

19 Feb 15:20
1162c9f
Compare
Choose a tag to compare

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

31 Mar 21:06
063ecd6
Compare
Choose a tag to compare

Change log

Bug fixes

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

v1.1.7

21 Feb 00:51
433f3a4
Compare
Choose a tag to compare

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

02 Dec 15:02
Compare
Choose a tag to compare

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