Releases: deanblackborough/php-quill-renderer
New flexible design, finally new features can be added
I have released v3.00.0 of my PHP Quill renderer; the rewrite only took three weeks, I expected it to take a little longer, but once I put fingers to keyboard, it came together very quickly.
I had a significant head start when I started the rewrite, I had the design down on paper, and I had the unit tests from v2.03.1, it can never be over-stated, when your library has good test coverage working on an almost complete rewrite is a joy.
I'm hoping v3.00.0 will be well received; I've had more emails than I would have expected from other developers asking for progress, raising bugs and thanking me, developers appear to be using it.
The new design is much more flexible than v2.03.1; it should make it simple for me to support the rest of the features in Quill without continually adding hacks, a colleague at work helped pushed me in the right direction.
I now need to work on the v3.01.0 release to tidy up a few issues and then create a simple demo site to show live use; the one-page website will display a Quill editor, the delta after submission and the output in the requested format as well as the PHP code itself.
v3.00.0 supports all the features present in v2.03.1; it fixes the issue with paragraphs sitting next to lists and paragraphs being ignored and includes additional test coverage.
Null insert bug fix
- Minor bug fix and test thanks to pdiveris (https://github.com/pdiveris), deals with null inserts.
- Updated README, feature list incorrect, added v3.0 and also added a message on v1/v2 development.
Minor paragraph fix
- Updated composer.json, added suggest for PHP7.2.
- Removed /example folder and updated .gitignore.
- Added deltas() method to Parser/HTML.php.
- Added parserLoaded() method to Render.php
- Reworked tests.
- Added additional paragraph tests.
Note: The CompositeTest::testMultipleParagraphsWithAttributes test fails, this will pass in version 3.0.
Clean up
- Updated attribute support table in README.
- Removed redundant settings method.
- Removed redundant construct params.
- Removed commented out code
Refactoring
- Removed settings code, new parser/renderer should be created to change options.
- Refactoring, updated method names to better match the containing logic.
- Updated README, Quill attribute support.
Tests organisation
- Organised tests by renderer type prior to markdown development.
- Removed settings tests, settings are being stripped, don't make any sense, better option is to create a new renderer.
Best practices
- /,idea/ should be ignored via global gitignore
PHP7.1
- Switched to PHP 7.1 only.
- Refactored library code, strict types etc.
List after text [Bugfix]
- If a list follows text the generated HTML is invalid. [Bugfix] (Credit: Carlos https://github.com/sald19
for finding bug) - Switched to preg_split, code was looking for two or more newlines but ever only splitting on two.
- Moved newline replacement to last possible step.
List support bugfix
- Attribute incorrect for bullet list (Credit: Carlos https://github.com/sald19) [Bugfix]
- Only testing against 7.1 going forward.
- Added credits section to README.