From f0db7ce4e9809af3841d08622f7eccf18e4577ae Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Tue, 30 Dec 2025 04:36:22 +0000 Subject: [PATCH] refactor: move blob-related files to web/blob/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move blob.cpp, DOMFormData, JSDOMFile, and JSDOMFormData from bindings/ and webcore/ to web/blob/. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- cmake/Sources.json | 1 + cmake/targets/BuildBun.cmake | 1 + src/buntime/jsc.zig | 2 +- src/buntime/{bindings => web/blob}/DOMFormData.cpp | 0 src/buntime/{bindings => web/blob}/DOMFormData.h | 0 src/buntime/{bindings => web/blob}/DOMFormData.zig | 0 src/buntime/{bindings => web/blob}/JSDOMFile.cpp | 0 src/buntime/{bindings => web/blob}/JSDOMFile.h | 0 src/buntime/{webcore => web/blob}/JSDOMFormData.cpp | 0 src/buntime/{webcore => web/blob}/JSDOMFormData.h | 0 src/buntime/{bindings => web/blob}/blob.cpp | 0 src/buntime/{bindings => web/blob}/blob.h | 0 12 files changed, 3 insertions(+), 1 deletion(-) rename src/buntime/{bindings => web/blob}/DOMFormData.cpp (100%) rename src/buntime/{bindings => web/blob}/DOMFormData.h (100%) rename src/buntime/{bindings => web/blob}/DOMFormData.zig (100%) rename src/buntime/{bindings => web/blob}/JSDOMFile.cpp (100%) rename src/buntime/{bindings => web/blob}/JSDOMFile.h (100%) rename src/buntime/{webcore => web/blob}/JSDOMFormData.cpp (100%) rename src/buntime/{webcore => web/blob}/JSDOMFormData.h (100%) rename src/buntime/{bindings => web/blob}/blob.cpp (100%) rename src/buntime/{bindings => web/blob}/blob.h (100%) diff --git a/cmake/Sources.json b/cmake/Sources.json index 352af086cb..170e764e27 100644 --- a/cmake/Sources.json +++ b/cmake/Sources.json @@ -79,6 +79,7 @@ "src/buntime/core/*.cpp", "src/buntime/web/fetch/*.cpp", "src/buntime/web/url/*.cpp", + "src/buntime/web/blob/*.cpp", "src/bake/*.cpp", "src/deps/*.cpp", "src/vm/*.cpp", diff --git a/cmake/targets/BuildBun.cmake b/cmake/targets/BuildBun.cmake index e4b5d13ee2..1faee9141c 100644 --- a/cmake/targets/BuildBun.cmake +++ b/cmake/targets/BuildBun.cmake @@ -891,6 +891,7 @@ target_include_directories(${bun} PRIVATE ${CWD}/src/buntime/core ${CWD}/src/buntime/web/fetch ${CWD}/src/buntime/web/url + ${CWD}/src/buntime/web/blob ${CWD}/src/buntime/modules ${CWD}/src/js/builtins ${CWD}/src/napi diff --git a/src/buntime/jsc.zig b/src/buntime/jsc.zig index 93a591d01d..390700ead8 100644 --- a/src/buntime/jsc.zig +++ b/src/buntime/jsc.zig @@ -49,7 +49,7 @@ pub const CallFrame = @import("./bindings/CallFrame.zig").CallFrame; pub const CommonAbortReason = @import("./bindings/CommonAbortReason.zig").CommonAbortReason; pub const CommonStrings = @import("./bindings/CommonStrings.zig").CommonStrings; pub const CustomGetterSetter = @import("./bindings/CustomGetterSetter.zig").CustomGetterSetter; -pub const DOMFormData = @import("./bindings/DOMFormData.zig").DOMFormData; +pub const DOMFormData = @import("./web/blob/DOMFormData.zig").DOMFormData; pub const DOMURL = @import("./web/url/DOMURL.zig").DOMURL; pub const DecodedJSValue = @import("./bindings/DecodedJSValue.zig").DecodedJSValue; pub const DeferredError = @import("./api/error/DeferredError.zig").DeferredError; diff --git a/src/buntime/bindings/DOMFormData.cpp b/src/buntime/web/blob/DOMFormData.cpp similarity index 100% rename from src/buntime/bindings/DOMFormData.cpp rename to src/buntime/web/blob/DOMFormData.cpp diff --git a/src/buntime/bindings/DOMFormData.h b/src/buntime/web/blob/DOMFormData.h similarity index 100% rename from src/buntime/bindings/DOMFormData.h rename to src/buntime/web/blob/DOMFormData.h diff --git a/src/buntime/bindings/DOMFormData.zig b/src/buntime/web/blob/DOMFormData.zig similarity index 100% rename from src/buntime/bindings/DOMFormData.zig rename to src/buntime/web/blob/DOMFormData.zig diff --git a/src/buntime/bindings/JSDOMFile.cpp b/src/buntime/web/blob/JSDOMFile.cpp similarity index 100% rename from src/buntime/bindings/JSDOMFile.cpp rename to src/buntime/web/blob/JSDOMFile.cpp diff --git a/src/buntime/bindings/JSDOMFile.h b/src/buntime/web/blob/JSDOMFile.h similarity index 100% rename from src/buntime/bindings/JSDOMFile.h rename to src/buntime/web/blob/JSDOMFile.h diff --git a/src/buntime/webcore/JSDOMFormData.cpp b/src/buntime/web/blob/JSDOMFormData.cpp similarity index 100% rename from src/buntime/webcore/JSDOMFormData.cpp rename to src/buntime/web/blob/JSDOMFormData.cpp diff --git a/src/buntime/webcore/JSDOMFormData.h b/src/buntime/web/blob/JSDOMFormData.h similarity index 100% rename from src/buntime/webcore/JSDOMFormData.h rename to src/buntime/web/blob/JSDOMFormData.h diff --git a/src/buntime/bindings/blob.cpp b/src/buntime/web/blob/blob.cpp similarity index 100% rename from src/buntime/bindings/blob.cpp rename to src/buntime/web/blob/blob.cpp diff --git a/src/buntime/bindings/blob.h b/src/buntime/web/blob/blob.h similarity index 100% rename from src/buntime/bindings/blob.h rename to src/buntime/web/blob/blob.h