Skip to content

chore: bump babel-dead-code-elimination - #6228

Merged
schiller-manuel merged 3 commits into
mainfrom
bump-babel-dce
Dec 26, 2025
Merged

chore: bump babel-dead-code-elimination#6228
schiller-manuel merged 3 commits into
mainfrom
bump-babel-dce

Conversation

@schiller-manuel

@schiller-manuelschiller-manuel commented Dec 25, 2025

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Updated Babel-related build/dev dependencies across multiple packages for improved tooling compatibility and stability.
    • Added a package-level dependency override to ensure consistent type definitions.
  • Tests
    • Snapshot tests cleaned up to remove client-side UI fragments and better reflect server-side behavior.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitaiBot commented Dec 25, 2025

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Bumped several Babel-related dependencies across packages and added a pnpm override; removed various React test-snapshot files and stripped UI/client-side code from an isomorphic test snapshot while preserving server handlers.

Changes

Cohort / File(s)Summary
Dependency updates — router-plugin
packages/router-plugin/package.json
Bumped @babel/core, @babel/traverse, @babel/types to ^7.28.5; babel-dead-code-elimination to ^1.0.11; updated @types/babel__traverse to ^7.28.0.
Dependency updates — start-plugin-core
packages/start-plugin-core/package.json
Bumped @babel/core, @babel/types to ^7.28.5; @babel/code-frame to 7.27.1; babel-dead-code-elimination to ^1.0.11.
Dependency updates — router-utils
packages/router-utils/package.json
Bumped @babel/core, @babel/generator, @babel/parser to ^7.28.5; removed @babel/preset-typescript; updated dev @babel/types.
Workspace manifest override
package.json
Added pnpm override: @types/babel__traverse: ^7.28.0.
Isomorphic test snapshot change
packages/start-plugin-core/tests/createServerFn/snapshots/server-provider/isomorphic-fns.tsx
Removed UI/client-side imports and Route/RouteComponent/local state from snapshot; server handlers and server/evaluator wiring remain.
Test snapshot deletions — router-plugin code-splitter
packages/router-plugin/tests/code-splitter/snapshots/react/.../circular-reference-*.tsx
Deleted multiple circular-reference test snapshot files (various paths under .../1-default/, .../2-components-combined_loader-separate/, .../3-all-combined...) removing helper getComponentName and components (App, OtherComponent) from those snapshots.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • brenelz
  • birkskyum

Poem

🐰 I hopped through package.json with a careful twitch,

nudged Babel bits onward, then gave old snaps a stitch.
I left the server humming, tucked the UI away —
nibble the crumbs, twitch my nose, and bound into the day.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe title accurately describes the primary change: bumping babel-dead-code-elimination dependency across multiple packages, along with related Babel dependency updates.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bump-babel-dce

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 90aadc9 and d29e415.

📒 Files selected for processing (8)
  • packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@errorComponent.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@notFoundComponent.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@errorComponent.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@notFoundComponent.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@loader.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@loader.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@errorComponent.tsx
  • packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@errorComponent.tsx
💤 Files with no reviewable changes (8)
⏰ 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: Test
  • GitHub Check: Preview

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud

nx-cloudBot commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit d29e415

CommandStatusDurationResult
nx affected --targets=test:eslint,test:unit,tes...✅ Succeeded8m 59sView ↗
nx run-many --target=build --exclude=examples/*...✅ Succeeded20sView ↗

☁️ Nx Cloud last updated this comment at 2025-12-26 01:05:17 UTC

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bf152cf and 53e9084.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • packages/router-plugin/package.json
  • packages/start-plugin-core/package.json
  • packages/start-plugin-core/tests/createServerFn/snapshots/server-provider/isomorphic-fns.tsx
💤 Files with no reviewable changes (1)
  • packages/start-plugin-core/tests/createServerFn/snapshots/server-provider/isomorphic-fns.tsx
🧰 Additional context used
📓 Path-based instructions (1)
**/package.json

📄 CodeRabbit inference engine (AGENTS.md)

Use workspace protocol workspace:* for internal dependencies in package.json files

Files:

  • packages/router-plugin/package.json
  • packages/start-plugin-core/package.json
🧠 Learnings (5)
📓 Common learnings
Learnt from: nlynzaad
Repo: TanStack/router PR: 5402
File: packages/router-generator/tests/generator/no-formatted-route-tree/routeTree.nonnested.snapshot.ts:19-21
Timestamp: 2025-10-08T08:11:47.088Z
Learning: Test snapshot files in the router-generator tests directory (e.g., files matching the pattern `packages/router-generator/tests/generator/**/routeTree*.snapshot.ts` or `routeTree*.snapshot.js`) should not be modified or have issues flagged, as they are fixtures used to verify the generator's output and are intentionally preserved as-is.
📚 Learning: 2025-12-06T15:03:07.223Z
Learnt from: CR
Repo: TanStack/router PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-06T15:03:07.223Z
Learning: Applies to **/package.json : Use workspace protocol `workspace:*` for internal dependencies in package.json files

Applied to files:

  • packages/router-plugin/package.json
  • packages/start-plugin-core/package.json
📚 Learning: 2025-11-02T16:16:24.898Z
Learnt from: nlynzaad
Repo: TanStack/router PR: 5732
File: packages/start-client-core/src/client/hydrateStart.ts:6-9
Timestamp: 2025-11-02T16:16:24.898Z
Learning: In packages/start-client-core/src/client/hydrateStart.ts, the `import/no-duplicates` ESLint disable is necessary for imports from `#tanstack-router-entry` and `#tanstack-start-entry` because both aliases resolve to the same placeholder file (`fake-start-entry.js`) in package.json during static analysis, even though they resolve to different files at runtime.

Applied to files:

  • packages/router-plugin/package.json
  • packages/start-plugin-core/package.json
📚 Learning: 2025-12-25T13:04:46.897Z
Learnt from: nlynzaad
Repo: TanStack/router PR: 6215
File: e2e/react-start/custom-basepath/package.json:13-17
Timestamp: 2025-12-25T13:04:46.897Z
Learning: In the TanStack Router repository, e2e test scripts are specifically designed to run in CI (which uses a Unix environment), so Unix-specific commands (like `rm -rf`, `&` for backgrounding, and direct environment variable assignments without `cross-env`) are acceptable in e2e test npm scripts.

Applied to files:

  • packages/router-plugin/package.json
  • packages/start-plugin-core/package.json
📚 Learning: 2025-10-01T18:31:35.420Z
Learnt from: schiller-manuel
Repo: TanStack/router PR: 5330
File: e2e/react-start/custom-basepath/src/routeTree.gen.ts:58-61
Timestamp: 2025-10-01T18:31:35.420Z
Learning: Do not review files named `routeTree.gen.ts` in TanStack Router repositories, as these are autogenerated files that should not be manually modified.

Applied to files:

  • packages/router-plugin/package.json
⏰ 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: Test
  • GitHub Check: Preview
🔇 Additional comments (1)
packages/start-plugin-core/package.json (1)

74-74: LGTM! Consistent version alignment across packages.

The dependency update to babel-dead-code-elimination@^1.0.11 aligns with the version in router-plugin, ensuring consistency across the monorepo.

"@tanstack/router-utils": "workspace:*",
"@tanstack/virtual-file-routes": "workspace:*",
"babel-dead-code-elimination": "^1.0.10",
"babel-dead-code-elimination": "^1.0.11",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n packages/router-plugin/package.json | sed -n '100,130p'

Repository: TanStack/router

Length of output: 1188


🌐 Web query:

babel-dead-code-elimination npm package version 1.0.11 security vulnerabilities

💡 Result:

Short answer: There are no public security advisories specifically reporting vulnerabilities in babel-dead-code-elimination v1.0.11 — and the npm registry shows the latest published release as v1.0.10 (no v1.0.11 listed). [1][2]

Details/sources:

  • npm package page (latest listed version 1.0.10, no 1.0.11). [1]
  • Third‑party package scanners (Socket/Socket.dev) show the package metadata and recent scans but list v1.0.10 as latest; no advisories for v1.0.11. [2]

If you’d like, I can:

  • search for any dependent-package or indirect advisories that might affect code produced by this package, or
  • check GitHub repo/tags for a v1.0.11 release or recent security issues.

Incorrect version: babel-dead-code-elimination@1.0.11 does not exist on npm.

The specified version 1.0.11 is not published on npm registry. Only 1.0.10 (and earlier versions) are available. The dependency specification "babel-dead-code-elimination": "^1.0.11" will fail during installation.

Update to "^1.0.10" or the specific available version needed.

🤖 Prompt for AI Agents
In packages/router-plugin/package.json around line 117 the dependency version
"babel-dead-code-elimination": "^1.0.11" is invalid because that version is not
published to npm; change the version to an available release such as "^1.0.10"
(or the exact version required) so installs will succeed, then run npm/yarn
install to verify resolution.

@pkg-pr-new

pkg-pr-newBot commented Dec 26, 2025

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/arktype-adapter@6228

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/eslint-plugin-router@6228

@tanstack/history

npm i https://pkg.pr.new/TanStack/router/@tanstack/history@6228

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/nitro-v2-vite-plugin@6228

@tanstack/react-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router@6228

@tanstack/react-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-devtools@6228

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-ssr-query@6228

@tanstack/react-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start@6228

@tanstack/react-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-client@6228

@tanstack/react-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-server@6228

@tanstack/router-cli

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-cli@6228

@tanstack/router-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-core@6228

@tanstack/router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools@6228

@tanstack/router-devtools-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools-core@6228

@tanstack/router-generator

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-generator@6228

@tanstack/router-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-plugin@6228

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-ssr-query-core@6228

@tanstack/router-utils

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-utils@6228

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-vite-plugin@6228

@tanstack/solid-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router@6228

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-devtools@6228

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-ssr-query@6228

@tanstack/solid-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start@6228

@tanstack/solid-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-client@6228

@tanstack/solid-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-server@6228

@tanstack/start-client-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-client-core@6228

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-fn-stubs@6228

@tanstack/start-plugin-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-plugin-core@6228

@tanstack/start-server-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-server-core@6228

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-static-server-functions@6228

@tanstack/start-storage-context

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-storage-context@6228

@tanstack/valibot-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/valibot-adapter@6228

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/TanStack/router/@tanstack/virtual-file-routes@6228

@tanstack/vue-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router@6228

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router-devtools@6228

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router-ssr-query@6228

@tanstack/vue-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-start@6228

@tanstack/vue-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-start-client@6228

@tanstack/vue-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-start-server@6228

@tanstack/zod-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/zod-adapter@6228

commit: d29e415

@schiller-manuel
schiller-manuel merged commit 7d598a1 into mainDec 26, 2025
6 checks passed
@schiller-manuel
schiller-manuel deleted the bump-babel-dce branch December 26, 2025 01:11
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@schiller-manuel