Skip to content

Commit d00ed33

Browse files
committed
remove deprecated init request body fields
1 parent 475d16a commit d00ed33

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

packages/cli-v3/src/commands/workers/build.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,18 +234,10 @@ async function _workerBuildCommand(dir: string, options: WorkersBuildCommandOpti
234234
return;
235235
}
236236

237-
const tagParts = parseDockerImageReference(options.tag ?? "");
238-
239-
// Account for empty strings to preserve existing behavior
240-
const registry = tagParts.registry ? tagParts.registry : undefined;
241-
const namespace = tagParts.repo ? tagParts.repo : undefined;
242-
243237
const deploymentResponse = await projectClient.client.initializeDeployment({
244238
contentHash: buildManifest.contentHash,
245239
userId: authorization.userId,
246240
selfHosted: options.local,
247-
registryHost: registry,
248-
namespace: namespace,
249241
type: "UNMANAGED",
250242
});
251243

packages/core/src/v3/schemas/api.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,8 @@ export type InitializeDeploymentResponseBody = z.infer<typeof InitializeDeployme
337337
export const InitializeDeploymentRequestBody = z.object({
338338
contentHash: z.string(),
339339
userId: z.string().optional(),
340-
/** @deprecated This is now determined by the webapp */
341-
registryHost: z.string().optional(),
342-
/** @deprecated This is now determined by the webapp */
340+
/** @deprecated This is now determined by the webapp. This is only used to warn users with old CLI versions. */
343341
selfHosted: z.boolean().optional(),
344-
/** @deprecated This is now determined by the webapp */
345-
namespace: z.string().optional(),
346342
gitMeta: GitMeta.optional(),
347343
type: z.enum(["MANAGED", "UNMANAGED", "V1"]).optional(),
348344
});

0 commit comments

Comments
 (0)