simple_error_reporter 2.0.0
simple_error_reporter: ^2.0.0 copied to clipboard
A Flutter package for reporting errors to a backend server with rate limiting and deduplication.
2.0.0 - 2026-05-27 #
- BREAKING: The
appNameparameter is now required inErrorReportObj. This change allows a single backend to receive errors from multiple applications. Consequently, theappNameargument is also required when initializingErrorReporterandErrorReporterForNative.
1.0.3 - 2026-05-15 #
- Bumped
simple_https_serviceconstraint to^2.0.0to follow the upstream package's 2.0.0 release. No API changes in this package. Note thatsimple_https_service2.0.0 added theEnumServerResponseStatus.cancelledvalue; this package's send path (response.resultStatus != EnumServerResponseStatus.success) treats a cancelled response as a send failure and invokesonSendFailure, which is the intended behavior for error reporting.
1.0.2 - 2026-05-04 #
- Redeploy to fix pub.dev scores affected by a static analysis outage.
1.0.1 - 2026-05-03 #
- Fixed circular import:
error_reporter.dartanderror_reporter_for_native.dartnow importerror_report_obj.dartanderror_reporter_config.dartdirectly instead of the barrel file. - Added dartdoc comments to all public API members (
allowReportingfield,ErrorReportObjfields).
1.0.0 - 2026-05-03 #
- Initial release as a standalone package, extracted from
simple_jwt_manager. ErrorReporter: Automatic and manual error reporting for web and native platforms.ErrorReporterForNative: Error reporting for native platforms with self-signed certificate support.ErrorReportObj: Data object representing the error payload sent to the server.ErrorReporterConfig: Singleton for independent retry control without affecting the globalRetryConfiginsimple_https_service.- Rate limiting: configurable max reports per time window to prevent error loops.
- Duplicate filtering: prevents sending the same error multiple times (up to 1000 recent errors).
allowReportingflag for consent-based reporting control.onSendFailurecallback for handling send failures.- Automatic error catching via
FlutterError.onErrorandPlatformDispatcher.instance.onError.
Breaking changes from simple_jwt_manager #
ErrorReportObj.timestampis now sent in UTC ISO 8601 format (e.g."2026-05-03T03:00:00.000Z"). Previously, the local device time without timezone information was used.