Closed abelsromero closed 1 year ago
This looks good. Please ping me once you think this is no longer WIP. I'll be off for the next 2 weeks, but I can take a look and merge once it's ready.
I'll be off for the next 2 weeks
Enjoy! I need to review the docs and I want to start a "migration guide". We owe to the users to make the migration simple.
I can go back to other projects in the meantime.
I decided to also remove AttributesBuilder::setAttributes(Map<String, Object>)
. I was NOT marked as deprecated, but it's not consistent with the approach of Java-like builders.
Users can still use AttributesBuilder::attribute(String)
AttributesBuilder::attribute(String, Object)
and even ones Attributes
instance is created the previous String and Map setters, so no feature is lost for advanced users willing to do more (imho risky) mutable code.
The current WIP migration guide should make things a lot clearer https://github.com/asciidoctor/asciidoctorj/pull/1200/files#diff-a8d0d3d94c218c722c16f7b13a37dc9fc9c477e5a8cb4de289882a848fb4537e.
Ready for review :tada:
Kind of change
Description
What is the goal of this pull request?
See https://github.com/asciidoctor/asciidoctorj/issues/1199
How does it achieve that?
Simply remove methods already marked as deprecated and fix where necessary (mostly tests).
Document::blocks
, using nowDocument::getBlocks
Are there any alternative ways to implement this?
No :thinking: Docs feed from test code, so it will be updated. Still pending a manual review though.
Are there any implications of this pull request? Anything a user must know?
It's a breaking change for v3.0.0, nothing to do for v2.5.x branch.
Issue
Fixes #1199