- [fix] Fix undefined property error
- [fix] Info argument error when pre-processing HTML for CP form
- [fix] Info argument error when augmenting for CP listing
This release introduces some significant changes to the terminology and variables used in mutators, however there are only two very small breaking changes, please read upgrade guide for more information.
- [new] Mutators are now known as plugins
- [new] Class based plugins for easier organisation and reuse
- [new] Scoped plugins that can be enabled per-field
- [new] New helpers and metadata for advanced data manipulation
- Easier setup with no custom editor class binding
- Better indexing of parent and sibling items
- More flexible type name handling
- Statamic 5.0+ is now required
- Statamic 5 support
- [new] Include Bard field object in metadata
- Add method annotations to the Mutator facade
- [new] Statamic 4 support
- [fix] Mutators being called twice for adjacent marks
- [new] Ability to inject custom HTML into the data
- [new] Helpers for creating new node and mark objects
- [fix] Italic mark mutators not running
- [fix] Incorrect conversion of legacy tag values
- Rename root node to camel case
- [new] Statamic 3.4 support
- [new] HTML mutators replace tag mutators
- [new] Support for Bard's
save_html
option with reverse mutators - [break] There are a couple of breaking changes, refer to the upgrade guide for more information
- Advanced features are now much easier to enable
- [new] Include root node in metadata
- [fix] Tag mutators running twice per opening/closing tag-pair
- Support
name
andvalue
parameters in tag - Update Statamic version requirement
- [new] Metadata: Mutators can now get info on the current node/mark’s parent, siblings, index and depth
- [new] Data Mutators: Make changes to the node/mark data before anything is rendered to HTML
- [new] Ability to specify multiple types when adding mutators
- [new] Support for the new "small" mark in Statamic 3.3.9
- [new] Brand new documentation that's better organised and with more information and examples
- [fix] Fix utility function import
- [fix] Fix Tiptap schema normalization
- [fix] Fix JS error on earlier Statamic versions
- [fix] Addon JS script loading
- Now only replaces classes of nodes/marks that are actually being mutated
- Ability to mutate Tiptap extension schemas and commands (requires Statamic 3.2.24+)
- [break] Package Renamed:
This package has been renamed tojacksleight/statamic-bard-mutator
. Sorry for any inconvienence this causes, but it's necessary for some future plans and to keep everything namespaced properly. Update instructions:- Update
composer.json
to"jacksleight/statamic-bard-mutator": "0.2.0",
- Update any class references to the new
JackSleight\StatamicBardMutator
namespace - Run
composer update
- Update
- Simplified API,
Mutator::node()
andMutator::mark()
have been replaced withMutator::tag()
- [fix] Support back to Statamic 3.1.14
- Tweak to the trait API
- [break] Removed class configuration
- Tweak config keys
- Initial release