v8.27.02026-11-23
本次更新的重头戏是发布版本管理:每次成功部署都会打上语义化版本标签,UAT 环境产出 v1.5.0-rc.3 这类候选版本,生产环境则产出 v1.5.0 正式版本,并自动生成对应的 GitHub/GitLab Release。各分支可自定义候选版本命名规则,版本号会显示在 PR 评论和通知中,也可选写入工单。VS Code 流水线新增 Versions 按钮(默认关闭),并配套推出 hardis:project:version:list 命令,用于查看各分支版本、晋升后将生成的版本及标签历史。
其他改进:新增 hardis:project:deploy:cancel,CI 任务取消时会同步取消 Salesforce 组织中的部署模拟,合并后的部署也不会被下一次合并误取消(需更新工作流文件);hardis:work:save 与 hardis:work:new 在 agent 模式下支持带标签的目标分支写法;hardis:project:deploy:smart 新增 sfdx-hardis:test-selection 事件,允许插件自定义 Apex 测试选择;监控备份不再因组织拒绝检索超过一万个文件而失败,会自动跳过低价值类型并给出过滤器调整建议。
v8.26.02026-11-20
本次更新集中在命令行体验与文档生成两方面。多个命令(deploy 系列、fieldusage、community:update 等)修复了在 VS Code 中运行时报「未知参数」的错误;backup 任务遇到文档无法生成时改为发警告通知,不再直接失败;instanceupgrade 的剩余天数不再显示负数,通知仅在升级前 15 天才升级为警告。purge 系列也做了修正:apexlog 现在按 --target-org 指定的组织清理,profile 命令直接采用 --profiles 参数不再重复询问。此外,package:version:list 支持 --target-dev-hub,project:create 不再二次确认参数,gitdelta 修复了以 HEAD 为起点时的崩溃。文档站方面,命令页新增 VS Code 运行截图与 Excel 报告展示,且站点改用合并后的代码构建,不再依赖旧的 beta 版本。
v8.25.02026-11-17
本次更新的重头戏是新增「What will break」诊断报告:一条命令即可列出组织中即将失效的 Salesforce 变更——从认证方式、退役 API 版本到发布更新——标明何时出问题、如何提前处理,没问题时也会明确告知。该检查由监控每日自动执行,每项风险单独成行,注明涉及的应用、用户或数据源及修复步骤;重复覆盖的发布更新不再重复列出,仅标注启用期限。原有的 legacyapi 与 releaseupdates 检查已弃用,由新命令接管并沿用其配置。
其他改动:legacyapi 按 API 版本区间分别生成客户端文件,避免同等级区间互相覆盖,百万级调用的组织几分钟内即可出报告(超过 10 万条调用才输出 CSV);不安全 Connected Apps 报告会指出哪些应用需在 Summer '27 前迁移到 External Client Apps,CI 中用户名自动脱敏;Grafana 的 Org Security 仪表盘新增对应行。
浏览器部署动作方面,部署助手、AI 助手与编码代理会在可解决的报错上主动建议使用,并给出加入 PR 的命令;Browserforce 升至 7.2.0,支持同步重命名选择列表值、部署前开启 Einstein Conversation Insights。
插件体系新增 sfdx-hardis:retrieve-done、sfdx-hardis:validation-start、sfdx-hardis:deployment-start 三个事件,插件可在检索后拆解元数据、部署前重组,并接收校验与测试结果、自行发布 PR 评论。
v8.24.02026-11-09
本次更新围绕 Salesforce DevOps 流程的自动化与效率展开,主要新增了 Browserforce 部署动作、Scratch org 快照、开发组织列表以及 Agentforce 代理的 CI/CD 支持。
Browserforce 动作允许通过 Pull Request 应用 Metadata API 无法部署的 Setup 设置,例如修改选择列表值的 API 名称。User Access Policy 动作现在会自动激活策略并执行 Apply To All,这两类动作也可作为组织初始化步骤使用。
Scratch org 快照功能默认关闭,开启后 Pull Request 的 scratch org 将基于目标分支的快照创建,仅包含变更部分,从而加快环境准备速度。新增的 hardis:scratch:snapshot:refresh 命令可在每次推送时更新主分支快照,配合 CI/CD 模板自动运行。hardis:work:new 和 hardis:scratch:create 也支持从快照启动环境。
开发组织列表功能让团队能直观看到哪些开发沙盒或 scratch org 缺少已合并的 Pull Request,便于及时回推更新。
Agentforce 代理的 CI/CD 支持是本次另一大亮点。新增的 hardis:org:retrieve:agent 命令可将代理版本作为 Agent Script 检索,使其变更在 Pull Request 中清晰可见。配套的部署动作支持发布代理、创建运行用户及激活最新版本,hardis:project:deploy:smart 会自动替换服务代理的运行用户为目标组织用户。此外,新增的 hardis:project:action:types 命令可描述各部署动作类型的预期输入,便于 AI 代理和脚本调用。
v8.23.02026-11-06
sfdx-hardis v8.23.0 更新:晋升分支(Beta)新增「立即解决冲突」选项,可在 VS Code 中打开冲突文件,解决后自动继续;另提供 take-source 冲突策略(--on-conflict take-source),保留源分支版本并把相关文件列入 Pull Request 供审查。带冲突标记提交故事不再触发项目 git hooks(Husky、pre-commit 等)报错。
主分支部署检查方面,hardis:project:deploy:smart 新增夜间巡检模式,可验证主分支能否正常部署到对应 org,无需评论最近合并的 PR 或重放其部署动作。默认 CI/CD 模板已内置该任务,GitLab 用户在 checkdeploytocurrentbranch_org 任务上加 --major-branch-check 即可启用;VS Code DevOps Pipeline 还能按最近一次检查结果为主分支着色。
替换规则(Beta)升级:日志与 PR 评论会列出每条规则在各文件中删除或修改的具体元素,例如 Profile 中被移除的用户权限,但不暴露其值。默认 CI/CD 文件开头现在附带模板来源 URL,方便手动或借助编码代理升级。
v8.22.02026-11-02
What's Changed
- hardis:ticket:list, hardis:ticket:whoami, hardis:ticket:meta and hardis:ticket:set-label: new commands to search tickets with the same criteria on every ticketing system, show the authenticated account, list the types and statuses of a project, and label a ticket.
- hardis:ticket:post-comment can qualify the ticket in the same run (prefix, label, status, story points, assignee mention), its --servicenow-field becomes --comment-field (the former name still works), and hardis:ticket:get reads several tickets at once.
- Ticket comments: on Azure Boards they are read and posted in the project of the work item, on JIRA Server / Data Center a code block no longer breaks the rest of the comment, and ServiceNow reports a tag it could not attach.
- hardis:org:configure:monitoring: the monitoring repository gets its .gitignore again, so hardis-report/, config/user/ and certificates are no longer committed (sfdx-hardis-training#196).
- hardis:doc:project2markdown and hardis:doc:flow2markdown: no failed sf org display step in VS Code when no TECHNICAL_ORG is defined (sfdx-hardis-training#141).
- Doc: the Install packages page shows that installPackagesDuringCheckDeploy goes at the root of .sfdx-hardis.yml (#2426).
Pull Requests
* chore(skills): training feedback replies first, changes the course only when it must by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2435
* chore(e2e): night run of 2026-10-31, harness fixes and reports by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2436
fix: monitoring .gitignore missing from the package, no TECHNICALORG probe without alias by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2437
* feat(ticket): backlog commands for agents on JIRA, Azure Boards, ServiceNow and Aha! by @SamuelBouleau in https://github.com/hardisgroupcom/sfdx-hardis/pull/2432
* fix(deps): bump @langchain/anthropic from 1.5.13 to 1.6.0 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2439
* fix(deps): bump @langchain/openai from 1.6.3 to 1.7.0 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2438
* chore(dev-deps): bump @salesforce/cli-plugins-testkit from 5.3.78 to 5.3.81 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2440
Full Changelog: https://github.com/hardisgroupcom/sfdx-hardis/compare/v8.21.0...v8.22.0
v8.21.02026-10-30
hardis:project:deploy:smart现在匹配PR描述与最新提交里的部署关键字(如NO_DELTA)时不区分大小写,且HTML注释和代码块内的同名词不再误判,减少了意外的全量部署。hardis:project:configure:auth和hardis:org:configure:monitoring配置外部客户端应用(External Client App)时,默认选用System Administrator作为配置文件,各语言环境下一致。晋升分支(Beta)新增detectManualCherryPicks设置,已手动cherry-pick到下一分支的User Story(即使经过squashed发布分支)不再出现在晋升候选中。文档方面,替换规则页面为xml-value、xml-remove、text三类规则分别补上示例与规则编辑器截图,按org展示的规则与取值截图也已缩小以便看全各列;Aha!集成页面补充了8.14.0之前创建的流水线如何传入Aha!变量。依赖上picomatch升级至4.0.7,同时处理了undici与deepmerge的安全通告,并升级了LangChain系列、puppeteer-core等依赖。
v8.20.12026-10-27
sfdx-hardis v8.20.1主要是一轮修复。beta阶段的替换规则(Replacement rules)此前会因缺少picomatch依赖而报错,导致回写、组织初始化和部署失败或跳过规则,现在已将picomatch声明为运行时依赖,问题解决。hardis:org:configure:monitoring不再因为实例URL末尾带斜杠而报"is not a valid branch name",监控分支名会自动去掉尾部斜杠。hardis:org:configure:data生成的export.json现在以换行结尾,MegaLinter不会再往Pull Request推格式修正提交。此外fast-uri升级到3.1.9,修复了4个URI解析与规范化漏洞(CVE-2026-110180等),并升级了一批开发依赖。
v8.20.02026-10-24
本次更新集中在部署流程与安全加固。部署动作新增User Access Policies(用户访问策略)激活环节:部署后这类策略通常停留在Design状态、自动化被关闭,新动作可直接激活,并支持Apply To All全量应用。hardis:project:deploy:smart修复了一处误报——源组织里已删除的Flow不再出现在Pull Request评论的Flow删除区块,只列真正需要销毁的对象。监控配置方面,GitHub拒绝推送workflow到main后重跑hardis:org:configure:monitoring,现在会真正完成推送,而不是虚报已完成。报表若正被Excel占用,新报表会改写为report-2.xlsx放在同目录并给出警告,不再直接生成失败。Docker镜像升级至Node.js 24.22.1及以上(2026年10月安全版,修复10个CVE),git、Java及Python工具链同步不再信任被入侵的eMudhra机构emSign根证书;Python requests改用系统证书包,企业代理CA请用update-ca-certificates添加,不要再写进certifi。此外,数据字典补充了Data Cloud对象及其关系的文档。
v8.19.02026-10-19
What's Changed
- Replacement rules (Beta): change metadata right before each deployment for the target org, with values per org, secrets from CI/CD variables, and removal of the XML elements an older API version refuses, edited from the new Replacement Rules panel of VS Code.
- New hardis:project:replacement:list, create, update, delete and preview: manage the rules from the terminal or a coding agent.
- hardis:project:deploy:smart: applies the rules, also on scratch orgs and backpromotes, and lists them with their warnings in the Pull Request comments.
- Org initialization (Beta): one ordered list of steps sets up new scratch orgs and sandboxes, edited from the new Org Initialization panel of VS Code.
- New hardis:org:init: run these steps on an existing scratch org or sandbox.
- New hardis:config:org-init: the steps and the scratch org definition for a UI, with the languages, countries and releases of the Dev Hub, and settings or org shape features read from an org.
- hardis:scratch:create: a scratch org taken from the pool is now fully initialized, brought up to date with your branch and given a clean source tracking, scratch orgs can use the org shape of their major branch, and errors in the scratch org definition or the steps are reported before the org is requested, and a project without devHubAlias can create scratch orgs again.
- hardis:work:new: no longer offers to initialize a selected sandbox.
- New hardis:ticket:post-comment: post a markdown comment on JIRA, Azure Boards, ServiceNow or Aha! tickets, or update the one posted before.
- New hardis:ticket:test-cases:init: write the test cases of a ticket into a notebook a tester fills in: an Excel workbook, a CSV or a markdown table.
- New hardis:ticket:test-cases:upsert: create or update the test cases of a notebook in Azure DevOps, ServiceNow or Xray Cloud, and post their summary on the ticket.
- hardis:org:data:import and hardis:org:data:delete: in a production org without sfdmuCanModify, the command asks to confirm the modification of the org and authorizes SFDMU to modify it, instead of failing with "Entered instance URL '' does not match" (vscode-sfdx-hardis#499). As in SFDMU, a Developer Edition org is not a production org: deleting its data no longer requires "runnableInProduction": true. hardis:org:data:delete now also reads the SFDMUCANMODIFY environment variable, as hardis:org:data:import already did
- hardis:scratch:pool:refresh: fills the pool from a Windows computer again.
- Ticketing: the deployment comments of JIRA, Azure Boards, ServiceNow and Aha! tickets now say the same thing, and the sfdx-hardis link of the JIRA one works again.
Pull Requests
* docs(skills): training-e2e walk of 2026-10-16, report, helpers and runbook traps by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2359
* chore(skills): load MegaLinter and Grafana skills from Claude Code plugins by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2361
* fix(data): ask to confirm the modification of a production org instead of failing in SFDMU by @SalikLP in https://github.com/hardisgroupcom/sfdx-hardis/pull/2357
* fix(deps): bump @langchain/core from 1.2.14 to 1.2.17 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2349
* chore(dev-deps): bump @typescript-eslint/parser from 8.71.0 to 8.71.1 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2350
* fix(deps): bump @inquirer/select from 5.2.5 to 5.2.6 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2351
* fix(deps): bump @openai/codex-sdk from 0.160.1 to 0.161.0 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2352
* chore(dev-deps): bump eslint from 10.11.0 to 10.12.0 by @dependabot[bot] in https://github.com/hardisgroupcom/sfdx-hardis/pull/2353
* feat(ticket): test case notebooks, upsert to Azure DevOps, ServiceNow and Xray, and hardis:ticket:post-comment by @SamuelBouleau in https://github.com/hardisgroupcom/sfdx-hardis/pull/2169
* fix(deploy:smart): an explicit --target-org wins over the branch config targetUsername by @SalikLP in https://github.com/hardisgroupcom/sfdx-hardis/pull/2354
* feat(org-init): ordered org initialization steps, hardis:org:init and hardis:config:org-init by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2362
* feat(replacement-rules): change metadata before each deployment for the target org by @nvuillam in https://github.com/hardisgroupcom/sfdx-hardis/pull/2363
New Contributors
* @SamuelBouleau made their first contribution in https://github.com/hardisgroupcom/sfdx-hardis/pull/2169
Full Changelog: https://github.com/hardisgroupcom/sfdx-hardis/compare/v8.18.1...v8.19.0