Skip to content

Task/2653 remove dependencies - #2654

Merged
JoernBerkefeld merged 11 commits into
developfrom
task/2653-remove-dependencies
Oct 2, 2026
Merged

JoernBerkefeld merged 11 commits into
developfrom
task/2653-remove-dependencies

Conversation

@JoernBerkefeld

Copy link
Copy Markdown
Contributor

PR details

What changes did you make? (Give an overview)

Further details (optional)

Dependency Action What changed Direct dependency effect Transitive dependency effect Runtime / bundle effect
update-notifier Removed Removed the automatic once-daily npm update check and passive “new mcdev version available” notification. Core CLI functionality is unaffected. −1 Approximately 35 uniquely removable packages; contributed to Phase 1’s measured reduction of 47 installed lockfile packages Eliminated background registry checks, notifier cache writes, and about 256 KB of bundle input
toposort Replaced internally Added a documented internal topological-sort helper preserving ordering, duplicate-edge, sentinel-filtering, and cycle behavior −1 Approximately 1 uniquely removable package Removes a small external package; behavior is covered by ordering and cycle regression tests
cli-progress Replaced internally Added a documented internal progress-bar implementation with byte-for-byte parity for every current mcdev progress-bar format −1 Removed together with the progress dependency closure; Phase 2 removed 8 installed packages in total Preserves bar glyphs, widths, spacing, percentages, labels, ANSI sequences, TTY behavior, and terminal cleanup
yocto-spinner Replaced internally Added a documented internal spinner with exact terminal-output and lifecycle parity −1 Removed yocto-spinner, yoctocolors, and related nested display packages as part of Phase 2’s 8-package reduction Preserves ANSI colors, Unicode/legacy Windows frames, stream interleaving, cursor cleanup, timers, and SIGINT/SIGTERM exit behavior
prettier Retained, lazy-loaded Replaced the eager import with a cached dynamic import after formatting is confirmed to be enabled 0 0 — package remains installed Avoids evaluating the large Prettier runtime on commands and retrieve/deploy paths where formatting is disabled
prettier-plugin-sfmc Retained, lazy-loaded Dynamically loaded and cached together with Prettier only on formatting-enabled paths 0 0 — package remains installed Keeps the SFMC formatter/parser closure out of non-formatting startup paths
fast-xml-parser Retained, section-limited Dynamically loaded and cached only inside asynchronous DataFilter XML conversion operations 0 0 — package remains installed Unrelated metadata operations no longer evaluate the XML parsing/building closure
simple-git Replaced internally Added a documented, shell-free native Git adapter using child_process.execFile and argument arrays −1 Approximately 5 packages removed from the bundled dependency closure Preserves logs, diffs, rename parsing, revision resolution, remotes, fetch, branches, configuration, Unicode handling, and actionable errors
Total for this PR phase Removed five direct dependencies and lazy-loaded three retained dependencies −5 direct runtime dependencies, from 16 to 11 Approximately 60 installed lockfile packages removed, from 553 to about 493 CLI bundle reduced from 9,691,313 to 9,374,996 bytes: −316,317 bytes, approximately 309 KiB / 3.26%

All internal replacements include source-level JSDoc and regression coverage. Progress visualization is verified byte-for-byte against isolated installations of [email protected] and [email protected]. The native Git adapter is tested against real temporary repositories, including Unicode and unusual filenames, renames, remotes, invalid revisions, missing Git, and shell-metacharacter safety. The final branch passes lint with zero warnings, TypeScript declaration checks, the complete test suite, packed-package verification, bundle measurement, and the reproducible progress-fixture provenance check.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • test scripts updated
  • Wiki updated (if applicable)

JoernBerkefeld and others added 8 commits September 28, 2026 10:53
Replace narrow runtime packages with Node.js APIs and focused internal utilities. Defer update-notifier to CLI execution, remove import-time side effects, and add repeatable bundle-readiness checks for future VS Code bundling.
@JoernBerkefeld JoernBerkefeld added this to the 10.0.0 milestone Sep 28, 2026
@github-actions github-actions Bot added the chore Jira issue-type "Task" label Sep 28, 2026
@JoernBerkefeld JoernBerkefeld linked an issue Sep 28, 2026 that may be closed by this pull request
@JoernBerkefeld JoernBerkefeld self-assigned this Sep 28, 2026
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Coverage Report

Commit:78a5494
Base: develop@d72131a

Type Base This PR
Total Statements Coverage  75.49%  76.23%  (+0.74%)
Total Branches Coverage  72.76%  73.54%  (+0.78%)
Total Functions Coverage  86.53%  86.73%  (+0.2%)
Total Lines Coverage  75.49%  76.23%  (+0.74%)
Details (changed files):
File Statements Branches Functions Lines
lib/metadataTypes/Asset.js  82.45%  74.41%  92.3%  82.45%
lib/metadataTypes/DataExtension.js  79.22%  71.69%  94.59%  79.22%
lib/metadataTypes/DataFilter.js  78.17%  72.61%  80.95%  78.17%
lib/metadataTypes/Event.js  55.84%  44.89%  68.18%  55.84%
lib/metadataTypes/Folder.js  72.42%  63.63%  100%  72.42%
lib/metadataTypes/Journey.js  71.23%  67.12%  96.29%  71.23%
lib/metadataTypes/MetadataType.js  85.65%  83.07%  77.77%  85.65%
lib/util/auth.js  76.85%  76%  80%  76.85%
lib/util/cli.js  44.96%  84.61%  27.27%  44.96%
lib/util/config.js  57.65%  48.97%  100%  57.65%
lib/util/devops.js  73.72%  69.64%  85.71%  73.72%
lib/util/file.js  87.51%  77.89%  94.73%  87.51%
lib/util/git.js  97.12%  75.6%  100%  97.12%
lib/util/init.config.js  69.14%  80%  88.88%  69.14%
lib/util/init.git.js  26.61%  100%  14.28%  26.61%
lib/util/init.npm.js  98.7%  97.95%  100%  98.7%
lib/util/isDeepEqual.js  95.83%  88.23%  100%  95.83%
lib/util/jsonToTable.js  100%  96.55%  100%  100%
lib/util/progress.js  92.11%  81.66%  80.55%  92.11%
lib/util/sessionStore.js  88.58%  81.81%  100%  88.58%
lib/util/topological-sort.js  98.24%  90.9%  100%  98.24%
lib/util/util.js  87.39%  77.14%  93.22%  87.39%
lib/util/validations.js  85.79%  78.57%  87.5%  85.79%
lib/util/migrations/assetV10.js  94.55%  92.1%  100%  94.55%

Comment thread README.md Resolved
@JoernBerkefeld
JoernBerkefeld merged commit b2b505f into develop Oct 2, 2026
7 checks passed
@JoernBerkefeld
JoernBerkefeld deleted the task/2653-remove-dependencies branch October 2, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Jira issue-type "Task"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] drop unnecessary dependencies to prep bundling

1 participant