Skip to content

Commit 50e2153

Browse files
authored
Bump to 7.0.3 (#3553)
1 parent 967cc54 commit 50e2153

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 7.0.2
2+
3+
* Remove support for the deprecated `new ` prefix in comment references.
4+
(#3529)
5+
* Remove ModelComment.staticElement, ModelNode.commentRefs,
6+
PackageWarningDefinition, packageWarningsByName, packageWarningDefinitions,
7+
AliasedElementType.aliasedParameters, and GenericTypeAliasElementType.
8+
* Privatize ModelNode.element, ModelNode.resourceProvider,
9+
`PackageWarning.template, PackageWarning.warnablePrefix, and
10+
PackageWarning.referredFromPrefix.
11+
* The `missingExampleFile` and `unknownHtmlFragment` flags can now be
12+
included or ignored with options.
13+
* Fix canonicalization scoring when library shares package name. (#3551)
14+
115
## 7.0.1
216

317
* Add back missing search bar to left sidenav on narrow screens.

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/v7.0.1/%f%#L%l%'
4+
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v7.0.2/%f%#L%l%'

lib/src/model/canonicalization.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ abstract mixin class Canonicalization
4242
return canonicalLibrary;
4343
}
4444

45+
// TODO(srawlins): This function is minimally tested; it's tricky to unit test
46+
// because it takes a lot of elements into account, like URIs, differing
47+
// package names, etc. Anyways, add more tests, in addition to the
48+
// `StringName` tests in `model_test.dart`.
4549
static _ScoredCandidate _scoreElementWithLibrary(Library library,
4650
String elementQualifiedName, Set<String> elementLocationPieces) {
4751
var scoredCandidate = _ScoredCandidate(library);
@@ -58,7 +62,9 @@ abstract mixin class Canonicalization
5862
}
5963

6064
// Give a big boost if the library has the package name embedded in it.
61-
if (library.package.namePieces.intersection(library.namePieces).isNotEmpty) {
65+
if (library.package.namePieces
66+
.intersection(library.namePieces)
67+
.isNotEmpty) {
6268
scoredCandidate._alterScore(1.0, _Reason.packageName);
6369
}
6470

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 = '7.0.1';
2+
const packageVersion = '7.0.2';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dartdoc
2-
version: 7.0.1
2+
version: 7.0.2
33
description: A non-interactive HTML documentation generator for Dart source code.
44
repository: https://github.com/dart-lang/dartdoc
55

0 commit comments

Comments
 (0)