From ff76ef78c6906f5c1ae4241c7d4430cefbe799db Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Fri, 20 Aug 2021 15:33:39 -0400 Subject: [PATCH] fix #1536: http range requests now use less memory --- CHANGELOG.md | 8 ++++++ internal/fs/fs.go | 23 +++++++++++++++++ internal/fs/fs_mock.go | 7 ++++++ internal/fs/fs_real.go | 51 +++++++++++++++++++++++++++++++++++++ pkg/api/serve_other.go | 56 +++++++++++++++++++++++++++++------------ scripts/js-api-tests.js | 46 ++++++++++++++++++++++++++++++--- 6 files changed, 172 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3410aebe3b6..b8ba6302c81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## Unreleased + +* Make HTTP range requests more efficient ([#1536](https://github.com/evanw/esbuild/issues/1536)) + + The local HTTP server built in to esbuild supports [range requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests), which are necessary for video playback in Safari. This means you can now use `