Skip to content

refactor(cos): use getFileHandle() instead of requestFileHandle() - #1792

Open
tomayac wants to merge 2 commits into
huggingface:mainfrom
tomayac:cos-get-file-handle
Open

tomayac wants to merge 2 commits into
huggingface:mainfrom
tomayac:cos-get-file-handle

Conversation

@tomayac

@tomayac tomayac commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The Cross-Origin Storage API renamed requestFileHandle() to getFileHandle() in WICG/cross-origin-storage#86. This updates both calls and the bundled type definitions to match, and isAvailable() now checks for getFileHandle() itself, so an implementation without it falls back to the next cache.

@tomayac

tomayac commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

CC: @nico-martin or @xenova 😄!

@xenova xenova left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

This branch has not been deployed

No deployments
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.

3 participants