refactor(errors): Simplify error emitters in `swc_error_reporters`
- Removed the `JsonEmitter` and `PrettyEmitter` implementations from the `handler.rs` and `lib.rs` files to streamline the error reporting process.
- Introduced a new `ErrorEmitter` that consolidates diagnostic handling, improving code maintainability and reducing complexity.
- Updated the `lib.rs` to reflect these changes, ensuring a cleaner structure for error handling.
af9fa3b
2 days ago
by GiveMe-A-Name
+1%
refactor(errors): Enhance diagnostic handling in `swc_error_reporters`
- Simplified the error reporting structure by consolidating diagnostic management into `ThreadSafetyDiagnostics`.
- Updated `ErrorEmitter` to utilize the new diagnostics structure, improving thread safety and maintainability.
- Refactored various components to streamline error handling and ensure compatibility with the updated diagnostic system.
- Improved the pretty printing of diagnostics in the `swc_try` example, enhancing output clarity.
711218d
8 hours ago
by GiveMe-A-Name
-1%
feat(errors): Enhance diagnostic reporting with pretty string output
- Introduced a new `to_pretty_string` method in `ThreadSafetyDiagnostics` for improved diagnostic output.
- Updated `ErrorEmitter` to support pretty printing of diagnostics, enhancing clarity in error reporting.
- Added a new method in `Diagnostic` to facilitate pretty string conversion using `GraphicalReportHandler`.
- Refactored example in `swc_try.rs` to demonstrate the new pretty printing capabilities.
45d3292
7 hours ago
by GiveMe-A-Name
+1%
docs(errors): Update documentation for `ThreadSafetyDiagnostics`
5938780
6 hours ago
by GiveMe-A-Name
0%
refactor(errors): Simplify diagnostic handling and improve pretty string formatting