Error Handling: Experience improved reliability in capturing fatal exceptions with an overhauled uncaught error handler that ensures the first fatal exception is captured before the process shuts down.
Error Handling: The unhandled rejection handler now captures errors without exiting the process, allowing for better error management.
Error Handling: A new global exception handler is introduced, enhancing the way fatal errors are managed and reported.
Improvements
Error Handling: The fatal error handler is cleaned up and now handles recursion more effectively, improving overall stability during error scenarios.
Error Handling: The sendTimeout configuration field is now used instead of the DSN query parameter, streamlining timeout management.
Error Handling: Documentation on the fatal error handler and timeout behavior is improved, providing clearer expectations for users.
Error Handling: The request handler now sets the request on the context, enhancing the context available during error handling.
Fixes
Fix issues with the fatal error handler by properly setting the calledFatalError flag and adding alerts for failsafe cases.
Fix the behavior of the default onFatalError callback to be more defensive, ensuring better error reporting.
Fix the issue of including the domain property as an extra property on Error objects, ensuring cleaner error handling.
Others
Enhance the installation process by making the .npmignore file stricter, ensuring cleaner installs.
Remove deprecated features in preparation for version 2.0, streamlining the SDK for users.
Add tests for various error handling scenarios, ensuring robustness and reliability in error management.