@vercel/build-utils 13.36.1 → 13.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.36.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 2c75803: Preserve 4-byte UTF-8 characters when streaming string `FileBlob` contents (fixes Edge Function corruption during `vercel build`).
8
+
3
9
  ## 13.36.1
4
10
 
5
11
  ### Patch Changes
package/dist/file-blob.js CHANGED
@@ -71,6 +71,7 @@ class FileBlob {
71
71
  return this.toStream();
72
72
  }
73
73
  toStream() {
74
- return (0, import_into_stream.default)(this.data);
74
+ const data = typeof this.data === "string" ? Buffer.from(this.data, "utf8") : this.data;
75
+ return (0, import_into_stream.default)(data);
75
76
  }
76
77
  }
package/dist/index.js CHANGED
@@ -31744,7 +31744,8 @@ var FileBlob = class _FileBlob {
31744
31744
  return this.toStream();
31745
31745
  }
31746
31746
  toStream() {
31747
- return (0, import_into_stream.default)(this.data);
31747
+ const data = typeof this.data === "string" ? Buffer.from(this.data, "utf8") : this.data;
31748
+ return (0, import_into_stream.default)(data);
31748
31749
  }
31749
31750
  };
31750
31751
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "13.36.1",
3
+ "version": "13.36.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",