@vercel/build-utils 14.12.0 → 14.13.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 +16 -0
- package/dist/deserialize/deserialize-build-output-types.d.ts +1 -0
- package/dist/deserialize/deserialize-build-output.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/lambda.d.ts +10 -1
- package/dist/lambda.js +50 -38
- package/dist/types.d.ts +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 14.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5082546: Build Python schedule entrypoints. A `.py` entrypoint such as `jobs/nightly.py` runs as a script once per firing in a private function under `_vercel/schedules/`. Entrypoints with the same `functions` config share one function, which runs the script for the dispatched schedule name, so the project's dependencies are bundled once per distinct config instead of once per script. Entrypoints without `functions` config share `_vercel/schedules/default`; the others' function is named after the `functions` patterns their config came from, such as `_vercel/schedules/jobs/report`. Schedule names must be unique within a shared function.
|
|
8
|
+
|
|
9
|
+
Declared schedule entrypoints are not served as static files, but other files follow the normal static rules. When a project with Python schedule entrypoints publishes other `.py` files from its root, through the zero-config static fallback or `outputDirectory: "."`, `vercel build` now warns and lists them.
|
|
10
|
+
|
|
11
|
+
Add `findMatchingFunction` to `@vercel/build-utils`, which returns the `functions` entry that applies to a function.
|
|
12
|
+
|
|
13
|
+
## 14.13.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 34b2c8e: Support `afterCacheBypass` rules in Build Output API `config.json`, preserving request and cached response header conditions through builds and deserialization.
|
|
18
|
+
|
|
3
19
|
## 14.12.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -13,6 +13,7 @@ export interface DeserializeBuildOutputConfig<TFlags = unknown> {
|
|
|
13
13
|
wildcard?: BuildResultV2Typical['wildcard'];
|
|
14
14
|
images?: BuildResultV2Typical['images'];
|
|
15
15
|
routes?: BuildResultV2Typical['routes'];
|
|
16
|
+
afterCacheBypass?: BuildResultV2Typical['afterCacheBypass'];
|
|
16
17
|
overrides?: Record<string, DeserializeBuildOutputPathOverride>;
|
|
17
18
|
framework?: BuildResultV2Typical['framework'];
|
|
18
19
|
crons?: BuildResultV2Typical['crons'];
|
|
@@ -282,6 +282,7 @@ async function deserializeBuildOutput(options) {
|
|
|
282
282
|
crons: config.crons,
|
|
283
283
|
flags: flags ? flags : config.flags,
|
|
284
284
|
routes: config.routes,
|
|
285
|
+
afterCacheBypass: config.afterCacheBypass,
|
|
285
286
|
output,
|
|
286
287
|
framework,
|
|
287
288
|
...includeDeploymentId ? { deploymentId: config.deploymentId } : {},
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import FileBlob from './file-blob';
|
|
2
2
|
import FileFsRef from './file-fs-ref';
|
|
3
3
|
import FileRef from './file-ref';
|
|
4
|
-
import { Lambda, createLambda, getLambdaOptionsFromFunction, sanitizeConsumerName } from './lambda';
|
|
4
|
+
import { Lambda, createLambda, findMatchingFunction, getLambdaOptionsFromFunction, sanitizeConsumerName } from './lambda';
|
|
5
5
|
import { NodejsLambda, type NodejsLambdaOptions } from './nodejs-lambda';
|
|
6
6
|
import { Prerender, type PrerenderInitialMetadata, type PrerenderOnMiss } from './prerender';
|
|
7
7
|
import download, { downloadFile, type DownloadedFiles, isSymbolicLink, isDirectory, isExternalSymlink, isExternalSymlinkTarget, getSymlinkTarget } from './fs/download';
|
|
@@ -24,7 +24,7 @@ import { getNodeExecPath } from './get-node-exec-path';
|
|
|
24
24
|
import { validateNpmrc } from './validate-npmrc';
|
|
25
25
|
export type { NodejsLambdaOptions, PrerenderInitialMetadata, PrerenderOnMiss };
|
|
26
26
|
export type { LambdaAffinity } from './lambda';
|
|
27
|
-
export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, type DownloadedFiles, getWriteableDirectory, glob, type GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getNodeExecPath, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, getOrCreateBunBinary, detectPackageManager, runNpmInstall, type NpmInstallOutput, runBundleInstall, runPipInstall, type PipInstallResult, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, getServiceUrlEnvVars, getExperimentalServiceUrlEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, isExternalSymlink, isExternalSymlinkTarget, getSymlinkTarget, getLambdaOptionsFromFunction, sanitizeConsumerName, scanParentDirs, findPackageJson, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, type CliType, };
|
|
27
|
+
export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, type DownloadedFiles, getWriteableDirectory, glob, type GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getNodeExecPath, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, getOrCreateBunBinary, detectPackageManager, runNpmInstall, type NpmInstallOutput, runBundleInstall, runPipInstall, type PipInstallResult, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, getServiceUrlEnvVars, getExperimentalServiceUrlEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, isExternalSymlink, isExternalSymlinkTarget, getSymlinkTarget, findMatchingFunction, getLambdaOptionsFromFunction, sanitizeConsumerName, scanParentDirs, findPackageJson, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, type CliType, };
|
|
28
28
|
export { EdgeFunction } from './edge-function';
|
|
29
29
|
export { ContainerImage } from './container-image';
|
|
30
30
|
export type { ContainerImageConfig } from './container-image';
|