asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
625 stars 173 forks source link

Remove deprecated from Asciidoctor interface #1207

Closed abelsromero closed 1 year ago

abelsromero commented 1 year ago

Kind of change

Description

What is the goal of this pull request?

:warning: IMPORTANT: This is a branch from the branch in PR https://github.com/asciidoctor/asciidoctorj/pull/1200, this is to be merged later, I am marking as draft for now as a reminder. No rush, there's plenty of time.

How does it achieve that?

Simply remove the methods and refactor the required code. Special mention to WhenDocumentHeaderIsRequired test, we could remove it, but I just reimplemented with the new API to ensure users can still obtain the same information.

Are there any alternative ways to implement this? No, it's only remove, no changes in the methods lefts.

Are there any implications of this pull request? Anything a user must know?

It's breaking for v3.0.0 but we add a migration guide to help.

Issue

Fixes #1201

Release notes

Please add a corresponding entry to the file CHANGELOG.adoc

abelsromero commented 1 year ago

@mojavelinux I am documenting on the migration guide how to use parse_header_only option, but I suspect this is one of those internal things that users should not use? Is that the case?

abelsromero commented 1 year ago

Rebased from main, ready for review :tada:

robertpanzer commented 1 year ago

Thanks!