-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(fetch-router): add static-middleware #10808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
markdalgleish
wants to merge
21
commits into
main
Choose a base branch
from
markdalgleish/static-middleware
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7b1b127
Add static-middleware to fetch-router
markdalgleish e7836d5
Merge branch 'main' into markdalgleish/static-middleware
markdalgleish 6d8f07b
Tidy up stray diffs after merge
markdalgleish f8cffa8
Fix ReadableStream type error
markdalgleish 9247b87
Merge branch 'main' into markdalgleish/static-middleware
markdalgleish 9776412
Update pnpm lockfile
markdalgleish d08727d
Migrate more file handler logic to headers package
markdalgleish 7507f2b
Add support for strong ETags
markdalgleish 4c176d0
Use context.url instead of context.request.url
markdalgleish c66f816
Update readme
markdalgleish 1122a4b
Use new RequestContext instead of manually mocking
markdalgleish 90d5aba
Export ContentRange and ContentRangeInit
markdalgleish 2ce4125
Merge branch 'main' into markdalgleish/static-middleware
markdalgleish 2caf8dc
Migrate to `findFile` and `file` response helper
markdalgleish 323054d
Move findFile util into lazy-file
markdalgleish 98ed205
Merge branch 'main' into markdalgleish/static-middleware
markdalgleish cc504e3
Add `matches` to If-Range header, refactor, update docs
markdalgleish 61db8e3
Address feedback, refactor
markdalgleish 5061e94
Refactor
markdalgleish ef68ecf
Reduce test diff
markdalgleish c0c1c0a
Add docs for Range `normalize`
markdalgleish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // See https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/62651 | ||
|
|
||
| interface ReadableStream<R = any> { | ||
| values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R> | ||
| [Symbol.asyncIterator](): AsyncIterableIterator<R> | ||
| } | ||
|
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.