Skip to content

Conversation

@arnoud-dv
Copy link
Collaborator

@arnoud-dv arnoud-dv commented Sep 15, 2025

Move as of yet non-functional injectQueries to separate sub-path experimental-inject-queries to indicate its experimental status so it won't hold up releasing the other APIs as stable.

Summary by CodeRabbit

  • New Features

    • Added an experimental entry point to access the inject-queries API.
  • Refactor

    • The main package no longer re-exports the inject-queries API; use the new experimental entry point.
  • Chores

    • Build setup updated to produce outputs for the new experimental entry.
    • Workspace configuration updated to include the new experimental package.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 15, 2025

Walkthrough

Adds an experimental export entry for inject-queries: new barrel module, build entry, and package export; updates knip workspace. The main index stops re-exporting injectQueries and that API is re-exposed via the new inject-queries-experimental entry. No runtime logic changes.

Changes

Cohort / File(s) Summary of Changes
Workspace config
knip.json
Added workspace entry for packages/angular-query-experimental with ["src/index.ts","src/inject-queries-experimental/index.ts"].
Build config
packages/angular-query-experimental/vite.config.ts
Expanded library entry points from ['./src/index.ts'] to ['./src/index.ts', './src/inject-queries-experimental/index.ts'].
Package exports
packages/angular-query-experimental/package.json
Added new export path ./inject-queries-experimental mapping to ./dist/inject-queries-experimental/index.mjs (default) and ./dist/inject-queries-experimental/index.d.ts (types).
Source exports routing
packages/angular-query-experimental/src/index.ts, packages/angular-query-experimental/src/inject-queries-experimental/index.ts
Removed injectQueries re-export from the main src/index.ts; added export * from '../inject-queries' in src/inject-queries-experimental/index.ts to re-expose that API under the experimental entry.

Sequence Diagram(s)

No sequence diagram (changes are configuration and export routing only).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

I hopped a new path, leaves in tow,
A tiny tunnel where exports grow.
I nudged a barrel, marked a sign,
Built a bridge for queries to align.
Thump—new routes for code to share, carrots to spare. 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title clearly and concisely summarizes the primary change: moving injectQueries out of the main angular-query surface into a sub-path export. It names the affected package and matches the PR objectives and file-level changes (adding an experimental subpath entry and removing the root re-export), without extra noise.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5cc52ae and d87f3f2.

📒 Files selected for processing (5)
  • knip.json (1 hunks)
  • packages/angular-query-experimental/package.json (1 hunks)
  • packages/angular-query-experimental/src/index.ts (0 hunks)
  • packages/angular-query-experimental/src/inject-queries-experimental/index.ts (1 hunks)
  • packages/angular-query-experimental/vite.config.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • packages/angular-query-experimental/src/index.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/angular-query-experimental/vite.config.ts
  • packages/angular-query-experimental/package.json
  • packages/angular-query-experimental/src/inject-queries-experimental/index.ts
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-02T17:57:33.184Z
Learnt from: TkDodo
PR: TanStack/query#9612
File: packages/query-async-storage-persister/src/asyncThrottle.ts:0-0
Timestamp: 2025-09-02T17:57:33.184Z
Learning: When importing from tanstack/query-core in other TanStack Query packages like query-async-storage-persister, a workspace dependency "tanstack/query-core": "workspace:*" needs to be added to the package.json.

Applied to files:

  • knip.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). (1)
  • GitHub Check: Test
🔇 Additional comments (1)
knip.json (1)

18-20: Exports & build entries OK — confirm PR naming and run full repo search

  • packages/angular-query-experimental/src/index.ts and src/inject-queries-experimental/index.ts exist.
  • package.json.exports contains "./inject-queries-experimental".
  • vite config includes entry './src/inject-queries-experimental/index.ts' (packages/angular-query-experimental/vite.config.ts).
  • src/index.ts does not re-export "./inject-queries".
  • package.json includes "@tanstack/query-core": "workspace:*".

Confirm PR title/description uses "inject-queries-experimental" (not "experimental-inject-queries") and run a full repo-wide search for naming drift — my repo-wide search skipped files.


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.

❤️ Share

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

@nx-cloud
Copy link

nx-cloud bot commented Sep 15, 2025

View your CI Pipeline Execution ↗ for commit d87f3f2

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 1m 50s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-15 00:25:08 UTC

@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.77%. Comparing base (6492aed) to head (d87f3f2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #9655       +/-   ##
===========================================
+ Coverage   45.51%   87.77%   +42.25%     
===========================================
  Files         209       16      -193     
  Lines        8379      319     -8060     
  Branches     1906       75     -1831     
===========================================
- Hits         3814      280     -3534     
+ Misses       4118       34     -4084     
+ Partials      447        5      -442     
Components Coverage Δ
@tanstack/angular-query-devtools-experimental ∅ <ø> (∅)
@tanstack/angular-query-experimental 87.00% <ø> (ø)
@tanstack/eslint-plugin-query ∅ <ø> (∅)
@tanstack/query-async-storage-persister ∅ <ø> (∅)
@tanstack/query-broadcast-client-experimental ∅ <ø> (∅)
@tanstack/query-codemods ∅ <ø> (∅)
@tanstack/query-core ∅ <ø> (∅)
@tanstack/query-devtools ∅ <ø> (∅)
@tanstack/query-persist-client-core ∅ <ø> (∅)
@tanstack/query-sync-storage-persister ∅ <ø> (∅)
@tanstack/query-test-utils ∅ <ø> (∅)
@tanstack/react-query ∅ <ø> (∅)
@tanstack/react-query-devtools ∅ <ø> (∅)
@tanstack/react-query-next-experimental ∅ <ø> (∅)
@tanstack/react-query-persist-client ∅ <ø> (∅)
@tanstack/solid-query ∅ <ø> (∅)
@tanstack/solid-query-devtools ∅ <ø> (∅)
@tanstack/solid-query-persist-client ∅ <ø> (∅)
@tanstack/svelte-query ∅ <ø> (∅)
@tanstack/svelte-query-devtools ∅ <ø> (∅)
@tanstack/svelte-query-persist-client ∅ <ø> (∅)
@tanstack/vue-query ∅ <ø> (∅)
@tanstack/vue-query-devtools ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
knip.json (1)

18-20: Include main index in knip entry to retain full analysis coverage.

Currently only the new experimental entry is analyzed.

Apply:

-    "packages/angular-query-experimental": {
-      "entry": ["src/inject-queries-experimental/index.ts"]
-    },
+    "packages/angular-query-experimental": {
+      "entry": ["src/index.ts", "src/inject-queries-experimental/index.ts"]
+    },
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6492aed and 5cc52ae.

📒 Files selected for processing (5)
  • knip.json (1 hunks)
  • packages/angular-query-experimental/package.json (1 hunks)
  • packages/angular-query-experimental/src/index.ts (0 hunks)
  • packages/angular-query-experimental/src/inject-queries-experimental/index.ts (1 hunks)
  • packages/angular-query-experimental/vite.config.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • packages/angular-query-experimental/src/index.ts
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-09-02T17:57:33.184Z
Learnt from: TkDodo
PR: TanStack/query#9612
File: packages/query-async-storage-persister/src/asyncThrottle.ts:0-0
Timestamp: 2025-09-02T17:57:33.184Z
Learning: When importing from tanstack/query-core in other TanStack Query packages like query-async-storage-persister, a workspace dependency "tanstack/query-core": "workspace:*" needs to be added to the package.json.

Applied to files:

  • knip.json
📚 Learning: 2025-08-19T03:18:18.303Z
Learnt from: oscartbeaumont
PR: TanStack/query#9564
File: packages/solid-query-devtools/src/production.tsx:2-3
Timestamp: 2025-08-19T03:18:18.303Z
Learning: In the solid-query-devtools package, the codebase uses a pattern of type-only default imports combined with typeof for component type annotations (e.g., `import type SolidQueryDevtoolsComp from './devtools'` followed by `typeof SolidQueryDevtoolsComp`). This pattern is consistently used across index.tsx and production.tsx files, and the maintainers prefer consistency over changing this approach.

Applied to files:

  • packages/angular-query-experimental/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). (1)
  • GitHub Check: Test
🔇 Additional comments (2)
packages/angular-query-experimental/vite.config.ts (1)

114-114: LGTM on adding the extra build entry.

Ensure the package.json export path matches the emitted folder name “inject-queries-experimental” from this entry. See package.json comment.

packages/angular-query-experimental/src/inject-queries-experimental/index.ts (1)

1-1: Barrel re-export looks good.

Matches the intent to expose injectQueries via a dedicated experimental subpath.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 15, 2025

More templates

@tanstack/angular-query-devtools-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@9655

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@9655

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@9655

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@9655

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@9655

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@9655

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@9655

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@9655

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@9655

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@9655

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@9655

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@9655

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@9655

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@9655

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@9655

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@9655

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@9655

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@9655

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@9655

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@9655

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@9655

commit: d87f3f2

@arnoud-dv arnoud-dv force-pushed the move-inject-queries-to-subpath branch from 5cc52ae to b3a2eff Compare September 15, 2025 00:20
@arnoud-dv arnoud-dv force-pushed the move-inject-queries-to-subpath branch from b3a2eff to d87f3f2 Compare September 15, 2025 00:22
@arnoud-dv arnoud-dv merged commit ca56514 into TanStack:main Sep 15, 2025
8 checks passed
@arnoud-dv arnoud-dv deleted the move-inject-queries-to-subpath branch September 15, 2025 00:33
@coderabbitai coderabbitai bot mentioned this pull request Sep 15, 2025
1 task
Sign up for free to 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