@cloudflare/deploy-helpers 0.15.1 → 0.17.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/dist/index.d.mts +4 -2
- package/dist/index.mjs +302 -143
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './crea
|
|
|
7
7
|
import { Options } from '@cspotcode/source-map-support';
|
|
8
8
|
import Protocol from 'devtools-protocol';
|
|
9
9
|
import { NodeJSCompatMode } from 'miniflare';
|
|
10
|
-
import { ParsedOutputWorkerConfig, ParsedOutputRootConfig } from '@cloudflare/config';
|
|
10
|
+
import { ParsedOutputWorkerConfig, ParsedOutputRootConfig, ParsedOutputContainerConfig } from '@cloudflare/config';
|
|
11
11
|
import { ContainerNormalizedConfig } from '@cloudflare/containers-shared';
|
|
12
12
|
|
|
13
13
|
interface BundleSize {
|
|
@@ -1197,6 +1197,7 @@ type PreviewBuildOutput = {
|
|
|
1197
1197
|
rootConfig: PreviewBuildOutputRootConfig;
|
|
1198
1198
|
buildResult?: WorkerBuildResult;
|
|
1199
1199
|
assets?: Pick<PreviewAssetsOptions, "directory" | "_headers" | "_redirects">;
|
|
1200
|
+
containers?: ParsedOutputContainerConfig[];
|
|
1200
1201
|
};
|
|
1201
1202
|
/** Verify that Build Output was produced with Preview configuration. */
|
|
1202
1203
|
declare function assertPreviewBuildOutputRootConfig(rootConfig: ParsedOutputRootConfig | undefined): asserts rootConfig is PreviewBuildOutputRootConfig;
|
|
@@ -1210,6 +1211,7 @@ type PreviewCallbacks = {
|
|
|
1210
1211
|
}) => Promise<ContainerNormalizedConfig[]>) | undefined;
|
|
1211
1212
|
deployPreviewContainers: ((scopedConfig: Config, normalisedContainerConfig: ContainerNormalizedConfig[], deployment: DeploymentResource, accountId: string, options: {
|
|
1212
1213
|
quiet: boolean;
|
|
1214
|
+
localImageReferences?: Map<string, string>;
|
|
1213
1215
|
}) => Promise<void>) | undefined;
|
|
1214
1216
|
verifyContainersScope?: (scopedConfig: Config) => Promise<void>;
|
|
1215
1217
|
};
|
|
@@ -1236,7 +1238,7 @@ declare function preview(accountId: string, args: PreviewArgs, config: Config, b
|
|
|
1236
1238
|
* @param args Preview name and deployment annotations.
|
|
1237
1239
|
* @param buildOutput Exact configuration and artifacts emitted by the build.
|
|
1238
1240
|
*/
|
|
1239
|
-
declare function previewBuildOutput(accountId: string, args: Pick<PreviewArgs, "name" | "tag" | "message" | "json">, buildOutput: PreviewBuildOutput): Promise<PreviewResult>;
|
|
1241
|
+
declare function previewBuildOutput(accountId: string, args: Pick<PreviewArgs, "name" | "tag" | "message" | "json">, buildOutput: PreviewBuildOutput, callbacks?: PreviewCallbacks): Promise<PreviewResult>;
|
|
1240
1242
|
/**
|
|
1241
1243
|
* Delete a preview and all its deployments.
|
|
1242
1244
|
*/
|