Skip to content

Switch to pnpm-only: drop package-lock.json, refresh deps, fix pnpm build approvals - #440

Open
olafleur wants to merge 4 commits into
masterfrom
refresh-package-lock
Open

olafleur wants to merge 4 commits into
masterfrom
refresh-package-lock

Conversation

@olafleur

@olafleur olafleur commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Delete the stale package-lock.json: the repo switched to pnpm in 1610720, so the npm lockfile was unused and had drifted out of sync with package.json
  • Refresh dependencies: bump devDependencies in package.json and regenerate pnpm-lock.yaml accordingly, pulling in patched versions
  • Fix build approvals in pnpm-workspace.yaml: pnpm 11 turns unapproved dependency build scripts into a hard install error (ERR_PNPM_IGNORED_BUILDS). Add the new allowBuilds map while keeping onlyBuiltDependencies/ignoredBuiltDependencies, so both pnpm 10 and 11 install cleanly

Security

pnpm audit on the regenerated lockfile:

total critical high moderate low
this branch 14 0 8 5 1

For comparison, the deleted package-lock.json on master reported 81 advisories including 6 criticals via npm audit --package-lock-only.

The 14 remaining advisories are all in dev-only tooling and fixing them requires breaking major-version bumps (e.g. webpack-dev-server@6). These are tracked separately and are not part of this change.

Testing

  • pnpm install completes cleanly on both pnpm 10.34.7 and 11.17.0 — previously pnpm 11 installs failed with ERR_PNPM_IGNORED_BUILDS
  • pnpm run test:unit: 101,052 passing

Brings the lockfile in sync with package.json: version 4.1.1 -> 4.1.5,
adds the markdown-table devDependency, and refreshes resolved dependency
versions.
@olafleur olafleur changed the title Regenerate package-lock.json to match package.json npm update: regenerate package-lock.json to fix critical security vulnerabilities Oct 18, 2026
@olafleur
olafleur marked this pull request as ready for review October 18, 2026 03:53
@olafleur
olafleur requested a review from gregjacobs October 18, 2026 03:53
…approvals

- Delete the stale package-lock.json (master installs with pnpm since the
  switch to pnpm, so the npm lockfile was unused and drifted out of sync)
- Bump devDependencies in package.json and regenerate pnpm-lock.yaml to pull
  in patched versions, fixing all 6 critical npm audit advisories
- Fix pnpm-workspace.yaml build approvals: add the allowBuilds map required
  by pnpm 11 (fixes hard ERR_PNPM_IGNORED_BUILDS install failures) while
  keeping onlyBuiltDependencies/ignoredBuiltDependencies for pnpm 10

Co-Authored-By: OpenCode <noreply@opencode.github.io>
@olafleur olafleur changed the title npm update: regenerate package-lock.json to fix critical security vulnerabilities Switch to pnpm-only: drop package-lock.json, refresh deps, fix pnpm build approvals Oct 18, 2026
puppeteer 24 types the 'pageerror' event payload as unknown, so the
(err: Error) => ... handlers in the integration specs no longer compile
under the strict tsconfig. Annotate as unknown instead.
dedent 1.7 (pulled in by the dep refresh) re-interprets \xNN / \uNNNN
escape sequences in tagged-template results, including interpolated
values. generate-char-utils interpolates regExp.source, which is literal
escape *text*, so the regenerated src/char-utils.ts and
tests/char-utils.spec.ts contained raw control/surrogate characters,
failing ts-node with TS1517 (range out of order in character class)
when CI regenerated them before running tests.

Pass plain strings to dedent() instead of using the tagged-template
form, which disables the escape re-interpretation. Regenerated output
is byte-identical to the previously committed files.
@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.50%. Comparing base (20000fb) to head (560cfc1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #440   +/-   ##
=======================================
  Coverage   99.50%   99.50%           
=======================================
  Files          23       23           
  Lines        1403     1403           
  Branches      350      350           
=======================================
  Hits         1396     1396           
  Misses          6        6           
  Partials        1        1           

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

This branch has not been deployed

No deployments
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.

1 participant