@vercel/build-utils 13.27.0 → 13.27.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,18 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.27.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c5eeb30: Gate the client-side 900-second `maxDuration` upper bound behind the `VERCEL_CLI_SKIP_MAX_DURATION_LIMIT` environment variable. The limit is now owned by a single helper in `@vercel/build-utils` instead of being hardcoded in multiple validators. When the variable is set to `1`, the client-side maximum is skipped and validation defers to the server. Default behavior is unchanged — the maximum, the lower bound, and the integer check are all still enforced when the variable is unset.
8
+ - 09c39af: Fix Node.js API entrypoint detection dropping functions whose source contains comment-like sequences (`/*`, `//`, `*/`) inside string, template, or regex literals — for example an `Accept: */*` header. Handler exports are now identified with the ES/CJS module lexers instead of stripping comments with regexes, so the contents of literals are never mistaken for comments.
9
+
10
+ ## 13.27.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 0a170fd: [services] wire `experimentalServicesV2` into `fs-detectors`.
15
+
3
16
  ## 13.27.0
4
17
 
5
18
  ### Minor Changes
@@ -22,6 +22,7 @@ __export(get_service_url_env_vars_exports, {
22
22
  getServiceUrlEnvVars: () => getServiceUrlEnvVars
23
23
  });
24
24
  module.exports = __toCommonJS(get_service_url_env_vars_exports);
25
+ var import_types = require("./types");
25
26
  function serviceNameToEnvVar(name) {
26
27
  return `${name.replace(/-/g, "_").toUpperCase()}_URL`;
27
28
  }
@@ -56,7 +57,8 @@ function getServiceUrlEnvVars(options) {
56
57
  const baseUrl = origin || deploymentUrl;
57
58
  if (!baseUrl)
58
59
  return {};
59
- const servicesByName = new Map(services.map((s) => [s.name, s]));
60
+ const v1Services = services.filter(import_types.isExperimentalService);
61
+ const servicesByName = new Map(v1Services.map((s) => [s.name, s]));
60
62
  const consumerEnvPrefix = getFrameworkEnvPrefix(
61
63
  consumerService?.framework,
62
64
  frameworkList
@@ -90,15 +92,16 @@ function getExperimentalServiceUrlEnvVars(options) {
90
92
  if (!baseUrl || !services || services.length === 0) {
91
93
  return {};
92
94
  }
95
+ const v1Services = services.filter(import_types.isExperimentalService);
93
96
  const envVars = {};
94
97
  const frameworkPrefixes = /* @__PURE__ */ new Set();
95
- for (const service of services) {
98
+ for (const service of v1Services) {
96
99
  const prefix = getFrameworkEnvPrefix(service.framework, frameworkList);
97
100
  if (prefix) {
98
101
  frameworkPrefixes.add(prefix);
99
102
  }
100
103
  }
101
- for (const service of services) {
104
+ for (const service of v1Services) {
102
105
  if (service.type !== "web" || !service.routePrefix) {
103
106
  continue;
104
107
  }
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { normalizePath } from './fs/normalize-path';
27
27
  export { getOsRelease, getProvidedRuntime } from './os';
28
28
  export * from './should-serve';
29
29
  export * from './schemas';
30
+ export { DEFAULT_MAX_DURATION_LIMIT, SKIP_MAX_DURATION_LIMIT_ENV, getMaxDurationLimit, getMaxDurationSchema, } from './max-duration';
30
31
  export * from './package-manifest';
31
32
  export { generateProjectManifest } from './node-diagnostics';
32
33
  export * from './types';