Skip to content

v4: api:extract keeps imports of symbols it trimmed as @internal #3946

Description

@barjin

API Extractor collects the import list before dropping non-@public declarations and never revisits it, so a symbol referenced only by @internal members lingers as an import and reads as public API - e.g. docs/public-api/crawlee-core.api.md imports Cookie from tough-cookie even though no exported symbol uses it.

scripts/api-extractor/run.ts could prune import lines whose binding appears nowhere else in the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions