Skip to content

Add a public API report for exported types #91

Description

@Lakes41

Difficulty: Advanced

Type: Test

Summary

Add a public API report to detect accidental breaking changes to exported classes, types, subpath exports, and configuration interfaces.

Current Behaviour

The SDK has TypeScript types and build smoke tests, but there is no explicit reviewed API surface report that catches accidental export removals or signature changes.

Expected Behaviour

Pull requests that change the public SDK surface should produce a clear API diff for maintainers to review.

Suggested Implementation

Use a tool such as API Extractor or a lightweight generated declaration snapshot. Include root and subpath exports in the report and require intentional updates when the public API changes.

Files or Areas Likely Affected

  • package.json
  • src/index.ts
  • src/client.ts
  • src/types.ts
  • src/utils.ts
  • src/errors.ts
  • api-report/
  • .github/workflows/

Acceptance Criteria

  • A command generates or validates the public API report
  • Root exports are included in the report
  • Subpath exports are included in the report
  • CI fails when public exports change without updating the report
  • Contributor documentation explains how to update the report
  • Internal implementation details are excluded where possible

Additional Notes

This complements package smoke tests by focusing on intentional API compatibility.

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions