pana 0.8.0 pana: ^0.8.0 copied to clipboard
Evaluate the health and quality of a Dart package
0.8.0 #
-
PackageAnalyzer.inspectPackage
added a named argumentdeleteTemporaryDirectory
. Setting this tofalse
retains the directory and prints its location to the log. Useful for debugging. -
Maintenance
-
BREAKING
getMaintenanceScore
now takes an optionalage
parameter replacing the previously requiredpublishDate
parameter. -
Changed the meaning of version fields:
isExperimentalVersion
now means pre-V1.isPreReleaseVersion
now means there is a pre-release flag like-beta
,-alpha
, etc.
-
BREAKING maintenance-related
Suggestion
entries as moved toMaintenance.suggestions
-
-
BREAKING
Suggestion.file
is nowString
instead ofdynamic
. -
Detect the new format of native extensions.
-
Unblock platform classification on a new class of errors.
-
Use
PUB_HOSTED_URL
for package downloads.
0.7.3+1 #
- Allow more versions of
package:args
.
0.7.3 #
-
Added
pana
as an executable. Enablespub global activate pana
. -
Improved license detection: commented license files are now recognized.
0.7.2 #
-
Handle more critical exceptions and report them with more details.
-
The
Suggestion.bug
constructor had a breaking change – a required argument was added, but this is not intended for invocation by end-users.
0.7.1 #
- Add
SuggestionLevel.bug
and use it to record fatal errors with the tool.
0.7.0+1 #
- Fixed issue where analyzer and/or formatter were run on directories with no Dart files.
0.7.0 #
-
Breaking changes
-
Summary.sdkVersion
is now aVersion
instead ofString
. -
new PackageAnalyzer(...)
now takes aDartSdk
instance instead of aString
.
-
-
static Future<PackageAnalyzer> create(...)
was added toPackageAnalyzer
. -
Added
logger
optional argument toPackageAnalyzer.inspectPackage
.
0.6.2 #
- Allow platform classification for a small class of analysis errors.
0.6.1 #
- Don't count the absence of an
analysis_options.yaml
file against a package.
0.6.0 #
-
Breaking changes
- Removed
ToolProblem
class. - Removed
Summary.toolProblems
, in favor ofSummary.suggestions
.
- Removed
-
Detect and store maintenance-related data in summary.
- Scoring of tool problems moved from
Fitness
toMaintenance
.
- Scoring of tool problems moved from
-
Provide human-readable feedback and instructions on some of the issues we find during the analysis.
0.5.1 #
-
Use a consistent 2 minute timeout for all processes.
-
Classify platform as
nowhere
when part of analysis fails.
0.5.0 #
-
Breaking changes
License
renamed toLicenseFile
Summary.license
->licenses
: we'll return multiple licenses- Removed
LicenseNames.missing
: empty List will indicate no license file
-
Greatly expanded and improved license detection.
0.4.0 #
-
Breaking changes
-
Renamed
AnalyzerIssue
->ToolProblem
- Renamed
Summary.issues
->toolProblems
- Renamed
AnalyzerIssue.scope
->tool
- Renamed
AnalyzerScopes
->ToolNames
- Renamed
-
Renamed
AnalyzerOutput
->CodeProblem
- Renamed
Summary.analyzerItems
andDartFileSummary.analyzerItems
->codeProblems
- Renamed
-
Refactored
CodeProblem
(previouslyAnalyzerOutput
):- Split up
type
, new fields:severity
,errorType
,errorCode
- Renamed
error
todescription
- Split up
-
Refactored
Fitness
:- Renamed
total
->magnitude
- Removed
value
, usingshortcoming
instead (value
=magnitude - shortcoming;
)
- Renamed
-
Refactored
PubSummary
, renamed toPkgResolution
- Moved
pubspec
->Summary
- Moved
pkgVersion
->Pubspec.version
- Moved
authors
->Pubspec.authors
- Merged
packageVersions
andavailableVersions
intodependencies
- Renamed
Summary.pubSummary
->pkgResolution
- Moved
-
Refactored
platform
:- Renamed
PlatformFlags
->PlatformNames
- Removed most of the platform-related classes, using
DartPlatform
instead
- Renamed
-
0.3.0 #
-
Removed
PlatformSummary.package
in favor ofPlatformSummary.pubspec
of (new) typePubspecPlatform
. -
Renamed
KnownPlatforms
toPlatformFlags
. Also:- Removed
mirrors
,browser
andstandalone
. - Renamed
native
todartExtension
.
- Removed
-
PlatformInfo
- Now store
dart:*
references directly inuses
. worksInStandalone
renamed toworksOnServer
.- Other
.worksIn*
renamed toworksOn*
. - Added
String get description
which returns a simpleString
description of the supported platforms. Examples:everywhere
,flutter
,server, web
,conflict
. - Removed
angular
as a value inuses
.
- Now store
0.2.4 #
-
Detect native extensions.
-
Detect licenses.
0.2.3 #
-
Lot's of stability improvements.
-
Improvements to error handling.
0.2.2 #
-
Lot's of cleanup to JSON output.
-
Improved stability.
-
Platform detection basics.
0.2.1 #
-
Added support for
flutter
packages. -
Expanded analysis to include transitive dependencies.
-
Added scoring library.
-
Moved the repo to
dart-lang
.
0.2.0 #
- A lot of tweaks. Still under heavy development.
0.0.1 #
- Initial version.