New constant for breaking changes in libcmark 0.29.0#19
New constant for breaking changes in libcmark 0.29.0#19anthonyryan1 wants to merge 1 commit intokrakjoe:developfrom
Conversation
Pull Request Test Coverage Report for Build 535
💛 - Coveralls |
|
There are three other constants that have been added to libcmark besides Unsafe: |
|
@anthonyryan1 thanks ... I think we ought to treat constants the same as upstream, so a no-op is fine. @dwo0 adding those seems reasonable, right ? |
|
Does raising minimal supported library version really make sense ? |
|
@remicollet I'm not sure actually, did any distros bump, what do you think ? |
|
@krakjoe Fedora have 0.28.3 |
|
@anthonyryan1 I think the only thing we can reasonably do here is register the constant for versions that support it, and carry the breaking change ... it's awkward, but < 1.0, so kinda expected ... |
|
One year later. I've updated this pull request based on the feedback above.
Feedback welcome! |
|
I like it. |
|
@anthonyryan1, actually, you may have an error on line 154. |
Also add the other missing options in case anyone wants to use them in the future.
Safe is now enabled by default and a no-op, which will probably
come as a surprise to some people upgrading. People wanting the
old default behavior will need to use the new Unsafe constant.
I'm not sure if we'll want to deprecate the Safe constant over
a couple years or just leave it since it's a no-op.