@vercel/build-utils 7.4.0 → 7.5.0

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,17 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 7.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Deprecate `EdgeFunction#name` property ([#11010](https://github.com/vercel/vercel/pull/11010))
8
+
9
+ ## 7.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Extend Node v16 discontinue date to 2024-06-15 ([#10967](https://github.com/vercel/vercel/pull/10967))
14
+
3
15
  ## 7.4.0
4
16
 
5
17
  ### Minor Changes
@@ -6,11 +6,12 @@ export declare class EdgeFunction {
6
6
  type: 'EdgeFunction';
7
7
  /**
8
8
  * A display name for the edge function.
9
+ * @deprecated This property should no longer be used. The name is inferred from the URL path of the function.
9
10
  */
10
- name: string;
11
+ name?: string;
11
12
  /**
12
13
  * The deployment target.
13
- * Only v8-worker is currently supported.
14
+ * Only `v8-worker` is currently supported.
14
15
  */
15
16
  deploymentTarget: 'v8-worker';
16
17
  /**
@@ -46,7 +46,7 @@ const NODE_VERSIONS = [
46
46
  major: 16,
47
47
  range: "16.x",
48
48
  runtime: "nodejs16.x",
49
- discontinueDate: /* @__PURE__ */ new Date("2024-02-06")
49
+ discontinueDate: /* @__PURE__ */ new Date("2024-06-15")
50
50
  },
51
51
  {
52
52
  major: 14,
package/dist/index.js CHANGED
@@ -21600,7 +21600,7 @@ var NODE_VERSIONS = [
21600
21600
  major: 16,
21601
21601
  range: "16.x",
21602
21602
  runtime: "nodejs16.x",
21603
- discontinueDate: /* @__PURE__ */ new Date("2024-02-06")
21603
+ discontinueDate: /* @__PURE__ */ new Date("2024-06-15")
21604
21604
  },
21605
21605
  {
21606
21606
  major: 14,
package/dist/types.d.ts CHANGED
@@ -171,6 +171,11 @@ export interface StartDevServerSuccess {
171
171
  * shut down the dev server once an HTTP request has been fulfilled.
172
172
  */
173
173
  pid: number;
174
+ /**
175
+ * An optional function to shut down the dev server. If not provided, the
176
+ * dev server will forcefully be killed.
177
+ */
178
+ shutdown?: () => Promise<void>;
174
179
  }
175
180
  /**
176
181
  * `startDevServer()` may return `null` to opt-out of spawning a dev server for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",