Skip to content

v2.0.0

Compare
Choose a tag to compare
@Log1x Log1x released this 29 Jul 15:36
· 42 commits to master since this release
cdb5741

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