api_summary 1.3.0
api_summary: ^1.3.0 copied to clipboard
Creates an API summary for a package.
1.3.0 #
- Include
ApiDeclarationStatus.nonPublicskeleton declarations inApiSummary.librariesunconditionally soapi.jsonandapi.yamlmatchapi.txt. - Fail
expectApiSummaryCleanandapi_summary --checkby default when non-public types leak into public API signatures (includinglib/src/types or package-owned types referenced by the primary barrel without being exported by it). - Add
allowNonPublicTypesoptional named constructor parameter toApiSummaryCustomizerand--allow-non-public-typesflag toapi_summary --check. - Add
includeImplicitNonPublicMembersandincludeReferencedTypesoptional named constructor parameters toApiSummaryCustomizer. - Canonicalize the sort order of libraries, declarations, constructors,
members, named parameters, and named record fields in the
ApiSummarymodel (api.jsonandapi.yaml) to matchapi.txt, and sort getter/setter pairs ahead of suffixed names (such asa,a=,a9,a9=). - Track parameter
defaultValueonApiParameter(including inheritedsuper.defaults) and render non-null public default values in text, JSON, and YAML summaries (#2461). - Track
constantValueonisConstApiExecutablegetters and render public constant values in text, JSON, and YAML summaries (#2462). - Resolve
sealedclassApiClass.immediateSubtypesto the public subtype frontier (expanding non-publicsealedintermediates, excluding extension types, disambiguating colliding subtype names, and checking primary-barrel exports), makeimmediateSubtypesoptional inApiClass.new, and addApiClass.hasNonPublicSubtypes(rendered as<non-public>inapi.txt) when uncovered non-public subtypes exist. - Track
pubspec.yamlruntimedependenciesconstraints for external packages referenced or re-exported in the public API (including transitive re-exports and external typedefs) onApiSummary.dependencies, and render them inline on referencedpackage:...library headers inapi.txt(or underdependencies:when no inline header exists) (#2463). - Normalize caret-equivalent version constraints (such as
>=3.9.0 <4.0.0to^3.9.0) inenvironmentanddependencies.
1.2.0 #
- Sort the primary package entry point (
package:<pkg>/<pkg>.dart) first and@experimentalpublic entry points after stable public entry points so shared declarations expand in the primary library first and emit(see above)in secondary or experimental libraries. - Support relative
packagePatharguments (such as'.') inapiSummary.
1.1.0 #
- Added
expectApiSummaryClean,ApiSummaryFormat, andApiSummaryVerificationExceptionto support one-liner golden file verification indart test(e.g.test('api_summary', expectApiSummaryClean);). - Added
--write(-w),--check(-c), and--output(-o) flags to theapi_summaryCLI executable.
1.0.0 #
- Initial stable release.