github dart-lang/tools api_summary-v1.3.0
package:api_summary v1.3.0

49 minutes ago
  • Include ApiDeclarationStatus.nonPublic skeleton declarations in
    ApiSummary.libraries unconditionally so api.json and api.yaml match
    api.txt.
  • Fail expectApiSummaryClean and api_summary --check by default when
    non-public types leak into public API signatures (including lib/src/ types
    or package-owned types referenced by the primary barrel without being
    exported by it).
  • Add allowNonPublicTypes optional named constructor parameter to
    ApiSummaryCustomizer and --allow-non-public-types flag to api_summary --check.
  • Add includeImplicitNonPublicMembers and includeReferencedTypes optional
    named constructor parameters to ApiSummaryCustomizer.
  • Canonicalize the sort order of libraries, declarations, constructors,
    members, named parameters, and named record fields in the ApiSummary model
    (api.json and api.yaml) to match api.txt, and sort getter/setter pairs
    ahead of suffixed names (such as a, a=, a9, a9=).
  • Track parameter defaultValue on ApiParameter (including inherited super.
    defaults) and render non-null public default values in text, JSON, and YAML
    summaries (#2461).
  • Track constantValue on isConst ApiExecutable getters and render public
    constant values in text, JSON, and YAML summaries
    (#2462).
  • Resolve sealed class ApiClass.immediateSubtypes to the public subtype
    frontier (expanding non-public sealed intermediates, excluding extension
    types, disambiguating colliding subtype names, and checking primary-barrel
    exports), make immediateSubtypes optional in ApiClass.new, and add
    ApiClass.hasNonPublicSubtypes (rendered as <non-public> in api.txt)
    when uncovered non-public subtypes exist.
  • Track pubspec.yaml runtime dependencies constraints for external packages
    referenced or re-exported in the public API (including transitive re-exports
    and external typedefs) on ApiSummary.dependencies, and render them inline
    on referenced package:... library headers in api.txt (or under
    dependencies: when no inline header exists)
    (#2463).
  • Normalize caret-equivalent version constraints (such as >=3.9.0 <4.0.0 to
    ^3.9.0) in environment and dependencies.

Don't miss a new tools release

NewReleases is sending notifications on new releases.