mirror of
https://github.com/filp/whoops.git
synced 2026-08-17 16:50:57 +00:00
7fcd32ea7a
PrismJS sort of broken backward compatibility, while trying to improve highlight resilience[^1]. Since then it is required to add `data-line-offset` for any code, which doesn't start counting from 1, which is pretty each time, we deal with stack frames. This commits add silently required data attribute in HTML, bringing back highlight feature and recovering from some fall through errors, raised by `TypeError` in JS execution flow (i.e. switching application and full frames tabs). [^1]: https://github.com/PrismJS/prism/commit/9a4e725b76d22759fec58e1929450bbfe1bb6661 Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
2.7 KiB
2.7 KiB
CHANGELOG
Unreleased
- Fixed missing code highlight, which additionally led to issue with switching tabs, between application and all frames (#747).
v2.15.1
- Fixed bug with PrettyPageHandler "Calling
getFrameFiltersmethod on null" (#751).
v2.15.0
- Add addFrameFilter (#749)
v2.14.6
- Upgraded prismJS to version
1.29.0due to security issue (#741).
v2.14.5
- Allow
ArrayAccesson super globals.
v2.14.4
- Fix PHP
5.5support. - Allow to use psr/log
2or3.
v2.14.3
- Support PHP
8.1.
v2.14.1
- Fix syntax highlighting scrolling too far.
- Improve the way we detect xdebug linkformat.
v2.14.0
- Switched syntax highlighting to Prism.js.
Avoids licensing issues with prettify, and uses a maintained, modern project.
v2.13.0
- Add Netbeans editor.
v2.12.1
- Avoid redirecting away from an error.
v2.12.0
- Hide non-string values in super globals when requested.
v2.11.0
- Customize exit code.
v2.10.0
- Better chaining on handler classes.
v2.9.2
- Fix copy button styles.
v2.9.1
- Fix xdebug function crash on PHP
8.
v2.9.0
JsonResponseHandlerincludes the exception code.
v2.8.0
- Support PHP 8.
v2.7.3
PrettyPageHandlerfunctionality to hide superglobal keys has a clearer name (hideSuperglobalKey).
v2.7.2
PrettyPageHandlernow accepts custom js files.PrettyPageHandlerandtemplateHelperis now accessible through inheritance.
v2.7.1
- Fix a PHP warning in some cases with anonymous classes.
v2.7.0
- Added
removeFirstHandlerandremoveLastHandler.
v2.6.0
- Fix 2.4.0
pushHandlerchanging the order of handlers.
v2.5.1
- Fix error messaging in a rare case.
v2.5.0
- Automatically configure xdebug if available.
v2.4.1
- Try harder to close all output buffers.
v2.4.0
- Allow to prepend and append handlers.
v2.3.2
- Various fixes from the community.
v2.3.1
- Prevent exception in Whoops when caught exception frame is not related to real file.
v2.3.0
- Show previous exception messages.
v2.2.0
- Support PHP
7.2.
v2.1.0
- Add a
SystemFacadeto allow clients to override Whoops behavior. - Show frame arguments in
PrettyPageHandler. - Highlight the line with the error.
- Add icons to search on Google and Stack Overflow.
v2.0.0
Backwards compatibility breaking changes:
Runclass is nowfinal. If you inherited fromRun, please now instead use a customSystemFacadeinjected into theRunconstructor, or contribute your changes to our core.- PHP < 5.5 support dropped.