Skip to content

root - chore: upgrade code quality dependencies + adopt pnpm 11 / Node 22-26 CI#132

Merged
jaredwray merged 5 commits into
mainfrom
claude/node-sdk-dependencies-74tlzx
Jun 12, 2026
Merged

root - chore: upgrade code quality dependencies + adopt pnpm 11 / Node 22-26 CI#132
jaredwray merged 5 commits into
mainfrom
claude/node-sdk-dependencies-74tlzx

Conversation

@jaredwray

@jaredwray jaredwray commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrade the code quality tooling group and modernize the toolchain to pnpm 11 + corepack, with a refreshed CI matrix.

Versions

  • @biomejs/biome 2.4.112.4.16
  • @vitest/coverage-v8 4.1.44.1.8
  • vitest 4.1.44.1.8

Toolchain / CI

  • Pin pnpm 11 via the packageManager field (corepack).
  • Migrate pnpm-workspace.yaml build approval from the legacy onlyBuiltDependencies list to pnpm 11's allowBuilds config. pnpm 11 no longer honors onlyBuiltDependencies, which is why pnpm install was hard-failing with ERR_PNPM_IGNORED_BUILDS: esbuild in CI.
  • Switch workflows from npm install pnpm -g to pnpm/action-setup, pinned to a verified commit SHA (0e279bb… # v6.0.8) per the supply-chain policy, with actions/setup-node pnpm caching.
  • Consolidate the test matrix to Node 22, 24, 26 (drop Node 20); removed the redundant per-version test workflows.

Tests

  • pnpm install --frozen-lockfile runs build scripts and exits 0
  • pnpm build passes
  • pnpm lint passes
  • vitest passes 230/231 across Node 22/24/26

Known unrelated failure (not caused by this PR)

One pre-existing live-API integration test fails deterministically: test/link.test.ts > should create a QR code with custom options → HTTP 400. This PR changes no src//test/ code; the basic QR tests pass. Tracked separately in #133.

https://claude.ai/code/session_01N45mbsSvk2ddx9LWVqKwf2

claude added 2 commits June 12, 2026 14:21
- @biomejs/biome 2.4.11 -> 2.4.16
- @vitest/coverage-v8 4.1.4 -> 4.1.8
- vitest 4.1.4 -> 4.1.8

https://claude.ai/code/session_01N45mbsSvk2ddx9LWVqKwf2
…/26 CI

- Pin pnpm 11 via packageManager field for corepack
- Migrate pnpm-workspace build approval to pnpm 11 allowBuilds config
  (onlyBuiltDependencies is no longer honored, which broke CI installs)
- Switch CI workflows from 'npm install pnpm -g' to pnpm/action-setup@v4
  with setup-node pnpm cache
- Consolidate test matrix to Node 22, 24, 26 (drop Node 20)

https://claude.ai/code/session_01N45mbsSvk2ddx9LWVqKwf2
@jaredwray jaredwray changed the title root - chore: upgrade code quality dependencies root - chore: upgrade code quality dependencies + adopt pnpm 11 / Node 22-26 CI Jun 12, 2026
Comment thread .github/workflows/code-coverage.yaml Outdated
Bump pnpm/action-setup from the deprecated v4 (Node 20 runtime) to v6.0.8,
pinned by full commit SHA to satisfy the supply-chain pinning policy.

https://claude.ai/code/session_01N45mbsSvk2ddx9LWVqKwf2
claude added 2 commits June 12, 2026 14:46
…eable 2.3.5)

@cacheable/net 2.0.8 routes requests through the runtime's native fetch
instead of the bundled undici, and pulls in cacheable 2.3.5. Upgrading to
pick up that change for the QR-code POST path.

- @cacheable/net 2.0.7 -> 2.0.8
- cacheable 2.3.4 -> 2.3.5

https://claude.ai/code/session_01N45mbsSvk2ddx9LWVqKwf2
The Hyphen API now rejects the createQrCode custom-options payload with HTTP
400 (it was accepted through at least 2026-04-13); tracked in #133. Skip the
live integration test and add a stubbed unit test that still exercises the
custom-options request-body branches so coverage stays at 100%.

https://claude.ai/code/session_01N45mbsSvk2ddx9LWVqKwf2
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (cbb88e7) to head (781e1a2).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #132   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          477       477           
  Branches        99        99           
=========================================
  Hits           477       477           

☔ 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.

@jaredwray jaredwray merged commit 54f15b5 into main Jun 12, 2026
9 checks passed
@jaredwray jaredwray mentioned this pull request Jun 12, 2026
4 tasks
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.

2 participants