Skip to content

Remove APIs and group single entrypoint#109

Open
bluwy wants to merge 2 commits into
mainfrom
polish-main-api
Open

Remove APIs and group single entrypoint#109
bluwy wants to merge 2 commits into
mainfrom
polish-main-api

Conversation

@bluwy

@bluwy bluwy commented Jun 15, 2026

Copy link
Copy Markdown
Member

I'd like to propose some breaking changes:

  1. Removed commitFilesFromBuffers and commitFilesFromDirectory. Through the recent refactors, you can see that they're a thin wrapper over the core commitFilesFromBase64.

    I don't think it's hard for users to use commitFilesFromBase64 directly, so I'd prefer if we consolidate to that.

  2. Remove subpath exports, only use the main "." entrypoint.

    With exports conditions, it should be possible to split the API for browsers and node in the same subpath. Plus treeshaking works the same with this approach. You get the same small bundle size already if you only use one set of APIs.


Maybe I'd rename commitFilesFromBase64 to something more user-friendly I think, but I'd like to focus on the API trimming for now.

Andarist
Andarist previously approved these changes Jun 15, 2026
Comment thread package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants