@cloudflare/deploy-helpers 0.2.4 → 0.2.5

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.
@@ -89,8 +89,8 @@ type SharedDeployVersionsProps = {
89
89
  resourcesProvision: boolean;
90
90
  /** Controls whether provisioned resource IDs are written back to the config file. */
91
91
  skipProvisioningConfigWriteback: boolean;
92
- /** temporary hack - cf is not yet a recognised deploy source, so any deploys from cf comes back normalised to 'api'*/
93
- skipLastDeployedFromApiCheck: boolean;
92
+ /** From --strict arg. In strict mode, conflicting pre-upload checks abort instead of auto-continuing. */
93
+ strict: boolean;
94
94
  };
95
95
  type DeployProps = SharedDeployVersionsProps & {
96
96
  /** Discriminant for DeployProps vs VersionsUploadProps */
@@ -105,8 +105,6 @@ type DeployProps = SharedDeployVersionsProps & {
105
105
  logpush: boolean | undefined;
106
106
  /** From --dispatch-namespace arg. Deploy-only (Workers for Platforms). */
107
107
  dispatchNamespace: string | undefined;
108
- /** From --strict arg. Deploy-only. */
109
- strict: boolean;
110
108
  /** From --old-asset-ttl arg. Deploy-only. */
111
109
  oldAssetTtl: number | undefined;
112
110
  /** From --containers-rollout arg. Deploy-only. */
@@ -1,2 +1,2 @@
1
- export { g as confirm, e as fetchKVGetValue, c as fetchListResult, d as fetchPagedListResult, f as fetchResult, i as initDeployHelpersContext, h as isNonInteractiveOrCI, l as logger, p as prompt, s as select } from './context-B0DMfM9r.mjs';
1
+ export { g as confirm, e as fetchKVGetValue, c as fetchListResult, d as fetchPagedListResult, f as fetchResult, i as initDeployHelpersContext, h as isNonInteractiveOrCI, l as logger, p as prompt, s as select } from './context-CJdTPR7O.mjs';
2
2
  import '@cloudflare/workers-utils';
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DeployProps, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment, S as SharedDeployVersionsProps } from './context-B0DMfM9r.mjs';
2
- export { b as DeployHelpersContext, i as initDeployHelpersContext } from './context-B0DMfM9r.mjs';
1
+ import { D as DeployProps, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment, S as SharedDeployVersionsProps } from './context-CJdTPR7O.mjs';
2
+ export { b as DeployHelpersContext, i as initDeployHelpersContext } from './context-CJdTPR7O.mjs';
3
3
  export { InputWorkerSchema, ModuleType, OutputWorkerSchema, ParsedInputWorkerConfig, ParsedOutputWorkerConfig, convertToWranglerConfig } from '@cloudflare/config';
4
4
  import { ContainerNormalizedConfig, ImageURIConfig } from '@cloudflare/containers-shared';
5
5
  import * as _cloudflare_workers_utils from '@cloudflare/workers-utils';
@@ -25,7 +25,7 @@ type DeployCallbacks = {
25
25
  containersRollout?: "gradual" | "immediate" | "none";
26
26
  dryRun?: boolean;
27
27
  }) => Promise<ContainerNormalizedConfig[]>) | undefined;
28
- buildContainer: ((containerConfig: Exclude<ContainerNormalizedConfig, ImageURIConfig>, imageTag: string, dryRun: boolean, pathToDocker: string) => Promise<unknown>) | undefined;
28
+ buildContainer: ((containerConfig: Exclude<ContainerNormalizedConfig, ImageURIConfig>, imageTag: string, dryRun: boolean, pathToDocker: string, verifyDockerIsRunning: boolean) => Promise<unknown>) | undefined;
29
29
  deployContainers: ((config: Config, normalisedContainerConfig: ContainerNormalizedConfig[], args: {
30
30
  versionId: string;
31
31
  accountId: string;
@@ -686,11 +686,11 @@ declare function getMigrationsToUpload(scriptName: string, props: {
686
686
 
687
687
  declare function verifyWorkerMatchesCITag(complianceConfig: ComplianceConfig, accountId: string, workerName: string, configPath: string | undefined): Promise<void>;
688
688
 
689
- declare function fetchSecrets(config: Config, accountId: string, environment: string | undefined): Promise<{
689
+ declare function fetchSecrets(config: Config, scriptName: string, accountId: string, environment: string | undefined): Promise<{
690
690
  name: string;
691
691
  type: string;
692
692
  }[]>;
693
- declare function checkRemoteSecretsOverride(config: Config, accountId: string, targetEnv: string | undefined): Promise<{
693
+ declare function checkRemoteSecretsOverride(config: Config, scriptName: string, accountId: string, targetEnv: string | undefined): Promise<{
694
694
  override: false;
695
695
  } | {
696
696
  override: true;