Skip to content

build(deps): regenerate package-lock.json to match http-proxy-middleware bump - #2228

Merged
diegosouzapw merged 2 commits into
diegosouzapw:release/v3.8.0from
NomenAK:fix/regenerate-package-lock-http-proxy-middleware-2026-05-13
May 14, 2026
Merged

diegosouzapw merged 2 commits into
diegosouzapw:release/v3.8.0from
NomenAK:fix/regenerate-package-lock-http-proxy-middleware-2026-05-13

Conversation

@NomenAK

@NomenAK NomenAK commented May 13, 2026

Copy link
Copy Markdown
Contributor

What

Regenerate package-lock.json so it matches package.json again after the recent http-proxy-middleware major bump.

Why

On a fresh clone of release/v3.8.0, npm ci currently fails:

npm error `npm ci` can only install packages when your package.json
and package-lock.json or npm-shrinkwrap.json are in sync.

The cause is commit 9e49baef which bumped http-proxy-middleware 3.x → 4.x in package.json without regenerating the lockfile. Anyone trying to build the image from source (or run npm ci in CI) hits this. We hit it on our fork's deploy rebuild yesterday and worked around it by running npm install --package-lock-only locally.

How

  • Ran npm install --package-lock-only on release/v3.8.0 HEAD to refresh the lockfile in-place.
  • Only package-lock.json is changed; no behavior change.
  • Verified npm ci succeeds afterward.

Notes

Happy to revise if the bump was deliberate and the lockfile is intended to lag, or if you'd prefer to roll back the bump entirely.

Upstream commit 9e49bae bumped http-proxy-middleware from 3.x to 4.x
in package.json but the lockfile was not regenerated, causing npm ci
to fail with:

  npm error `npm ci` can only install packages when your package.json
  and package-lock.json or npm-shrinkwrap.json are in sync.

This regenerates package-lock.json so npm ci succeeds again on a fresh
clone of release/v3.8.0.

Co-authored-by: OmniRoute Ops <ops@nomenak.dev>
@NomenAK
NomenAK requested a review from diegosouzapw as a code owner May 13, 2026 15:23

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the http-proxy-middleware dependency from version 3.0.5 to 4.0.0, along with associated changes to the dependency tree including the addition of httpxy and the removal of deprecated packages like http-proxy and eventemitter3. A critical compatibility issue was identified: the new version of http-proxy-middleware requires Node.js 22.15.0 or higher, which conflicts with the project's current support for Node.js 20. It is recommended to either update the project's engine requirements or downgrade the dependency to maintain compatibility.

Comment thread package-lock.json
Comment on lines 9313 to 9315
"engines": {
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
"node": "^22.15.0 || ^24.0.0 || >=26.0.0"
}

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.

critical

The update to http-proxy-middleware v4 introduces a breaking change for Node.js version support. The new version requires Node.js ^22.15.0 || ^24.0.0 || >=26.0.0, which drops support for Node.js 20.

However, this project's package.json still lists Node.js 20 as a supported version (>=20.20.2 <21). This will cause npm install to fail for users on Node.js 20.

This is a significant compatibility issue. Please consider one of the following resolutions:

  • Update the project's engines in package.json to drop support for Node.js 20. This would be a breaking change for the project.
  • Downgrade http-proxy-middleware to a version that is compatible with all supported Node.js versions for this project.

Given the context of this PR, downgrading the dependency seems more appropriate unless dropping Node 20 support is an intentional decision.

@NomenAK

NomenAK commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

Re the engine compat concern from review: this is real but doesn't originate here — the http-proxy-middleware 3→4 bump came from upstream commit 9e49bae (in package.json). This PR only regenerates the lockfile to match, since npm ci is broken on main as-is.

Two ways to resolve, both fine for us:

  • Revert the dep bump (keep hpm@3 + Node 20 support). Happy to close this PR and open a downgrade-lockfile PR instead.
  • Keep hpm@4 and bump engines.node to ≥22.15. This PR + an engines bump would unblock.

Either direction works — your call.

@diegosouzapw

Copy link
Copy Markdown
Owner

Hey @NomenAK! Thanks for catching the http-proxy-middleware lock-sync gap.

This PR is mutually exclusive with #2214 (which downgrades http-proxy-middleware to ^3.0.5). We need to decide between 3.x (currently in release/v3.8.0 lockfile) vs 4.x.

The blocker for 4.x: requires node >=22.15.0 || >=24.0.0 || >=26.0.0. Our engines.node is >=20.20.2 <21 || >=22.22.2 <23 || >=24.0.0 <27 — users on 20.x cannot install. Bumping engines.node would drop 20.x support, which is a v4.x decision, not v3.8.x.

For v3.8.x: leaning toward staying on 3.x (compatibility) and revisiting 4.x in the v3.9 cycle. Will discuss with maintainers and update here.

Leaving this open. Thanks for the contribution!

@diegosouzapw
diegosouzapw merged commit ebed308 into diegosouzapw:release/v3.8.0 May 14, 2026
2 checks passed
@diegosouzapw

Copy link
Copy Markdown
Owner

Thanks @NomenAK! Lockfile is now in sync with http-proxy-middleware 4.x.

Follow-up: bumped engines.node in a subsequent commit to drop Node 20.x support, since hpm 4.x requires Node >=22.15.0. Logged in CHANGELOG.md as a breaking change for v3.8.x.

Merged via /review-prs-cc workflow.

diegosouzapw added a commit that referenced this pull request May 14, 2026
http-proxy-middleware 4.x (introduced via #2228) requires Node >=22.15.0.
Updated engines.node to >=22.22.2 <23 || >=24.0.0 <27 (drops 20.x).

BREAKING CHANGE: users on Node 20.x must upgrade to Node 22.22.2+ or 24+.

Refs: #2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
diegosouzapw added a commit that referenced this pull request May 14, 2026
… 20.x)

The root package.json was updated in 52f3285 to drop Node 20.x support
(http-proxy-middleware 4.x requirement). electron/package.json had no
engines field declared, leaving the desktop build implicitly permissive.

Adds the same constraint (>=22.22.2 <23 || >=24.0.0 <27) to keep the
electron workspace consistent with the root engine policy.

Refs: #2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
diegosouzapw added a commit that referenced this pull request May 14, 2026
Deep audit of all 320 commits since v3.7.9 found:
- 18 merged PRs not documented in CHANGELOG (4 features, 10 bug fixes, 1 security, 2 chores, 1 debug improvement)
- 3 contributors entirely missing from credits table (@NomenAK with 12 PRs, @kang-heewon, @one-vs)
- 4 existing contributors with inaccurate PR counts (@oyi77 8→12, @ddarkr 2→3, @andrewmunsell 2→3, @nickwizard 2→3)

New entries added:
- feat: #2135 (1proxy settings), #2227 (antigravity project ID), #2238 (Z.AI Search), #2240 (CLI Suite)
- fix: #2217, #2218, #2219, #2221, #2222, #2223, #2224, #2231, #2233, #2236, #2242, #2243
- security: #2209 (stack trace exposure)
- chore: #2228, #2234

Total contributors updated from 50+ to 55+.
This was referenced May 14, 2026
diegosouzapw added a commit that referenced this pull request May 16, 2026
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
…osouzapw#2228)

Integrated into release/v3.8.0 (http-proxy-middleware bumped to 4.x; engines.node updated in follow-up)
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
http-proxy-middleware 4.x (introduced via diegosouzapw#2228) requires Node >=22.15.0.
Updated engines.node to >=22.22.2 <23 || >=24.0.0 <27 (drops 20.x).

BREAKING CHANGE: users on Node 20.x must upgrade to Node 22.22.2+ or 24+.

Refs: diegosouzapw#2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
… 20.x)

The root package.json was updated in eefe291 to drop Node 20.x support
(http-proxy-middleware 4.x requirement). electron/package.json had no
engines field declared, leaving the desktop build implicitly permissive.

Adds the same constraint (>=22.22.2 <23 || >=24.0.0 <27) to keep the
electron workspace consistent with the root engine policy.

Refs: diegosouzapw#2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
Deep audit of all 320 commits since v3.7.9 found:
- 18 merged PRs not documented in CHANGELOG (4 features, 10 bug fixes, 1 security, 2 chores, 1 debug improvement)
- 3 contributors entirely missing from credits table (@NomenAK with 12 PRs, @kang-heewon, @one-vs)
- 4 existing contributors with inaccurate PR counts (@oyi77 8→12, @ddarkr 2→3, @andrewmunsell 2→3, @nickwizard 2→3)

New entries added:
- feat: diegosouzapw#2135 (1proxy settings), diegosouzapw#2227 (antigravity project ID), diegosouzapw#2238 (Z.AI Search), diegosouzapw#2240 (CLI Suite)
- fix: diegosouzapw#2217, diegosouzapw#2218, diegosouzapw#2219, diegosouzapw#2221, diegosouzapw#2222, diegosouzapw#2223, diegosouzapw#2224, diegosouzapw#2231, diegosouzapw#2233, diegosouzapw#2236, diegosouzapw#2242, diegosouzapw#2243
- security: diegosouzapw#2209 (stack trace exposure)
- chore: diegosouzapw#2228, diegosouzapw#2234

Total contributors updated from 50+ to 55+.
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
…osouzapw#2228)

Integrated into release/v3.8.0 (http-proxy-middleware bumped to 4.x; engines.node updated in follow-up)
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
http-proxy-middleware 4.x (introduced via diegosouzapw#2228) requires Node >=22.15.0.
Updated engines.node to >=22.22.2 <23 || >=24.0.0 <27 (drops 20.x).

BREAKING CHANGE: users on Node 20.x must upgrade to Node 22.22.2+ or 24+.

Refs: diegosouzapw#2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
… 20.x)

The root package.json was updated in 52f3285 to drop Node 20.x support
(http-proxy-middleware 4.x requirement). electron/package.json had no
engines field declared, leaving the desktop build implicitly permissive.

Adds the same constraint (>=22.22.2 <23 || >=24.0.0 <27) to keep the
electron workspace consistent with the root engine policy.

Refs: diegosouzapw#2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
Deep audit of all 320 commits since v3.7.9 found:
- 18 merged PRs not documented in CHANGELOG (4 features, 10 bug fixes, 1 security, 2 chores, 1 debug improvement)
- 3 contributors entirely missing from credits table (@NomenAK with 12 PRs, @kang-heewon, @one-vs)
- 4 existing contributors with inaccurate PR counts (@oyi77 8→12, @ddarkr 2→3, @andrewmunsell 2→3, @nickwizard 2→3)

New entries added:
- feat: diegosouzapw#2135 (1proxy settings), diegosouzapw#2227 (antigravity project ID), diegosouzapw#2238 (Z.AI Search), diegosouzapw#2240 (CLI Suite)
- fix: diegosouzapw#2217, diegosouzapw#2218, diegosouzapw#2219, diegosouzapw#2221, diegosouzapw#2222, diegosouzapw#2223, diegosouzapw#2224, diegosouzapw#2231, diegosouzapw#2233, diegosouzapw#2236, diegosouzapw#2242, diegosouzapw#2243
- security: diegosouzapw#2209 (stack trace exposure)
- chore: diegosouzapw#2228, diegosouzapw#2234

Total contributors updated from 50+ to 55+.
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
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