Skip to content

Close deep imports under lib/ with an exports map #458

Description

@cjbarth

package.json has no exports field, so every compiled module under lib/ can be deep-imported: 34 runtime exports across 10 modules, against 5 from the package root. #441 deprecates them in 5.2.0, after exporting from the root the types the root API already uses. Nothing else is promoted. This issue is the v6 step that follows.

Closing the surface also makes "document the entire external API" a bounded job: a handful of exports plus the types, rather than 34 across 10 modules. It also settles, for every symbol at once, the question #429 had to argue for a single function: whether removing something that is reachable only by deep import is breaking.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions