@vercel/build-utils 12.1.0 → 12.1.1

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
+ ## 12.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Change archive split from 100MB -> 20MB ([#14046](https://github.com/vercel/vercel/pull/14046))
8
+
3
9
  ## 12.1.0
4
10
 
5
11
  ### Minor Changes
@@ -56,7 +56,7 @@ function streamToBuffer(stream) {
56
56
  });
57
57
  }
58
58
  const MB = 1024 * 1024;
59
- async function streamToBufferChunks(stream, chunkSize = 100 * MB) {
59
+ async function streamToBufferChunks(stream, chunkSize = 20 * MB) {
60
60
  const chunks = [];
61
61
  let currentChunk = [];
62
62
  let currentSize = 0;
package/dist/index.js CHANGED
@@ -22254,7 +22254,7 @@ function streamToBuffer(stream) {
22254
22254
  });
22255
22255
  }
22256
22256
  var MB = 1024 * 1024;
22257
- async function streamToBufferChunks(stream, chunkSize = 100 * MB) {
22257
+ async function streamToBufferChunks(stream, chunkSize = 20 * MB) {
22258
22258
  const chunks = [];
22259
22259
  let currentChunk = [];
22260
22260
  let currentSize = 0;
package/dist/types.d.ts CHANGED
@@ -167,7 +167,12 @@ export interface ShouldServeOptions {
167
167
  /**
168
168
  * `startDevServer()` is given the same parameters as `build()`.
169
169
  */
170
- export type StartDevServerOptions = BuildOptions;
170
+ export type StartDevServerOptions = BuildOptions & {
171
+ /**
172
+ * Directory to serve static files from in dev mode
173
+ */
174
+ publicDir?: string;
175
+ };
171
176
  export interface StartDevServerSuccess {
172
177
  /**
173
178
  * Port number where the dev server can be connected to, assumed to be running
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -27,7 +27,7 @@
27
27
  "@types/semver": "6.0.0",
28
28
  "@types/yazl": "2.4.2",
29
29
  "@vercel/error-utils": "2.0.3",
30
- "@vercel/routing-utils": "5.1.1",
30
+ "@vercel/routing-utils": "5.2.0",
31
31
  "aggregate-error": "3.0.1",
32
32
  "async-retry": "1.2.3",
33
33
  "async-sema": "2.1.4",