@vercel/build-utils 8.2.2 → 8.3.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 +11 -0
- package/dist/fs/run-user-scripts.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# @vercel/build-utils
|
2
2
|
|
3
|
+
## 8.3.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](https://github.com/vercel/vercel/pull/11653))
|
8
|
+
Implements the diagnostics step in the `next` builder.
|
9
|
+
|
10
|
+
### Patch Changes
|
11
|
+
|
12
|
+
- Add resolved node version range to warning message ([#11742](https://github.com/vercel/vercel/pull/11742))
|
13
|
+
|
3
14
|
## 8.2.2
|
4
15
|
|
5
16
|
### Patch Changes
|
@@ -190,7 +190,7 @@ async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PRO
|
|
190
190
|
const { node } = packageJson.engines;
|
191
191
|
if (configuredVersion && !(0, import_semver.intersects)(configuredVersion, supportedNodeVersion.range)) {
|
192
192
|
console.warn(
|
193
|
-
`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply. Learn More: http://vercel.link/node-version`
|
193
|
+
`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply, Node.js Version "${supportedNodeVersion.range}" will be used instead. Learn More: http://vercel.link/node-version`
|
194
194
|
);
|
195
195
|
}
|
196
196
|
if ((0, import_semver.coerce)(node)?.raw === node) {
|
package/dist/index.js
CHANGED
@@ -21912,7 +21912,7 @@ async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PRO
|
|
21912
21912
|
const { node } = packageJson.engines;
|
21913
21913
|
if (configuredVersion && !(0, import_semver2.intersects)(configuredVersion, supportedNodeVersion.range)) {
|
21914
21914
|
console.warn(
|
21915
|
-
`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply. Learn More: http://vercel.link/node-version`
|
21915
|
+
`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply, Node.js Version "${supportedNodeVersion.range}" will be used instead. Learn More: http://vercel.link/node-version`
|
21916
21916
|
);
|
21917
21917
|
}
|
21918
21918
|
if ((0, import_semver2.coerce)(node)?.raw === node) {
|
package/dist/types.d.ts
CHANGED
@@ -318,12 +318,14 @@ export interface ProjectSettings {
|
|
318
318
|
export interface BuilderV2 {
|
319
319
|
version: 2;
|
320
320
|
build: BuildV2;
|
321
|
+
diagnostics?: Diagnostics;
|
321
322
|
prepareCache?: PrepareCache;
|
322
323
|
shouldServe?: ShouldServe;
|
323
324
|
}
|
324
325
|
export interface BuilderV3 {
|
325
326
|
version: 3;
|
326
327
|
build: BuildV3;
|
328
|
+
diagnostics?: Diagnostics;
|
327
329
|
prepareCache?: PrepareCache;
|
328
330
|
shouldServe?: ShouldServe;
|
329
331
|
startDevServer?: StartDevServer;
|
@@ -418,6 +420,7 @@ export interface BuildResultV3 {
|
|
418
420
|
export type BuildV2 = (options: BuildOptions) => Promise<BuildResultV2>;
|
419
421
|
export type BuildV3 = (options: BuildOptions) => Promise<BuildResultV3>;
|
420
422
|
export type PrepareCache = (options: PrepareCacheOptions) => Promise<Files>;
|
423
|
+
export type Diagnostics = (options: BuildOptions) => Promise<Files>;
|
421
424
|
export type ShouldServe = (options: ShouldServeOptions) => boolean | Promise<boolean>;
|
422
425
|
export type StartDevServer = (options: StartDevServerOptions) => Promise<StartDevServerResult>;
|
423
426
|
/**
|