Skip to content

pub_api_client 4.0.0

Latest

Choose a tag to compare

@leoafarias leoafarias released this 19 Aug 01:21
4a1c949

Breaking changes

  • Added SearchOrder.trending for pub.dev's trend-score ordering. Consumers
    with an exhaustive switch over SearchOrder must add a trending case.

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
    VersionRangeWeeklyDownloads for total and version-range download histories.
  • Repository.fromMap and Repository.fromJson.
  • Re-exported the pubspec_parse dependency types exposed through
    PubPackage.latestPubspec.

Fixed

  • Search queries and tags now percent-encode reserved characters such as #
    and & instead of silently truncating the request.
  • fetchGooglePackages no longer sends a malformed tools.dart.dev publisher
    tag and now includes labs.dart.dev.

Deprecated

  • SearchOrder.popularity; use SearchOrder.downloads.
  • PackageScore.popularityScore; use
    PackageScore.downloadCount30Days.
  • LatestVersion; compare PubPackage.version directly. 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