Skip to content

build(deps): align dev tools in the packages - #561

Merged
uniqueg merged 2 commits into
devfrom
build/align-dev-tools
Nov 3, 2026
Merged

uniqueg merged 2 commits into
devfrom
build/align-dev-tools

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes the old dev tools behind 12 Dependabot alerts. Light lane: dev dependencies and test configuration only, no component code. I reviewed the diff myself.

  • tsup (11 low alerts, GHSA-3mv9-4h5g-vhg3): removed from the nine packages that declared ^7.2.0. scripts/build.js requires tsup from the root, which already has 8.5.0, so those copies were never used. The root's minimum goes from ^8.0.2 to ^8.5.0, past the advisory's range. Moving the packages to ^8.5.0 instead fails to resolve (ERESOLVE, through tsup's optional typescript peer).

  • esbuild (1 medium alert, GHSA-67mh-4wv8-2f99): @web/dev-server-esbuild moves from ^0.3.0 and ^0.4.3 to the root's ^2.0.0 in the eight packages that declare it, which takes esbuild 0.17 and 0.18 out of the lockfile. The lowest version left is 0.25.0.

  • Package test configs: the newer esbuild reads experimentalDecorators only from a tsconfig, so the packages' own web-test-runner.config.mjs files (used by test:watch, not by CI) now pass tsconfig and target, as the root config does.

The lockfile shrinks by about 8,700 lines.

How it was verified

  • npm ci, then npm run lint (includes the build of all packages and the docs): 19 of 19 tasks pass.
  • The generated tw-styles.ts files are byte-identical to the earlier dev baseline, and the docs export has the same number of files (175).
  • npm ls reports nothing invalid or missing.
  • Dev servers: wds starts in ecc-client-ga4gh-wes and ecc-utils-design, and serves /demo/ with status 200. The web-dev-server.config.mjs files only mention the esbuild plugin in comments.
  • Package test config: ecc-client-elixir-cloud-registry's own config in Playwright Chromium passes 37 of 37 tests. Before the fix, two of its three test files failed with a syntax error. The other packages' configs got the same change but weren't run.
  • Not run locally: the npm test browser matrix (WebKit isn't installed here). CI runs it.

Closes #557

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG

Remove tsup from the packages: scripts/build.js requires the root's
copy, so theirs were never used. Raise the root's minimum to 8.5.0, past
the advisory's range. Move @web/dev-server-esbuild to the root's 2.x, so
that esbuild up to 0.24.2 leaves the lockfile.

Closes #557

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
@sourcery-ai

sourcery-ai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR removes unused vulnerable package-local tsup dependencies, raises the shared tsup version, and upgrades eight packages to @web/dev-server-esbuild 2.x. The lockfile is regenerated to eliminate obsolete vulnerable dependency versions, while build output, dependency integrity, and representative dev-server behavior are verified; browser tests remain CI-only.

Flow diagram for removing vulnerable dependency versions

flowchart TD
    OldTsup[Package-local tsup 7.2.0] --> Remove[Remove unused declarations]
    RootTsup[Root tsup 8.0.2] --> Upgrade[Raise to tsup 8.5.0]
    OldEsbuild[dev-server-esbuild 0.3.x or 0.4.x] --> Align[Align to 2.0.0]
    Remove --> Lockfile[Regenerate package-lock.json]
    Upgrade --> Lockfile
    Align --> Lockfile
    Lockfile --> Verify[npm ci and npm run lint pass]
Loading

File-Level Changes

Change Details Files
Consolidate the workspace on supported development-tool versions and remove unused package-local bundler declarations.
  • Raise the root tsup minimum from 8.0.2 to 8.5.0 to avoid the affected advisory range.
  • Remove tsup 7.x declarations from nine packages because builds resolve the root installation.
  • Regenerate the lockfile, eliminating obsolete tsup and esbuild versions and reducing dependency metadata substantially.
package.json
package-lock.json
packages/ecc-client-elixir-cloud-registry/package.json
packages/ecc-client-elixir-drs-filer/package.json
packages/ecc-client-elixir-trs-filer/package.json
packages/ecc-client-ga4gh-drs/package.json
packages/ecc-client-ga4gh-service-registry/package.json
packages/ecc-client-ga4gh-tes/package.json
packages/ecc-client-ga4gh-trs/package.json
packages/ecc-client-ga4gh-wes/package.json
packages/ecc-utils-design/package.json
Align all package development servers with the maintained @web/dev-server-esbuild 2.x line.
  • Update eight package manifests from 0.x ranges to ^2.0.0.
  • Remove vulnerable esbuild 0.17 and 0.18 resolutions from the lockfile, leaving 0.25.0 as the lowest retained version.
  • Review compatibility with existing dev-server configuration and local development workflows.
package-lock.json
packages/ecc-client-elixir-cloud-registry/package.json
packages/ecc-client-elixir-drs-filer/package.json
packages/ecc-client-elixir-trs-filer/package.json
packages/ecc-client-ga4gh-drs/package.json
packages/ecc-client-ga4gh-service-registry/package.json
packages/ecc-client-ga4gh-trs/package.json
packages/ecc-client-ga4gh-wes/package.json
packages/ecc-utils-design/package.json
Validate that dependency-only changes preserve builds, generated outputs, package resolution, and development-server behavior.
  • Run npm ci and the full lint/build workflow with all 19 tasks passing.
  • Confirm generated styles are byte-identical and the docs export retains 175 files.
  • Verify npm reports no invalid or missing dependencies and representative dev servers serve /demo/ successfully.
  • Rely on CI for browser tests because WebKit was unavailable locally.
package-lock.json
package.json
packages/ecc-client-elixir-cloud-registry/package.json
packages/ecc-utils-design/package.json

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.89%. Comparing base (d1c0912) to head (3ebfeee).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #561   +/-   ##
=======================================
  Coverage   70.89%   70.89%           
=======================================
  Files          23       23           
  Lines        5638     5638           
  Branches      190      190           
=======================================
  Hits         3997     3997           
  Misses       1636     1636           
  Partials        5        5           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@uniqueg
uniqueg marked this pull request as ready for review November 3, 2026 04:11
@uniqueg
uniqueg requested a review from anuragxxd as a code owner November 3, 2026 04:11

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="packages/ecc-client-elixir-cloud-registry/package.json" line_range="62" />
<code_context>
         "@typescript-eslint/parser": "^5.48.0",
         "@web/dev-server": "^0.1.34",
-        "@web/dev-server-esbuild": "^0.3.0",
+        "@web/dev-server-esbuild": "^2.0.0",
         "@web/test-runner": "^1.0.0",
         "commander": "*",
</code_context>
<issue_to_address>
**Browser tests use incompatible server APIs**

When browser tests run using the changed plugin with the existing workspace dev-server versions, the test-runner configs load `esbuildPlugin` against each workspace's `@web/dev-server` 0.1.x, whose lockfile entry uses `@web/dev-server-core` 0.4.1; the upgraded plugin brings core 1.0.1. If the plugin uses the newer core API, its transform hook is incompatible with the server hosting it, and browser tests fail when serving TypeScript modules.

Align the workspace dev-server versions with the plugin's supported core API, or retain a plugin version compatible with the current servers.

Also at `packages/ecc-client-elixir-drs-filer/package.json:63`, `packages/ecc-client-elixir-trs-filer/package.json:63`, `packages/ecc-client-ga4gh-drs/package.json:60`, `packages/ecc-client-ga4gh-service-registry/package.json:60`, `packages/ecc-client-ga4gh-trs/package.json:60`, `packages/ecc-client-ga4gh-wes/package.json:62`, `packages/ecc-utils-design/package.json:59`.
</issue_to_address>

Linked issues

#557 build(deps): align dev tools in the packages · 2 of 3 met · 1 to check by hand

# Requirement Status Notes
1 Remove the vulnerable package-local tsup declarations and ensure no tsup up to 8.3.4 remains in the lockfile. ✅ Met The package manifests no longer declare tsup; the root declares ^8.5.0 and the lockfile’s tsup entry is 8.5.0.
2 Align @web/dev-server-esbuild and ensure no esbuild up to 0.24.2 remains in the lockfile. ✅ Met All eight package declarations use ^2.0.0; the lockfile’s esbuild entries are 0.25.0 and 0.28.2.
3 Ensure the builds, tests and packages’ dev servers still work. 👀 Check by hand (runtime) Confirm the test suite and dev servers for all applicable packages pass; the PR reports build/lint success and two dev-server checks, but says browser tests were not run locally.

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: packages/ecc-client-elixir-cloud-registry/package.json:62


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

The newer esbuild reads experimentalDecorators only from a tsconfig, so
the packages' own web-test-runner configs failed on Lit decorators with
a syntax error. Pass the package's tsconfig and the target, as the root
config does. CI doesn't run these configs; `test:watch` does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
@uniqueg
uniqueg merged commit 70de380 into dev Nov 3, 2026
21 of 25 checks passed
@uniqueg
uniqueg deleted the build/align-dev-tools branch November 3, 2026 04:26
anuragxxd added a commit that referenced this pull request Nov 13, 2026
Resolve conflicts from the dev-tools alignment (#561): drop the unused
tsup dev dependency, keep tw-animate-css, take dev's esbuild tsconfig
setting in the test runner, and regenerate the lockfile with npm 9.2.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build(deps): align dev tools in the packages

1 participant