Skip to content

fix: Backport bundler-safe optional module lookups#2254

Merged
dcodeIO merged 1 commit into
protobufjs-v7.xfrom
patch/reinquire-7.x
May 17, 2026
Merged

fix: Backport bundler-safe optional module lookups#2254
dcodeIO merged 1 commit into
protobufjs-v7.xfrom
patch/reinquire-7.x

Conversation

@dcodeIO

@dcodeIO dcodeIO commented May 16, 2026

Copy link
Copy Markdown
Member

Backports #2237 to the 7.x line as suggested in #2214.

Also updates the fetch micromodule that depends on inquire to obtain fs. It is currently published at 1.1.0, but the 7.x branch had an unreleased version bump to 1.1.1, so this PR reverts that bookkeeping and lets release automation pick up the changes as the actual 1.1.1 release.

Note that fetch needs to be published first, and the release-please PR for the main package amended, bumping the fetch dependency version.

@dcodeIO dcodeIO requested a review from alexander-fenster May 16, 2026 11:12
@dcodeIO dcodeIO merged commit 0853a62 into protobufjs-v7.x May 17, 2026
6 checks passed
@dcodeIO dcodeIO deleted the patch/reinquire-7.x branch May 19, 2026 13:07
freben added a commit to backstage/backstage that referenced this pull request May 26, 2026
Since protobufjs 7.5.9, the @protobufjs/inquire utility is no longer
called with dynamic module names (replaced by bundler-safe lookups in
protobufjs/protobuf.js#2254). However, webpack/rspack still statically
analyzes the inquire source and emits a "Critical dependency" warning
for its require(moduleName) pattern. This is a false positive — the
code path is dead in practice.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
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