Repository navigation
fix(jupyter): update dependencies with compatible TypeScript and ESLint - #675
renovate[bot] wants to merge 3 commits into
Conversation
d35cf27 to
416d2a9
Compare
97c0a03 to
6c771ee
Compare
6c771ee to
9f9d4e9
Compare
44bdfd6 to
75699a0
Compare
75699a0 to
15e4580
Compare
9582657 to
ebd5ecb
Compare
49d2b0a to
39246d2
Compare
39246d2 to
d5a266b
Compare
d5a266b to
7082e70
Compare
| "eslint-plugin-react-refresh": "^0.5.0", | ||
| "globals": "^17.0.0", | ||
| "typescript": "~5.9.0", | ||
| "typescript": "~7.0.0", |
There was a problem hiding this comment.
🟡 TypeScript upgraded to a version the linter does not support, breaking linting
TypeScript is bumped to version 7 (typescript at livekit-rtc/jupyter-html/package.json:28) while the linter package is left unchanged, but that linter only supports TypeScript below 6.1, so the two can no longer work together.
Impact: Running the project's lint step against the code will fail or emit unsupported-version warnings because the installed toolchain does not officially support TypeScript 7.
Unsatisfied peer dependency between typescript and typescript-eslint
typescript-eslint@^8.56.1 is kept unchanged in livekit-rtc/jupyter-html/package.json:29, and its declared peer requirement is typescript: '>=4.8.4 <6.1.0' (see livekit-rtc/jupyter-html/pnpm-lock.yaml:1224-1226). The bump to typescript: ~7.0.0 resolves to typescript@7.0.2 (livekit-rtc/jupyter-html/pnpm-lock.yaml:1228), which is outside that range. The lint script (eslint .) uses typescript-eslint (see livekit-rtc/jupyter-html/eslint.config.js:5,10), so type-aware linting runs against an unsupported TypeScript version. The renovate update bumped TypeScript to a new major without a compatible bump of typescript-eslint.
Prompt for agents
The devDependency typescript was bumped to ~7.0.0 but typescript-eslint is kept at ^8.56.1, whose peer dependency requires typescript >=4.8.4 <6.1.0 (confirmed in pnpm-lock.yaml). This makes the installed toolchain unsupported and will break the `lint` script that relies on typescript-eslint. Options: (1) hold TypeScript at a version supported by typescript-eslint (e.g. ~5.9.0) until typescript-eslint publishes a release that supports TypeScript 7, or (2) also upgrade typescript-eslint to a version whose peer range includes TypeScript 7. Verify the lock file resolves a typescript-eslint whose typescript peer range includes the chosen TypeScript version.
Was this helpful? React with 👍 or 👎 to provide feedback.
09d1770 to
ae25753
Compare
There was a problem hiding this comment.
Devin Review found 1 new potential issue.
2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| "typescript": "~7.0.0", | ||
| "typescript-eslint": "^8.56.1", | ||
| "vite": "^6.4.1", | ||
| "vite": "^8.0.0", |
There was a problem hiding this comment.
🟡 Published notebook widget keeps old bundle
After these upgrades, Python packages still ship the old notebook bundle because the generated HTML remains unchanged. room_html loads that committed HTML, not the upgraded source.
Learn more
The notebook widget is distributed as a checked-in HTML resource rather than rebuilt when Python packages are created. The build script writes to that resource, while package data includes the committed HTML in distributions. Neither that resource nor the packaging workflow changed, so the dependency upgrades do not reach users of the packaged widget.
Example: A new RTC wheel built from this commit contains the same notebook HTML as a wheel built from the base commit, even though the Vite dependency is now version 8.
Recommended fix: Run pnpm install --frozen-lockfile and pnpm build in the notebook project, then commit the updated generated resource; alternatively, make the Python packaging build it reproducibly.
Was this helpful? React with 👍 or 👎 to provide feedback.
ca2cbdc to
86d4095
Compare
477348b to
be0f9c7
Compare
c8e1d42 to
80fd301
Compare
4e917c1 to
b6525cc
Compare
d9c65af to
27bdb41
Compare
78f947f to
8f99629
Compare
cloudwebrtc
left a comment
There was a problem hiding this comment.
Verified the TypeScript 7 build alias and TypeScript 6 compiler API compatibility layer, preserved the valid updates from #680, and validated clean frozen installation, lint, and production build. The new Node.js 24 Jupyter CI passes. Merge remains contingent on completion of the remaining CI checks.
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Summary
Update the Jupyter UI toolchain and consolidate the valid dependency updates from #680. TypeScript 7 does not expose the compiler API required by typescript-eslint, so installing it directly as
typescriptmadepnpm run lintcrash.@typescript/nativealias; expose the TypeScript 6 compatibility API through thetypescriptalias, following the official side-by-side guidance.Validation
CI=true pnpm install --frozen-lockfile --ignore-scripts: passed.pnpm run lint: passed with one non-blockingreact-refresh/only-export-componentswarning in App.tsx.pnpm run build: passed, including TypeScript checking and single-file HTML generation.git diff --check: passed.Supersedes #680; close it after this consolidated update merges.