From 22fa00a643081d2c35bb8fae3d24084a0d0eb525 Mon Sep 17 00:00:00 2001 From: Deepti Rajagopal Date: Tue, 24 Nov 2026 12:33:24 -0500 Subject: [PATCH] feat: restrict deploy compute sizes to Standard_L/XL/2XL/4XL @W-24091816@ Replace the CPU_* sizes and their wire-type mapping with the four approved compute sizes, sent to Data Cloud unchanged. Old CPU_* values are now rejected. Default is Standard_2XL. BREAKING CHANGE: --cpu-size no longer accepts CPU_L, CPU_XL, CPU_2XL or CPU_4XL. --- README.md | 36 +++--- messages/deploy.md | 22 ++-- src/base/deployBase.ts | 8 +- src/utils/nativeDeploy.ts | 21 ++-- .../data-code-extension/deploy.test.ts | 35 +++++- test/e2e/expected/function/requests.json | 2 +- test/e2e/expected/script/requests.json | 2 +- test/e2e/expected/streaming/requests.json | 2 +- test/utils/nativeDeploy.test.ts | 113 +++++++++++------- 9 files changed, 143 insertions(+), 98 deletions(-) diff --git a/README.md b/README.md index f9f137f..f35f5d8 100644 --- a/README.md +++ b/README.md @@ -87,15 +87,15 @@ Deploy a Data Code Extension function package to a Salesforce org. ``` USAGE $ sf data-code-extension function deploy -n --package-version -d -p -o [--flags-dir ] - [--network ] [--cpu-size CPU_L|CPU_XL|CPU_2XL|CPU_4XL] + [--network ] [--cpu-size Standard_L|Standard_XL|Standard_2XL|Standard_4XL] FLAGS -d, --description= (required) Description of the package. -n, --name= (required) Name of the package to deploy. -o, --target-org= (required) Target Salesforce org for deployment. -p, --package-dir= (required) Directory containing the packaged code. - --cpu-size=