Releases: Log1x/sage-directives
Releases · Log1x/sage-directives
v2.0.5
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
Change log
Enhancements
- ✨ Add
@menu
,@hasmenu
and@endhasmenu
WordPress directives (#147)
New Contributors
- @davidwebca made their first contribution in #147
Full Changelog: v2.0.3...v2.0.4
v2.0.3
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
v2.0.1
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
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 toUtil
- 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
, andlaravel/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
toAcf
- chore(directive): Update directive class namespaces
v1.1.9
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
v1.1.8
v1.1.7
Change log
Bug fixes
- Fix
@thumbnail()
havingthumbnail
hardcoded as its image size when passedfalse
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
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 theparse
method to allow passing a limit toexplode()
(#28) - Bump lock files
Documentation
- Add
@image
example forraw