Repository navigation
update packages - #1175
update packages#1175
Conversation
WalkthroughDevelopment dependencies were updated in two package.json files. In the root package.json, several devDependencies were bumped to newer versions. In the graphai package’s package.json, the versions of typedoc and typedoc-plugin-markdown were incremented. No functional code or exports were altered. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (2)
package.json(1 hunks)packages/graphai/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build (24.x)
- GitHub Check: build (22.x)
| "@types/node": "^24.1.0", | ||
| "eslint": "^9.32.0", | ||
| "eslint-config-prettier": "^10.1.8", |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
ESLint 9 + typescript-eslint 8: peer-dependency breakage risk
eslint jumped to 9.32.0 while typescript-eslint is still 8.38.0.
typescript-eslint v8 declares peer range ^6 || ^7 || ^8 and is not yet compatible with ESLint 9. Expect peer-dep warnings and possibly runtime failures (rule loading errors).
Action: either keep ESLint 8.x or upgrade to the typescript-eslint pre-release that adds ESLint 9 support (currently v9 RC), then adjust related plugins/configs.
Also applies to: 27-27, 31-31
🏁 Script executed:
#!/bin/bash
# Show peer-dependency issues.
npm install --package-lock-only --silent
npm ls --omit=dev --depth=0 2>/dev/null || true
npm ls typescript-eslint eslint --depth=0Length of output: 3239
To accurately verify the ESLint 9 + typescript-eslint 8 compatibility, we need to inspect the devDependencies (where both packages live) rather than omitting them. Let’s re-run a dependency check including devDependencies:
This will show if [email protected] flags any peer-dependency warnings under ESLint 9.x.
If you still see no output, please open your package.json’s devDependencies block to confirm both eslint and @typescript-eslint packages are declared together.
🏁 Script executed:
#!/bin/bash
# Install lockfile and list ESLint + typescript-eslint with all deps
npm install --package-lock-only --silent
npm ls eslint typescript-eslint --depth=0Length of output: 140
Let’s confirm that both ESLint and the TypeScript ESLint packages are actually declared in your devDependencies. Please run:
🏁 Script executed:
#!/bin/bash
# Dump the devDependencies block from package.json
sed -n '/"devDependencies"/,/^[[:space:]]*}/p' package.jsonLength of output: 545
Pin ESLint 8 or upgrade TypeScript-ESLint to v9
Your devDependencies include
"eslint": "^9.32.0",
"typescript-eslint": "^8.38.0"but typescript-eslint v8 only supports ESLint ^6 | ^7 | ^8. With ESLint 9 you’ll get peer-dependency warnings and rule-loading failures at runtime.
Action items:
- Either downgrade ESLint to
^8.x(e.g."eslint": "^8.45.0"), or - Upgrade to the v9 pre-release of TypeScript-ESLint:
- Replace your
typescript-eslintentry withnpm install -D @typescript-eslint/parser@next @typescript-eslint/eslint-plugin@next
- Update your ESLint config to use the scoped
@typescript-eslint/*packages.
- Replace your
🤖 Prompt for AI Agents
In package.json around lines 22 to 24, there is a version mismatch between
ESLint (v9.32.0) and typescript-eslint (v8.38.0), causing peer dependency
warnings and runtime issues. To fix this, either downgrade ESLint to a
compatible v8 version like "^8.45.0" or upgrade typescript-eslint to the v9
pre-release by replacing the current typescript-eslint packages with
"@typescript-eslint/parser@next" and "@typescript-eslint/eslint-plugin@next" via
npm install, and update your ESLint configuration to use the scoped
@typescript-eslint packages accordingly.
| "typedoc": "^0.28.8", | ||
| "typedoc-plugin-markdown": "^4.8.0" |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Typedoc ↔ plugin version bump: verify doc build still passes
typedoc 0.28.8 and typedoc-plugin-markdown 4.8.0 are just patch bumps, but the plugin tends to pin against the exact minor/patch of typedoc. Make sure the API docs and Markdown generation tasks (npm run typedoc / typedoc:md) complete without new warnings or broken links.
🏁 Script executed:
#!/bin/bash
# Run the two doc targets and fail on any non-zero exit code.
set -e
yarn workspace graphai run typedoc
yarn workspace graphai run typedoc:mdLength of output: 1239
Typedoc ↔ plugin version bump: doc build is now failing
Running yarn workspace graphai run typedoc (and typedoc:md) exits with code 127 due to a missing Node binary in the Yarn temp directory. Please address the following:
- Review the
typedocandtypedoc:mdscript entries inpackages/graphai/package.json—ensure they invoke the local TypeDoc binary (e.g. usetypedocinstead ofnpx typedoc) or adjust your Yarn workspace bin configuration. - Confirm that
[email protected]is fully compatible with[email protected], and upgrade/downgrade the plugin if necessary. - Re-run
npx typedoc src/index.ts --out ../../docs/apiDoclocally to validate that the docs build completes without errors.
🤖 Prompt for AI Agents
In packages/graphai/package.json around lines 32 to 33, the typedoc and
typedoc-plugin-markdown versions cause the doc build to fail with exit code 127
due to a missing Node binary. Fix this by updating the typedoc and typedoc:md
script entries to invoke the local TypeDoc binary directly (e.g., use "typedoc"
instead of "npx typedoc") to avoid relying on npx. Also, verify that
[email protected] is compatible with [email protected] and adjust the
plugin version if needed. Finally, run the typedoc command locally to confirm
the documentation builds successfully without errors.
Summary by CodeRabbit