Breaking changes
- Added
SearchOrder.trendingfor pub.dev's trend-score ordering. Consumers
with an exhaustive switch overSearchOrdermust add atrendingcase.
Added
packageLikes— public like count of a package, no authentication required.publisherInfo— public publisher profile.packageVersionScore— score of a single package version.packageVersionOptions— retraction status of a single package version.topicNameCompletion— every topic mapped to its package count.SearchResults.message, set when pub.dev could not fully honor the query.PackageScoreCard.weeklyVersionDownloads,WeeklyVersionDownloads, and
VersionRangeWeeklyDownloadsfor total and version-range download histories.Repository.fromMapandRepository.fromJson.- Re-exported the
pubspec_parsedependency types exposed through
PubPackage.latestPubspec.
Fixed
- Search queries and tags now percent-encode reserved characters such as
#
and&instead of silently truncating the request. fetchGooglePackagesno longer sends a malformedtools.dart.devpublisher
tag and now includeslabs.dart.dev.
Deprecated
SearchOrder.popularity; useSearchOrder.downloads.PackageScore.popularityScore; use
PackageScore.downloadCount30Days.LatestVersion; comparePubPackage.versiondirectly. Removal is scheduled
for 5.0.0.
Other changes
- Documented pub.dev's 10-page search limit and its effect on recursive search
helpers. - Modernized analysis, CI, and automated publishing. Releases now authenticate
to pub.dev with GitHub OIDC instead of a long-lived workflow credential.
Full changelog: 3.2.0...4.0.0