Skip to content

Bump to 7.0.2 #3553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 7.0.2

* Remove support for the deprecated `new ` prefix in comment references.
(#3529)
* Remove ModelComment.staticElement, ModelNode.commentRefs,
PackageWarningDefinition, packageWarningsByName, packageWarningDefinitions,
AliasedElementType.aliasedParameters, and GenericTypeAliasElementType.
* Privatize ModelNode.element, ModelNode.resourceProvider,
`PackageWarning.template, PackageWarning.warnablePrefix, and
PackageWarning.referredFromPrefix.
* The `missingExampleFile` and `unknownHtmlFragment` flags can now be
included or ignored with options.
* Fix canonicalization scoring when library shares package name. (#3551)

## 7.0.1

* Add back missing search bar to left sidenav on narrow screens.
Expand Down
2 changes: 1 addition & 1 deletion dartdoc_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dartdoc:
linkToSource:
root: '.'
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v7.0.1/%f%#L%l%'
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v7.0.2/%f%#L%l%'
8 changes: 7 additions & 1 deletion lib/src/model/canonicalization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ abstract mixin class Canonicalization
return canonicalLibrary;
}

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

// Give a big boost if the library has the package name embedded in it.
if (library.package.namePieces.intersection(library.namePieces).isNotEmpty) {
if (library.package.namePieces
.intersection(library.namePieces)
.isNotEmpty) {
scoredCandidate._alterScore(1.0, _Reason.packageName);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
const packageVersion = '7.0.1';
const packageVersion = '7.0.2';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dartdoc
version: 7.0.1
version: 7.0.2
description: A non-interactive HTML documentation generator for Dart source code.
repository: https://github.com/dart-lang/dartdoc

Expand Down