Skip to content

feat: add onFile hook - #145

Merged
mcollina merged 1 commit into
mainfrom
feat/on-file-hook
Oct 20, 2026
Merged

mcollina merged 1 commit into
mainfrom
feat/on-file-hook

Conversation

@mcollina

Copy link
Copy Markdown
Member

Add an onFile option that runs after final file selection and stat, including index and extension fallbacks, but before conditional response processing and stream creation. The hook supports asynchronous callbacks and propagates errors unchanged.

This also corrects the TypeScript type of metadata.stat to fs.Stats.

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@mcollina
mcollina merged commit 46b1e52 into main Oct 20, 2026
20 checks passed
@mcollina
mcollina deleted the feat/on-file-hook branch October 20, 2026 13:41
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