Repository navigation
chore: update package versions and configurations for improved compatibility and performance; includes dependency upgrades and adjustments to TypeScript configurations #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| "@hyperse/inspector-babel-plugin": patch | ||
| "@hyperse/inspector-middleware": patch | ||
| "@hyperse/inspector-component": patch | ||
| "@hyperse/inspector-swc-plugin": patch | ||
| "@hyperse/inspector-common": patch | ||
| "@hyperse/next-inspector": patch | ||
| "@hyperse/inspector": patch | ||
| --- | ||
|
|
||
| chore: update package versions and configurations for improved compatibility and performance; includes dependency upgrades and adjustments to TypeScript configurations |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,19 +43,18 @@ | |
| "typecheck": "tsc --project ./tsconfig.json --noEmit" | ||
| }, | ||
| "devDependencies": { | ||
| "@hyperse/eslint-config-hyperse": "^1.5.0", | ||
| "@hyperse/eslint-config-hyperse": "^1.7.2", | ||
| "@hyperse/inspector-common": "workspace:*", | ||
| "@swc/core": "~1.15.8", | ||
| "@swc/wasm-web": "^1.15.8", | ||
| "@types/node": "^25.0.3", | ||
| "@vitest/coverage-istanbul": "^4.0.16", | ||
| "@vitest/ui": "^4.0.16", | ||
| "eslint": "^9.39.2", | ||
| "@swc/core": "~1.15.30", | ||
| "@swc/wasm-web": "^1.15.30", | ||
| "@types/node": "^25.6.0", | ||
| "@vitest/coverage-istanbul": "^4.1.5", | ||
| "@vitest/ui": "^4.1.5", | ||
| "eslint": "^10.2.1", | ||
| "npm-run-all": "^4.1.5", | ||
| "rimraf": "^6.1.2", | ||
| "typescript": "^5.9.3", | ||
| "vite-tsconfig-paths": "^6.0.3", | ||
| "vitest": "^4.0.16" | ||
| "rimraf": "^6.1.3", | ||
| "typescript": "^6.0.3", | ||
| "vitest": "^4.1.5" | ||
|
Comment on lines
+55
to
+57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cd crates/inspector-swc-plugin && cat -n package.json | grep -A 10 -B 10 "engines"Repository: hyperse-io/code-inspector Length of output: 592 🌐 Web query:
💡 Result: Vitest 4.1.5 requires Node.js >= 20.0.0. Citations:
Align the development engine with Vitest 4 Node requirements.
"engines": {
- "node": ">=18.0.0"
+ "node": ">=20.0.0"
},This applies to lines 59-60. 🤖 Prompt for AI Agents |
||
| }, | ||
| "engines": { | ||
| "node": ">=18.0.0" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,5 @@ Before running the demo, you need to build the library first | |
| ```bash | ||
| yarn g:build | ||
| ``` | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: hyperse-io/code-inspector
Length of output: 5051
🌐 Web query:
What swc_plugin_runner / host runtime versions are compatible with swc_core 64.0.0 WASM plugins per plugins.swc.rs?💡 Result:
No specific compatibility information found for swc_core 64.0.0 WASM plugins on plugins.swc.rs or official docs. swc_core latest released version is 63.1.3 (as of 2026-04-14). Compatibility is determined by matching swc_core versions between plugins (built with specific swc_core) and host runtimes (
@swc/core, Next.js, Rspack). Use https://plugins.swc.rs/ to select runtime/framework version and find compatible plugin swc_core versions. For plugins built with swc_core >=47, enable swc_ast_unknown cfg for partial backward compatibility across@swc/coreversions.Citations:
🏁 Script executed:
Repository: hyperse-io/code-inspector
Length of output: 1121
🌐 Web query:
@swc/core 1.15.30 swc_core version bundled 64.0.0💡 Result:
@swc/coreversion 1.15.30 bundles swc_core version 64.0.0. This is a nightly release (e.g., 1.15.30-nightly-20260418.1 for the linux-x64-gnu platform), as evidenced by Snyk indexing the package published around 2026-04-19. Multiple GitHub releases from April 19, 18, and earlier explicitly tag "swc_core v64.0.0", aligning with the pattern seen in stable releases like 1.15.24 bundling v62.0.0 and 1.15.21 with v59.0.1. The swc_core crate's latest stable is v63.1.3 (crates.io, updated 2026-04-14), confirming v64.0.0 is from a recent nightly build used in@swc/core's platform-specific binaries.Citations:
🏁 Script executed:
Repository: hyperse-io/code-inspector
Length of output: 50468
🌐 Web query:
Next.js 16.2.4 bundled@swc/coreversion SWC compiler💡 Result:
Next.js 16.2.4 bundles the SWC compiler via its internal
@next/swcpackage, which uses swc_core version likely around 56.0.0 or later (based on recent updates in the repository). The exact version is specified in the Cargo.toml file of the next.js monorepo at the v16.2.4 tag, typically swc_core = { version = "56.x.x", features = [...] }. No npm@swc/corepackage is directly bundled; Next.js uses native Rust-based SWC binaries compiled from swc_core. To check the precise version in a project, inspect node_modules/.pnpm/next-swc@16.2.4/node_modules/next-swc/native/* or the Cargo.lock file in the source.Citations:
swc_coretov16.0.0vercel/next.js#76414🌐 Web query:
Rspack 2.0.0@swc/corebundled version💡 Result:
Rspack 2.0.0 bundles
@swc/coreversion 62.x (exact patch version not explicitly stated in sources, but the final pre-release bump was to swc_core 62 in PR#13602, merged before the 2.0.0 release on 2026-04-22).Citations:
swc_corefrom 56 to 58 web-infra-dev/rspack#13164Critical: swc_core 64.0.0 is incompatible with Next.js 16.2.4 and Rspack 2.0.0 bundled WASM plugin hosts.
The README documents Next.js >=16.1.1 and Rspack >=1.6.0 support, and examples show Next.js 16.2.4 and Rspack 2.0.0. However:
@next/swc@swc/core62.x (swc_core 62)Neither version is compatible with WASM plugins built against swc_core 64.0.0. This mismatch will cause
failed to run Wasm plugin transformerrors at runtime. Verify the actual swc_core versions shipped by your targeted Next.js and Rspack versions before merging. If this is an intentional toolchain jump, update the version constraints in the README and examples accordingly.The internal Cargo.toml pins are consistent: all match swc_core 64.0.0's exact dependency requirements (swc_ecma_utils 29.1.0 is correct, not a typo). Cargo will resolve without duplication if dependencies fetch successfully.
🤖 Prompt for AI Agents