Upgrading rouge 4 to 5
Breaking4.7.0 → 5.1.0Breaking2Security1Platform1New5Changed3Fixed3
BreakingUpgrade verdict
2 breaking changes and a platform requirement change and a security fix.
In plain terms
- The Coq lexer is now called Rocq, so code referring to the old Coq lexer name must be updated.
- The HTML formatter now hands off work differently, which can break code that relied on the old delegation behavior.
- This version no longer works on Ruby 2.7, which is no longer maintained.
- A possible denial-of-service regex flaw in the Sed lexer is fixed.
Must act 4 items need code or config changes
Ruby requirement changed in 5.0.0: >= 2.7 → >= 3.0.
What you must change
Breaking2
Renames the Coq lexer to Rocq to reflect the project's renaming.
Overhauls HTML formatter delegation, changing how the HTML formatter delegates work.
Security1
Fixes a potential ReDoS vulnerability in the Sed lexer.
Platform1
Drops support for EOL Ruby 2.7.