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
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index d70e9c8..9742a0d 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -52,19 +52,21 @@
run: ./tool/travis.sh
env:
DARTDOC_BOT: ${{ matrix.job }}
- COVERAGE_TOKEN: true # this needs to be set to enable coverage
+ # TODO(jcollins-g): uncomment after #2590 is fixed
+ #COVERAGE_TOKEN: true # this needs to be set to enable coverage
- name: ${{ matrix.job }}
if: runner.os == 'Windows' && matrix.job == 'main'
run: pub run grinder buildbot
env:
DARTDOC_BOT: ${{ matrix.job }}
- - id: coverage
- name: Upload coverage
- if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
- uses: coverallsapp/github-action@v1.1.2
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- path-to-lcov: lcov.info
- - name: Echo coveralls api result
- if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
- run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}
+ # TODO(jcollins-g): uncomment after #2590 is fixed
+ #- id: coverage
+ # name: Upload coverage
+ # if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
+ # uses: coverallsapp/github-action@v1.1.2
+ # with:
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
+ # path-to-lcov: lcov.info
+ #- name: Echo coveralls api result
+ # if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
+ # run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 80aec21..31c6bc7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,22 @@
+## 0.41.0
+* Write out doc files for static methods on extensions. (#2588, #2591)
+* Fix a crash where dartdoc tried to create a duplicate field in the event
+ a static const extension member is declared. (#2585)
+* Implementation of generic type aliases. (#2584, #2575, #2558)
+* BREAKING CHANGE: Refactors to better support new type handling.
+ With #2573 and changes building on it, `linkedReturnType` must be changed
+ to either `modelType` or `modelType.returnType` in templates. (#2583, #2573)
+* Add an option for setting arguments for tool compilation. (#2576)
+* Make signature of categoriesWithPublicLibraries more accurate. (#2571)
+* Improve analysis performance by avoiding hints/lints when resolving
+ files. (#2566)
+* Additional implementation for Mustachio. (#2568, #2555, #2554, #2549, #2547,
+ #2546)
+* Update highlight.js to include plaintext support and optionally, warn if the
+ user does not specify a language on code blocks. (#2560, #2559, #2593)
+* Fix invalid json generation on an empty categories list. (#2550)
+* Many minor internal cleanups related to new lints and ecosystem changes.
+
## 0.40.0
* More implementation added for Mustachio (#2481, #2482, #2488, #2491, #2497,
#2498, #2512, #2515, #2519, #2523, #2525)
diff --git a/dartdoc_options.yaml b/dartdoc_options.yaml
index b8bf2a4..9941ba2 100644
--- a/dartdoc_options.yaml
+++ b/dartdoc_options.yaml
@@ -1,4 +1,4 @@
dartdoc:
linkToSource:
root: '.'
- uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v0.40.0/%f%#L%l%'
+ uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v0.41.0/%f%#L%l%'
diff --git a/lib/src/version.dart b/lib/src/version.dart
index 84b74d8..eef18fc 100644
--- a/lib/src/version.dart
+++ b/lib/src/version.dart
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
-const packageVersion = '0.40.0';
+const packageVersion = '0.41.0';
diff --git a/pubspec.yaml b/pubspec.yaml
index 084b86e..5fe6006 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,13 +1,13 @@
name: dartdoc
# Run `grind build` after updating.
-version: 0.40.0
+version: 0.41.0
description: A non-interactive HTML documentation generator for Dart source code.
homepage: https://github.com/dart-lang/dartdoc
environment:
sdk: '>=2.11.99 <3.0.0'
dependencies:
- analyzer: ^1.2.0
+ analyzer: ^1.3.0
args: ^2.0.0
charcode: ^1.2.0
collection: ^1.2.0
@@ -27,12 +27,12 @@
dev_dependencies:
async: ^2.0.8
- build: ^1.5.0
+ build: ^2.0.0
build_runner: ^1.10.0
- build_test: ^1.3.0
+ build_test: ^2.0.0
build_version: ^2.0.1
- coverage: ^0.15.2
- dart_style: ^1.3.9
+ coverage: ^1.0.2
+ dart_style: ^2.0.0
grinder: ^0.9.0-nullsafety.0
http: ^0.13.0
pedantic: ^1.11.0
diff --git a/tool/subprocess_launcher.dart b/tool/subprocess_launcher.dart
index 838531b..e25646e 100644
--- a/tool/subprocess_launcher.dart
+++ b/tool/subprocess_launcher.dart
@@ -116,8 +116,7 @@
perLine: parsePortAsString);
if (coverageEnabled) {
- // ignore: unawaited_futures
- super.runStreamed('pub', [
+ await super.runStreamed('pub', [
'run',
'coverage:collect_coverage',
'--wait-paused',