NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #876 most downloaded on pub.dev
An API Client for Pub to interact with public package information.
Last release 1 months ago
19 Aug 2026
Ships fairly regularly
a new release about every 6 months
Nearly every release is documented
notes for 32 of 33 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
34 releases · first in 2020
One column per quarter.
Added SearchOrder.trending for pub.dev's trend-score ordering. Consumers with an exhaustive switch over SearchOrder must add a trending case.
SearchOrder.trending for pub.dev's trend-score ordering. ConsumersSearchOrder must add a trending case.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, andVersionRangeWeeklyDownloads for total and version-range download histories.Repository.fromMap and Repository.fromJson.pubspec_parse dependency types exposed throughPubPackage.latestPubspec.#& instead of silently truncating the request.fetchGooglePackages no longer sends a malformed tools.dart.dev publisherlabs.dart.dev.SearchOrder.popularity; use SearchOrder.downloads.PackageScore.popularityScore; usePackageScore.downloadCount30Days.LatestVersion; compare PubPackage.version directly. Removal is scheduledFull changelog: 3.2.0...4.0.0
SearchOrder.trending for pub.dev's trend-score ordering. Consumers
with an exhaustive switch over SearchOrder must add a trending casepackageLikes — public like count of a package, no authentication required
(GET /api/packages/<package>/likes)publisherInfo — public publisher profile
(GET /api/publishers/<publisherId>)packageVersionScore — score of a single package version
(GET /api/packages/<package>/versions/<version>/score)packageVersionOptions — retraction status of a single package version
(GET /api/packages/<package>/versions/<version>/options)topicNameCompletion — every topic mapped to its package count
(GET /api/topic-name-completion-data)SearchResults.message, set when pub.dev could not fully honour the queryPackageScoreCard.weeklyVersionDownloads, WeeklyVersionDownloads, and
VersionRangeWeeklyDownloads — total weekly downloads plus major, minor,
and patch version-range histories
#78Repository.fromMap and Repository.fromJson, matching the other modelspubspec_parse dependency types (Dependency,
HostedDependency, GitDependency, PathDependency, SdkDependency,
HostedDetails, Pubspec) so consumers can name the types reachable from
PubPackage.latestPubspec
#78# or & in the query
or in a tag silently truncated the request, so searches like c# & c++
returned results for cfetchGooglePackages no longer sends a malformed tools.dart.dev publisher
tag, and now includes the labs.dart.dev publisherSearchOrder.popularity — pub.dev retired the popularity score and serves
these requests as SearchOrder.top. Use SearchOrder.downloadsPackageScore.popularityScore — pub.dev no longer returns this field. Use
PackageScore.downloadCount30DaysLatestVersion — unreachable model; no endpoint returns it and no client
method produces it. Scheduled for removal in 5.0.0fetchAllPackages,
fetchPublisherPackages, and fetchFlutterFavorites, and separately for
each publisher queried by fetchGooglePackages*.mapper.dart files are excluded from analysis, and three lint
rules removed from the Dart SDK were dropped from analysis_options.yamlExpose discontinued/advisory metadata on PubPackage and drop the large cached fixture from version control #75
Download count is nullable by @Rexios80 in #59
Adds topic tag by @Rexios80 in #53
Replaced deprecated pubspec to pubspec_parse package
pubspec to pubspec_parse packagepubspec_parseFull Changelog: 2.7.1...3.0.0
Fix result data class by @tilucasoli in #50
Full Changelog: 2.7.0...2.7.1
Updated schema by @leoafarias in #48
Full Changelog: 2.6.0...3.0.0
Fixes issue when closing client by @leoafarias in #40
Full Changelog: 2.5.0...2.6.0
Update dependencies; Dart SDK version to 3.0.0 . by @gmpassos in #36
3.0.0. by @gmpassos in #36Full Changelog: 2.4.0...2.5.0
3.0.0 by @gmpassoslints by @gmpassosAdded the ability to search with any tags #32 thanks @Rexios80
* Updated dependencies * Removed freezed
Thank you @Rexios80 for all the great contributions
Thank you @Rexios80 for all the great contributions
Fixed Client interface for custom HTTP Client by @Rexios80 #17
Client interface for custom HTTP Client by @Rexios80 #17Added close method to PubClient
close method to PubClientExposed SearchOrder for sorting
### Added * Ability to sort search results
PackageScore nullable fields. Package metrics do not return fields when the package is being processed. #10
PublisherId is now a nullable string
### Added * Better exception messaging
Support for retrieving pub credentials on Windows
### Added * Ability to list liked packages * Like and unlike a package
Deprecated packages to keep a smaller dependency tree
### Changed * Deprecated checkUpdatePrinter * Null safety
Nothing published for this version
Ability to pass custom HTTP Client as a parameter
Added search filter for publisher or for dependency
publisher or for dependency### Changed * Added package publisher * Added package options * Added package version info * Added documentation * Exposed models
Nothing published for this version
### Changed * Better pubspec parsing
Added console printer for package update
### Changed * Added user-agent to requests
### Changed * Further improvements
Test improvements and API cleanup
### Changed * Initial version
70
likes
160
points
228k
downloads
API reference
leoafarias.com
An API Client for Pub to interact with public package information.
Repository (GitHub)
View/report issues
MIT ( license )
dart_mappable , http , oauth2 , path , pubspec_parse
Packages that depend on pub_api_client
70
likes
160
points
228k
downloads
API reference
leoafarias.com
An API Client for Pub to interact with public package information.
Repository (GitHub)
View/report issues
MIT ( license )
dart_mappable , http , oauth2 , path , pubspec_parse
Packages that depend on pub_api_client
Back
Your coding agent can read these notes before it upgrades. Set up the MCP server →