Repository navigation
improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8 - #10350
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryUpgrades Commander and Chalk for the CLI, and Babel for workflow code, workspace code, and repository scripts.
Reviews (2) · Last reviewed commit: "improvement(sim-cli): require node ^22.1..." · Reviewed by Greptile |
- commander ^11.1.0 -> ^15.1.0 (sim-cli and the root docs generator that walks its command tree) - chalk 5.6.2 -> 6.0.1 (sim-cli) - @babel/parser and @babel/types 7.29.x -> 8.1.2 in workflow-code and workspace-code, and the root parser the audit scripts use, so the CLI bundle carries one parser copy; apps/sim keeps 7 for the executor's own parse of user function code - workflow-code: Babel 8 types a member's object as Expression | Super; add an isMemberAccess guard and type chain roots as MemberExpression['object']; drop the 'Import' callee hint case Babel 8 no longer produces - audits: read TSImportType.source (Babel 8 rename) and drop the Babel 7 Import-callee shapes
…dled babel 8 and commander 15 - engines.node in sim-cli, workflow-code, workflow-sdk and workspace-code - README and CLI install docs state the new floor - the publish workflow smoke-tests the packed bundle on node 22.18.0, the floor
Collaborator
Author
waleedlatif1
force-pushed
the
improvement/sim-cli-dependency-majors
branch
from
November 23, 2026 20:27
60fd371 to
cbfd599
Compare
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This was referenced Nov 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
commander^11.1.0 → ^15.1.0 inpackages/sim-cli, plus the root devDependency the CLI docs generator uses to walk the same command treechalk5.6.2 → 6.0.1 inpackages/sim-cli@babel/parser/@babel/types7.29.x → 8.1.2 in@sim/workflow-codeand@sim/workspace-code, and the root@babel/parserthe audit scripts use. Upgrading the root too means the CLI bundle carries one parser copy instead of twoapps/simstays on Babel 7: its executor parses user function code (syntax check, TS strip, the request AST walk), and that runtime behaviour is out of scope hereobjectasExpression | Super, so I added anisMemberAccessguard inbabel.tsand typed chain roots asMemberExpression['object']. I dropped the'Import'hint case, which Babel 8 no longer emits (dynamic import is alwaysImportExpression)check-source-conventionsnow readsTSImportType.source, which Babel 8 renamed fromargument; without this the audit crashes. I also dropped the Babel 7Import-callee branches from it,check-sql-date-bindingandcheck-test-patternsVersions and breaking changes (npm registry + upstream changelogs)
allowExcessArguments(false)was already everywhere (13). No duplicate flags or commands (12)--x/--no-xpairs are all positive-first, so their default staysundefined(15). NostoreOptionsAsPropertiesorcombineFlagAndOptionalValue_hidden/_actionHandlerfields read by search, docs and inventory are still presentboxWrapfills the full width>=22styleTextrespects TTY /NO_COLOR/FORCE_COLORand is stable, but its coloured output is not byte-identical to chalk's, so I kept chalk:styleTextemits an open/close pair where chalk emits nothing.\nand\r\n, chalk closes and reopens the style on each line, whilestyleTextlets one span cross the break. The CLI styles such strings (dim('\nWaiting…'),dim(${message}\n)).minimumReleaseAge, and its parser fixes are error-recovery and Flow edge casesMemberExpression.objectmay beSuper,ImportExpression,TSImportType.source. Parser options in use (errorRecovery,allowReturnOutsideFunction,allowSuperOutsideMethod,typescript) are unchanged in meaning for these inputs^22.18.0 || >=24.11.0, and commander 15 declares>=22.12.0. The CLI,@sim/workflow-code,@sim/workflow-sdkand@sim/workspace-codenow declare^22.18.0 || >=24.11.0, matching the strictest bundled dependency. The README and CLI install docs say so, and the publish workflow smoke-tests the packed bundle on Node 22.18.0, the floorType of Change
Testing
type-checktest:scripts(1011)check:workflow-code-golden),check:audits(incl.check:cli-docs,check:sim-cli-bundle),check:test-types,check:migrations, docs compatibility, lint, andcheck-block-registryagainst stagingcheck-source-conventions.test.tsgoes red under Babel 8 with the oldTSImportType.argumentread and green with the fix--version,--helpand unknown-command errors on Node 22.19Checklist
test-auditauthoring gate)