Pin node-inspect-extracted to last known compatible version 3.0.2 #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
The node-inspect-extracted package was recently updated to version 3.1.0 to support Node.js 24. As part of this update, the package now includes direct references to several Node.js native globals such as Atomics, Math, Proxy, and Reflect.
This change introduces a problem for projects using @fastly/js-compute. When bundling and compiling code into main.wasm using the js-compute-runtime, the runtime is unable to process features like Atomics, leading to build-time failures.
Reproduction Steps
To reproduce the issue:
Create a minimal Fastly Compute@Edge app using TypeScript.
Install compute-js-opentelemetry@latest (which brings in node-inspect-extracted@^3.1.0 as a transitive dependency).
Run your build using webpack or esbuild.
Attempt to compile the bundle into main.wasm.
You'll encounter a compilation error similar to:

This happens because js-compute-runtime cannot handle certain modern Node.js features like Atomics or deep Reflect usage.
Resolution
Until js-compute-runtime officially supports these features, we are pinning node-inspect-extracted to the last known working version (3.0.1) to avoid build issues and ensure stability in environments relying on Fastly's wasm-based runtime.
Changes
Added a direct dependency on [email protected] in package.json to lock the version used during installs.
Notes
Once js-compute-runtime adds support for Atomics and related features, we can safely upgrade this dependency again. This fix is a temporary but necessary measure to prevent production build failures