Skip to content

Commit e2d010e

Browse files
authored
Prepare for dartdoc 0.41.0. (#2589)
* Prepare for dartdoc 0.41.0. * Revert everything but analyzer * Disable coverage? * Turn back on coverage to get a good debug log * await coverage before quitting * Re-update all packages and disable coverage * Update changelog * Update changelog One More Time
1 parent a9f8e07 commit e2d010e

File tree

6 files changed

+41
-21
lines changed

6 files changed

+41
-21
lines changed

.github/workflows/test.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,21 @@ jobs:
5252
run: ./tool/travis.sh
5353
env:
5454
DARTDOC_BOT: ${{ matrix.job }}
55-
COVERAGE_TOKEN: true # this needs to be set to enable coverage
55+
# TODO(jcollins-g): uncomment after #2590 is fixed
56+
#COVERAGE_TOKEN: true # this needs to be set to enable coverage
5657
- name: ${{ matrix.job }}
5758
if: runner.os == 'Windows' && matrix.job == 'main'
5859
run: pub run grinder buildbot
5960
env:
6061
DARTDOC_BOT: ${{ matrix.job }}
61-
- id: coverage
62-
name: Upload coverage
63-
if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
64-
uses: coverallsapp/github-action@v1.1.2
65-
with:
66-
github-token: ${{ secrets.GITHUB_TOKEN }}
67-
path-to-lcov: lcov.info
68-
- name: Echo coveralls api result
69-
if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
70-
run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}
62+
# TODO(jcollins-g): uncomment after #2590 is fixed
63+
#- id: coverage
64+
# name: Upload coverage
65+
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
66+
# uses: coverallsapp/github-action@v1.1.2
67+
# with:
68+
# github-token: ${{ secrets.GITHUB_TOKEN }}
69+
# path-to-lcov: lcov.info
70+
#- name: Echo coveralls api result
71+
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
72+
# run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## 0.41.0
2+
* Write out doc files for static methods on extensions. (#2588, #2591)
3+
* Fix a crash where dartdoc tried to create a duplicate field in the event
4+
a static const extension member is declared. (#2585)
5+
* Implementation of generic type aliases. (#2584, #2575, #2558)
6+
* BREAKING CHANGE: Refactors to better support new type handling.
7+
With #2573 and changes building on it, `linkedReturnType` must be changed
8+
to either `modelType` or `modelType.returnType` in templates. (#2583, #2573)
9+
* Add an option for setting arguments for tool compilation. (#2576)
10+
* Make signature of categoriesWithPublicLibraries more accurate. (#2571)
11+
* Improve analysis performance by avoiding hints/lints when resolving
12+
files. (#2566)
13+
* Additional implementation for Mustachio. (#2568, #2555, #2554, #2549, #2547,
14+
#2546)
15+
* Update highlight.js to include plaintext support and optionally, warn if the
16+
user does not specify a language on code blocks. (#2560, #2559, #2593)
17+
* Fix invalid json generation on an empty categories list. (#2550)
18+
* Many minor internal cleanups related to new lints and ecosystem changes.
19+
120
## 0.40.0
221
* More implementation added for Mustachio (#2481, #2482, #2488, #2491, #2497,
322
#2498, #2512, #2515, #2519, #2523, #2525)

dartdoc_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dartdoc:
22
linkToSource:
33
root: '.'
4-
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v0.40.0/%f%#L%l%'
4+
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v0.41.0/%f%#L%l%'

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated code. Do not modify.
2-
const packageVersion = '0.40.0';
2+
const packageVersion = '0.41.0';

pubspec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: dartdoc
22
# Run `grind build` after updating.
3-
version: 0.40.0
3+
version: 0.41.0
44
description: A non-interactive HTML documentation generator for Dart source code.
55
homepage: https://github.com/dart-lang/dartdoc
66
environment:
77
sdk: '>=2.11.99 <3.0.0'
88

99
dependencies:
10-
analyzer: ^1.2.0
10+
analyzer: ^1.3.0
1111
args: ^2.0.0
1212
charcode: ^1.2.0
1313
collection: ^1.2.0
@@ -27,12 +27,12 @@ dependencies:
2727

2828
dev_dependencies:
2929
async: ^2.0.8
30-
build: ^1.5.0
30+
build: ^2.0.0
3131
build_runner: ^1.10.0
32-
build_test: ^1.3.0
32+
build_test: ^2.0.0
3333
build_version: ^2.0.1
34-
coverage: ^0.15.2
35-
dart_style: ^1.3.9
34+
coverage: ^1.0.2
35+
dart_style: ^2.0.0
3636
grinder: ^0.9.0-nullsafety.0
3737
http: ^0.13.0
3838
pedantic: ^1.11.0

tool/subprocess_launcher.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ class CoverageSubprocessLauncher extends SubprocessLauncher {
116116
perLine: parsePortAsString);
117117

118118
if (coverageEnabled) {
119-
// ignore: unawaited_futures
120-
super.runStreamed('pub', [
119+
await super.runStreamed('pub', [
121120
'run',
122121
'coverage:collect_coverage',
123122
'--wait-paused',

0 commit comments

Comments
 (0)