Skip to content

Commit 2e0d928

Browse files
authored
Remove package:js dependency in build_web_compilers (#3994)
* Remove `js` dependency in `build_web_compilers` * Patch rootDirectories and recompile * Bump version, unpin analyzer * Ignore deprecated analyzer elements * Add changelog entries for ignores
1 parent ed8075f commit 2e0d928

File tree

17 files changed

+3493
-3685
lines changed

17 files changed

+3493
-3685
lines changed

build/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Move `BuildStepImpl` to `build_runner_core`, use `SingleStepReader` directly.
1717
- Add `LibraryCycleGraphLoader` for loading transitive deps for analysis.
1818
- Track resolver dependencies as library cycle graphs.
19+
- Ignore deprecated analyzer API usages.
1920

2021
## 2.4.2
2122

build/lib/src/analyzer/resolver.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4+
// ignore_for_file: deprecated_member_use
5+
46
import 'package:analyzer/dart/analysis/results.dart';
57
import 'package:analyzer/dart/analysis/session.dart';
68
import 'package:analyzer/dart/ast/ast.dart';

build/lib/src/builder/build_step.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4+
// ignore_for_file: deprecated_member_use
5+
46
import 'dart:async';
57
import 'dart:convert';
68

build_modules/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
sdk: '>=3.7.0 <3.9.0-z'
1111

1212
dependencies:
13-
analyzer: '>=5.1.0 <7.4.0'
13+
analyzer: '>=5.1.0 <8.0.0'
1414
async: ^2.5.0
1515
bazel_worker: ^1.0.0
1616
build: ^2.0.0

build_resolvers/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Bug fix: fix delay on shutdown for fast builds when the "analyzer out of
1414
date" warning is displayed.
1515
- Track resolver dependencies as library cycle graphs.
16+
- Ignore deprecated analyzer API usages.
1617

1718
## 2.4.4
1819

build_resolvers/lib/src/resolver.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'dart:async';
68
import 'dart:collection';
79
import 'dart:convert';

build_resolvers/test/resolver_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'dart:io' show Platform;
68
import 'dart:isolate';
79

build_runner_core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- Refactor invalidation to track current build progress in `Build` instead of
3636
in the asset graph.
3737
- Track resolver dependencies as library cycle graphs.
38+
- Ignore deprecated analyzer API usages.
3839

3940
## 8.0.0
4041

build_runner_core/lib/src/generate/build_step_impl.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4+
// ignore_for_file: deprecated_member_use
5+
46
import 'dart:async';
57
import 'dart:collection';
68
import 'dart:convert';

build_runner_core/test/generate/build_step_impl_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4+
// ignore_for_file: deprecated_member_use
5+
46
@TestOn('vm')
57
library;
68

build_runner_core/test/generate/resolution_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'dart:async';
68

79
import 'package:_test_common/test_phases.dart';

build_runner_core/test/generate/resolver_reuse_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'dart:async';
68

79
import 'package:_test_common/common.dart';

build_test/test/resolve_source_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: deprecated_member_use
6+
57
import 'dart:async';
68

79
import 'package:analyzer/dart/analysis/results.dart';

build_web_compilers/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.1.5
2+
3+
- Remove dependency on the deprecated `package:js`.
4+
15
## 4.1.4
26

37
- Allow Dart SDK 3.8.x and 3.9 prerelease.

0 commit comments

Comments
 (0)