FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove APIs and group single entrypoint by bluwy · Pull Request #109 · changesets/ghcommit · GitHub

Remove APIs and group single entrypoint - #109

Merged
bluwy merged 4 commits into
mainfrom
polish-main-api
Jun 17, 2026
Merged

Remove APIs and group single entrypoint#109
bluwy merged 4 commits into
mainfrom
polish-main-api

Conversation

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 previously approved these changes Jun 15, 2026
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread src/index-browser.ts Outdated
bluwy added 2 commits June 16, 2026 18:00
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
bluwy added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit 203f0b7 Jun 17, 2026
11 checks passed
bluwy deleted the polish-main-api branch June 17, 2026 16:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL