@vercel/build-utils 13.1.2 → 13.2.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,17 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Disables auto instrumentation when the app has manual instrumentation setup ([#14345](https://github.com/vercel/vercel/pull/14345))
8
+
9
+ ## 13.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Remove env var check for node24 ([#14355](https://github.com/vercel/vercel/pull/14355))
14
+
3
15
  ## 13.1.2
4
16
 
5
17
  ### Patch Changes
@@ -45,6 +45,11 @@ var import_types = require("../types");
45
45
  var import_errors = require("../errors");
46
46
  var import_debug = __toESM(require("../debug"));
47
47
  const NODE_VERSIONS = [
48
+ new import_types.NodeVersion({
49
+ major: 24,
50
+ range: "24.x",
51
+ runtime: "nodejs24.x"
52
+ }),
48
53
  new import_types.NodeVersion({
49
54
  major: 22,
50
55
  range: "22.x",
@@ -103,16 +108,6 @@ function getNodeVersionByMajor(major) {
103
108
  return getOptions().find((v) => v.major === major);
104
109
  }
105
110
  function getOptions() {
106
- if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
107
- return [
108
- new import_types.NodeVersion({
109
- major: 24,
110
- range: "24.x",
111
- runtime: "nodejs24.x"
112
- }),
113
- ...NODE_VERSIONS
114
- ];
115
- }
116
111
  return NODE_VERSIONS;
117
112
  }
118
113
  function isNodeVersionAvailable(version) {
package/dist/index.js CHANGED
@@ -22415,7 +22415,8 @@ var Lambda = class {
22415
22415
  operationType,
22416
22416
  framework,
22417
22417
  experimentalTriggers,
22418
- supportsCancellation
22418
+ supportsCancellation,
22419
+ shouldDisableAutomaticFetchInstrumentation
22419
22420
  } = opts;
22420
22421
  if ("files" in opts) {
22421
22422
  (0, import_assert4.default)(typeof opts.files === "object", '"files" must be an object');
@@ -22573,6 +22574,7 @@ var Lambda = class {
22573
22574
  this.experimentalAllowBundling = "experimentalAllowBundling" in opts ? opts.experimentalAllowBundling : void 0;
22574
22575
  this.experimentalTriggers = experimentalTriggers;
22575
22576
  this.supportsCancellation = supportsCancellation;
22577
+ this.shouldDisableAutomaticFetchInstrumentation = shouldDisableAutomaticFetchInstrumentation;
22576
22578
  }
22577
22579
  async createZip() {
22578
22580
  let { zipBuffer } = this;
@@ -22967,6 +22969,11 @@ var BunVersion = class extends Version {
22967
22969
 
22968
22970
  // src/fs/node-version.ts
22969
22971
  var NODE_VERSIONS = [
22972
+ new NodeVersion({
22973
+ major: 24,
22974
+ range: "24.x",
22975
+ runtime: "nodejs24.x"
22976
+ }),
22970
22977
  new NodeVersion({
22971
22978
  major: 22,
22972
22979
  range: "22.x",
@@ -23022,16 +23029,6 @@ var BUN_VERSIONS = [
23022
23029
  })
23023
23030
  ];
23024
23031
  function getOptions() {
23025
- if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
23026
- return [
23027
- new NodeVersion({
23028
- major: 24,
23029
- range: "24.x",
23030
- runtime: "nodejs24.x"
23031
- }),
23032
- ...NODE_VERSIONS
23033
- ];
23034
- }
23035
23032
  return NODE_VERSIONS;
23036
23033
  }
23037
23034
  function isNodeVersionAvailable(version) {
package/dist/lambda.d.ts CHANGED
@@ -43,6 +43,11 @@ export interface LambdaOptionsBase {
43
43
  * When true, the Lambda runtime can be terminated mid-execution if the request is cancelled.
44
44
  */
45
45
  supportsCancellation?: boolean;
46
+ /**
47
+ * Whether to disable automatic fetch instrumentation.
48
+ * When true, the Function runtime will not automatically instrument fetch calls.
49
+ */
50
+ shouldDisableAutomaticFetchInstrumentation?: boolean;
46
51
  }
47
52
  export interface LambdaOptionsWithFiles extends LambdaOptionsBase {
48
53
  files: Files;
@@ -112,6 +117,11 @@ export declare class Lambda {
112
117
  * When true, the Lambda runtime can be terminated mid-execution if the request is cancelled.
113
118
  */
114
119
  supportsCancellation?: boolean;
120
+ /**
121
+ * Whether to disable automatic fetch instrumentation.
122
+ * When true, the Function runtime will not automatically instrument fetch calls.
123
+ */
124
+ shouldDisableAutomaticFetchInstrumentation?: boolean;
115
125
  constructor(opts: LambdaOptions);
116
126
  createZip(): Promise<Buffer>;
117
127
  /**
package/dist/lambda.js CHANGED
@@ -74,7 +74,8 @@ class Lambda {
74
74
  operationType,
75
75
  framework,
76
76
  experimentalTriggers,
77
- supportsCancellation
77
+ supportsCancellation,
78
+ shouldDisableAutomaticFetchInstrumentation
78
79
  } = opts;
79
80
  if ("files" in opts) {
80
81
  (0, import_assert.default)(typeof opts.files === "object", '"files" must be an object');
@@ -232,6 +233,7 @@ class Lambda {
232
233
  this.experimentalAllowBundling = "experimentalAllowBundling" in opts ? opts.experimentalAllowBundling : void 0;
233
234
  this.experimentalTriggers = experimentalTriggers;
234
235
  this.supportsCancellation = supportsCancellation;
236
+ this.shouldDisableAutomaticFetchInstrumentation = shouldDisableAutomaticFetchInstrumentation;
235
237
  }
236
238
  async createZip() {
237
239
  let { zipBuffer } = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "13.1.2",
3
+ "version": "13.2.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",