From 4780ce193a13ab2664aec1933b634d66cc7de160 Mon Sep 17 00:00:00 2001 From: Aaron Lademann Date: Wed, 16 Oct 2019 14:05:35 -0700 Subject: [PATCH 1/2] Add placeholder ErrorBoundary prop APIs + So that we can transition consumers to the 3.x-alpha line more smoothly --- lib/src/component/error_boundary.dart | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/src/component/error_boundary.dart b/lib/src/component/error_boundary.dart index 0255d603e..978caeb48 100644 --- a/lib/src/component/error_boundary.dart +++ b/lib/src/component/error_boundary.dart @@ -1,3 +1,4 @@ +import 'package:logging/logging.dart'; import 'package:meta/meta.dart'; import 'package:over_react/over_react.dart'; @@ -49,6 +50,22 @@ class _$ErrorBoundaryProps extends UiProps { /// /// > Default: [ErrorBoundaryComponent._renderDefaultFallbackUI] _FallbackUiRenderer fallbackUIRenderer; + + /// The name to use when the component's logger logs an error via [ErrorBoundaryComponent.componentDidCatch]. + /// + /// Not used if a custom [logger] is specified. + /// + /// > Default: 'over_react.ErrorBoundary' + String loggerName; + + /// Whether errors caught by this [ErrorBoundary] should be logged using a [Logger]. + /// + /// > Default: `true` + bool shouldLogErrors; + + /// An optional custom logger instance that will be used to log errors caught by + /// this [ErrorBoundary] when [shouldLogErrors] is true. + Logger logger; } @State() From 9f8b63cd8adef1177b337beb17bda9dc2412ace5 Mon Sep 17 00:00:00 2001 From: Aaron Lademann Date: Wed, 16 Oct 2019 14:06:07 -0700 Subject: [PATCH 2/2] over_react-2.6.0+dart1 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index dedcb9bd0..ce8e35b4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: over_react -version: 2.5.3+dart1 +version: 2.6.0+dart1 description: A library for building statically-typed React UI components using Dart. homepage: https://github.com/Workiva/over_react/ authors: