@vercel/build-utils 14.13.1 → 14.14.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 +12 -0
- package/dist/fs/node-version.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -4
- package/dist/schedules.d.ts +12 -0
- package/dist/schedules.js +148 -0
- package/dist/types.d.ts +13 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 14.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- deb48cd: Accept a flat `schedules` format in `vercel.json` that is aligned with `crons` (`schedule` plus one of `path`, `function`, `topic`, or `entrypoint`), and emit schedules in the flat format in Build Output API `config.json`. The nested `expression`/`target` format is still accepted.
|
|
8
|
+
|
|
9
|
+
## 14.13.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ff3d2f7: Allow projects to temporarily extend Node.js 20 support through November 1, 2026.
|
|
14
|
+
|
|
3
15
|
## 14.13.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/fs/node-version.js
CHANGED
|
@@ -115,6 +115,14 @@ function getNodeVersionByMajor(major) {
|
|
|
115
115
|
return getOptions().find((v) => v.major === major);
|
|
116
116
|
}
|
|
117
117
|
function getOptions() {
|
|
118
|
+
if (process.env.VERCEL_ALLOW_DISCONTINUED_NODEJS20 === "1") {
|
|
119
|
+
return NODE_VERSIONS.map(
|
|
120
|
+
(version) => version.major === 20 ? new import_types.NodeVersion({
|
|
121
|
+
...version,
|
|
122
|
+
discontinueDate: /* @__PURE__ */ new Date("2026-11-01")
|
|
123
|
+
}) : version
|
|
124
|
+
);
|
|
125
|
+
}
|
|
118
126
|
return NODE_VERSIONS;
|
|
119
127
|
}
|
|
120
128
|
function isNodeVersionAvailable(version) {
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export { BACKEND_FRAMEWORKS, BACKEND_BUILDERS, UNIFIED_BACKEND_BUILDER, type Bac
|
|
|
51
51
|
export { isNodeEntrypoint } from './node-entrypoint';
|
|
52
52
|
export * from './service-path-utils';
|
|
53
53
|
export * from './schedule-path-utils';
|
|
54
|
+
export * from './schedules';
|
|
54
55
|
export { getEncryptedEnv, type EncryptedEnvFile, } from './process-serverless/get-encrypted-env-file';
|
|
55
56
|
export { getLambdaEnvironment } from './process-serverless/get-lambda-environment';
|
|
56
57
|
export { getLambdaPreloadScripts, type BytecodeCachingOptions, } from './process-serverless/get-lambda-preload-scripts';
|