- Remove
splitRegexin favour of asplitcallback - Allow passing in a
setClassNamecallback to set the class name on the inserted DOM element - Use modern syntax, namely
let/constand default parameters
- Bump dependencies
- Add
rimraf,mkdirp - Add
huskyandlint-staged - Bump dependencies
- Only publish
index.js
- Add
standard - Bump dependencies
- Add
weightscript
- Add support for passing in a regular expression to control how the contents of the element are wrapped
- Add
aria-labelandaria-hiddenattributes for accessibility
- Add a CodePen demo
- Use
prettier-standard
- Prioritise the general case, where the
elementhas a single child text node - Update tooling:
prettier,tape,yarn - Drop Bower support
- Initial release