Skip to content

Commit 4e9615e

Browse files
authored
Fix compatibility with package:logger (#3515)
Fixes #3514 Add a forwarding implementation of `onLevelChanged` which was added in the `Logger` class. Update upper bound SDK constraint to avoid pub publish warning. Remove `dependency_overrides` section in `pubspec.yaml` since there is a separate overrides file.
1 parent 5d6da09 commit 4e9615e

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

build_runner_core/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 7.2.9-wip
1+
## 7.2.9
2+
3+
- Fix compatibility with `package:logging` version `1.2.0`.
24

35
## 7.2.8
46

build_runner_core/lib/src/logging/build_for_input_logger.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,7 @@ class BuildForInputLogger implements Logger {
8888
@override
8989
void warning(Object? message, [Object? error, StackTrace? stackTrace]) =>
9090
_delegate.warning(message, error, stackTrace);
91+
92+
@override
93+
Stream<Level?> get onLevelChanged => _delegate.onLevelChanged;
9194
}

build_runner_core/pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: build_runner_core
2-
version: 7.2.9-wip
2+
version: 7.2.9
33
description: Core tools to organize the structure of a build and run Builders.
44
repository: https://github.com/dart-lang/build/tree/master/build_runner_core
55

66
environment:
7-
sdk: ">=2.19.0 <3.0.0"
7+
sdk: ">=2.19.0 <4.0.0"
88

99
platforms:
1010
linux:
@@ -22,7 +22,7 @@ dependencies:
2222
glob: ^2.0.0
2323
graphs: ^2.0.0
2424
json_annotation: ^4.8.1
25-
logging: ^1.0.0
25+
logging: ^1.2.0
2626
meta: ^1.3.0
2727
package_config: ^2.0.0
2828
path: ^1.8.0
@@ -42,7 +42,3 @@ dev_dependencies:
4242
test: ^1.16.0
4343
test_descriptor: ^2.0.0
4444
test_process: ^2.0.0
45-
46-
dependency_overrides:
47-
build:
48-
path: ../build

0 commit comments

Comments
 (0)