Commit graph

480 commits

Author SHA1 Message Date
Kent Hou Man
cf89dcd9e0
fix: fix go to source file whose path contains $ symbol (#450)
* fix: fix go to source when file name contains $ symbol

* chore: add changeset
2026-05-30 09:03:53 +02:00
Flo
8fdc016f82
security: stricter pnpm config blockExoticSubdeps & trustPolicy (#445) 2026-05-28 21:11:42 +02:00
Flo
7e5d4bec76
chore: enforce pnpm 11 (#448) 2026-05-28 21:11:01 +02:00
Flo
59475ee54a
chore: migrate changesets changelog generator (#452)
* chore: migrate changesets changelog generator

* chore: sort changelog dependency
2026-05-28 21:09:41 +02:00
Corbin Crutchley
58d02323a7
chore: updates CODEOWNERS to be core-team (#443) 2026-05-13 12:09:23 -06:00
github-actions[bot]
5d359f276e
ci: Version Packages (#442) @tanstack/devtools-vite@0.7.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-13 16:45:28 +02:00
Keven Arroyo
7be3776b86
refactor(devtools-vite): migrate from Babel to oxc-parser + MagicString (#397)
* refactor(devtools-vite): migrate from Babel to oxc-parser + MagicString

* changeset+knip fix

* docs update

* ci: apply automated fixes

* refactor(devtools-vite): address CodeRabbit feedback on oxc migration

- Extract shared TANSTACK_DEVTOOLS_PACKAGES constant; remove-devtools now
  recognizes preact/vue/svelte/angular packages (previously only
  react/solid/devtools were stripped).
- Escape displayName/packageName via JSON.stringify when generating
  plugin injection code so quotes/backslashes do not break the output.
- Skip appending a duplicate import when the plugin symbol is already
  imported from the same package.
- collectJsx no longer crosses function boundaries; inner components
  keep their own propsName context and aren't annotated with an outer
  function's data-tsd-source.
- Drop the redundant VariableDeclaration branch in visitFunctions;
  arrow/function expressions are reached via forEachChild, so the
  prior code walked them twice.
- Add regression tests covering non-ASCII source positions (emoji,
  CJK) — oxc-parser napi bindings already return UTF-16 code-unit
  indices, so no offset conversion is needed.
- Sync the devtools-production SKILL.md package list with the
  implementation.

* chore(deps): bump oxc-parser to ^0.120.0

Verified empirically that the napi bindings continue to return UTF-16
code-unit indices (matching the assumption in inject-source.ts and the
non-ASCII regression tests). All 167 devtools-vite tests pass on the new
version; lint, typecheck, build, and knip clean.

* ci: apply automated fixes

* fix(devtools-vite): emit correct source positions for enhanced logs

console-pipe-transform prepends a multi-line IIFE to root entry files
before better-console-logs runs. Because both plugins are enforce:'pre'
and execute in array order, enhanceConsoleLog was parsing the
post-prepend source and reporting line numbers shifted past the end of
the user's file -- 'Go to Source' links pointed nowhere.

Swap the two plugin entries so enhanceConsoleLog sees the original
source. Add a regression test asserting better-console-logs is
registered before console-pipe-transform.

* fix(devtools): snapshot data-tsd-source before mutating click state

The click handler in SourceInspector called `setDisabledAfterClick(true)`
before reading `highlightState.dataSource`. That signal write flipped
`isActive` to false, triggering the highlight effect's `resetHighlight()`
synchronously enough (via the chained `createStore` reactions) to clear
`dataSource` before the subsequent reads. Result: the open-source fetch
was issued with `?source=` empty and clipboard writes wrote an empty
string.

Capture `highlightState.dataSource` into a local before any state
mutations, then use the captured value for both the clipboard path and
the URL construction.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-05-13 16:13:22 +02:00
github-actions[bot]
0ec5292ac1
ci: Version Packages (#433) @tanstack/angular-devtools@0.0.4 @tanstack/devtools-a11y@0.1.3 @tanstack/devtools-ui@0.5.2 @tanstack/devtools-utils@0.5.0 @tanstack/devtools-vite@0.6.1 @tanstack/devtools@0.12.2 @tanstack/preact-devtools@0.10.5 @tanstack/react-devtools@0.10.5 @tanstack/solid-devtools@0.8.5 @tanstack/vue-devtools@0.2.19
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-13 12:17:50 +02:00
renovate[bot]
e8ad97da91
chore(deps): update dependency drizzle-orm to ^0.45.0 [security] (#438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-13 12:12:04 +02:00
renovate[bot]
bb2f499c1f
chore(deps): update dependency happy-dom to v20 [security] (#439)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-13 12:11:53 +02:00
Alem Tuzlak
a57d354097
fix(deps): bump protobufjs to 7.5.8 to patch CVE-2026-44289 (#441) 2026-05-13 12:11:38 +02:00
Flo
ba9d1d4899
ci: add zizmor workflow (#440)
* ci: add zizmor workflow

* ci: clarify skill review push credentials

* ci: simplify stale skills PR body generation

* Update .github/workflows/triage-agent.yml
2026-05-13 10:10:43 +02:00
Alem Tuzlak
31c194e24d
ci(security): harden CI/CD supply chain and bump pnpm to 11.1.1 (#436)
* chore(deps): upgrade pnpm to 11.1.1

Bumps the corepack-managed pnpm version across the root and the four
Angular example workspaces. pnpm 11 refuses to run install scripts by
default; declare a minimal allowBuilds allowlist in pnpm-workspace.yaml
so only the two packages whose postinstalls the build actually needs
(esbuild, nx) are permitted. The other eight transitively-pulled
postinstalls (sharp, lmdb, workerd, etc.) all fall back to JS paths
or are unused during build, and are explicitly denied.

Also pin the preinstall guard to only-allow@1.2.2 so it no longer
resolves a floating tag from npm on every install.

* ci(security): pin actions to SHAs and harden CI/CD supply chain

Replaces every mutable workflow reference (@main, @v1, @v3, @v4,
@v6.0.2) with a 40-char commit SHA + version comment so Renovate can
keep them current. Composite actions in TanStack/config — previously
pinned to @main — are the highest-impact change: a force-push or
compromised commit there would have given an attacker the npm OIDC
publishing identity plus contents/issues/PR write tokens on the next
push to main.

Other changes in this commit:

- release.yml: set cancel-in-progress: false so a re-push cannot abort
  changesets/action mid-publish and leave partial versions on npm.
  Add environment: release so required reviewers can be configured in
  repo settings for an explicit human gate before publish.

- triage-agent.yml: add a "SECURITY: Untrusted input" preamble to the
  Warp agent prompt. The agent reads attacker-controlled issue text,
  so it must treat that text strictly as data and refuse instructions
  embedded inside it. Also corrected the bug-report template path
  (bug-report.yml -> bug_report.yml) that the agent was failing to
  load.

- check-skills.yml / validate-skills.yml: pin @tanstack/intent to a
  specific version; npm install -g without a version was floating.

- pr.yml preview job: pin pkg-pr-new to a specific version; pnpx
  without a version was floating.

- .github/renovate.json: drop :automergeMinor. Combined with floating
  versions this could have landed a malicious patch without review.

- .github/CODEOWNERS (new): require owner review on workflows, package
  manifests, lockfile, .npmrc, and renovate config. Adjust the owner
  handle to a team once one exists.

- .github/workflows/dependency-review.yml (new): runs
  actions/dependency-review-action on every PR with
  fail-on-severity: high to block PRs that introduce known-vulnerable
  transitive dependencies.

* ci(security): bump TanStack/config pin to latest main SHA

* fix(ci): correct preinstall skip logic for CI

The original `||`-chained preinstall printed "Skipping preinstall..." in
CI but then ran only-allow anyway because `process.exit(1)` triggers
the `||` operator. CI happened to pass when only-allow was unpinned
(npx resolved it differently), but pinning to @1.2.2 forced a fresh
registry resolve in which only-allow strictly checks
npm_config_user_agent — which, when invoked via npx-inside-pnpm, is
npm's, not pnpm's — and rejects.

The fix matches the script's stated intent: when CI=true, exit 0 so
the `||` does not trigger and only-allow is genuinely skipped. Local
installs continue to fall through and enforce pnpm via only-allow as
before.
2026-05-12 14:59:09 +02:00
Harry Whorlow
562ad00b61
fix(ci): fix eslint error (#432)
* fix(ci): fix eslint error

* chore: update with test

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 22:27:12 +02:00
Harry Whorlow
3ab6a998a5
fix(versioning): release angular as minor (#431) 2026-05-11 12:39:15 +02:00
github-actions[bot]
3639ccfb78
ci: Version Packages (#429)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-11 12:32:40 +02:00
Harry Whorlow
015b733686
fix(devtools ui): fix json tree nan values (#430) 2026-05-11 12:29:38 +02:00
Danny
3ee47f9187
Update installation command for devtools to dev dependency (#399)
* Update installation command for devtools to dev dependency

* docs: add -D flag to other frameworks install commands
2026-05-11 11:07:22 +02:00
Raudy Brito
16c0bf0d58
fix(devtools-vite): prevent console pipe loop and solid-js duplication (#412)
* fix(devtools-vite): prevent console pipe loop and solid-js duplication with Vite 8

* chore: add changeset

* fix(devtools-vite): add defensive fallback for invalid console level

* Remove Solid Dedupe

* format fix
2026-05-11 11:06:56 +02:00
Wz
113e9a7134
fix(devtools-vite): avoid piping raw DOM console arguments (#424)
fix console piping DOM serialization
2026-05-11 11:06:28 +02:00
renovate[bot]
19b0c25cf2
chore(deps): lock file maintenance (#427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-11 08:57:24 +00:00
Santos Vilanculos
5ac65f8059
chore(plugin): add inertia 3 plugin to registry (#420)
chore(plugin): add inertia 3 plugin
2026-05-11 10:42:25 +02:00
github-actions[bot]
b2924325a4
ci: Version Packages (#426) @tanstack/angular-devtools@0.0.2
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-11 10:34:30 +02:00
Harry Whorlow
58e66f5a26
feat(devtools): add copy path to source inspector (#419)
* feat(devtools): add copy path to source inspector

* chore: remove config from example
2026-04-28 20:18:43 +02:00
Riccardo Perra
ad26f6182f
feat(angular): angular adapter and utils (#368)
* feat(angular-devtools): create angular adapter package

Add the @tanstack/angular-devtools package with:
- TanStackDevtoolsComponent: standalone Angular component that wraps TanStackDevtoolsCore
- Plugin system supporting Angular components rendered into devtools containers
- Type definitions for Angular-specific plugin and init configuration
- Build config using @analogjs/vite-plugin-angular for AOT compilation

* fix(angular-devtools): add reactivity for input changes, remove unused RenderArray

* feat(devtools-utils): add angular support

* fix: resolve angular build issues

- Remove @analogjs/vite-plugin-angular from build (produces empty chunks
  for library builds). Use plain esbuild via Vite instead - Angular AOT
  compilation happens at consumer's build time.
- Upgrade Angular dev deps from ^19 to ^20 for TypeScript 5.9 compat.
- Remove @angular/build dep (only needed by analogjs plugin).
- Add @tanstack/angular-devtools workspace override to root.

* ci: apply automated fixes

* fix: resolve lint, knip, and sherif issues

- Fix array-type ESLint rule in angular-devtools
- Fix import/consistent-type-specifier-style in devtools-utils angular
- Sort peerDependencies alphabetically (sherif)
- Remove unused devDependencies flagged by knip
- Remove angularCompilerOptions from tsconfig (not using ngc)

* feat: add Angular support with setup, adapter, and custom plugin documentation

* feat(angular): angular adapter add utils and some examples, fix build

* ci: apply automated fixes

* feat: Add angular adapter and devtools-utils/angular

* remove afterNextRender in devtools-utils

Since angular-devtools already run the code within afterNextRender in browser env, we don't like to wrap the panel returned from utils

* fix examples

* fix angular devtools wrong pnpm link

* feat(angular-devtools): add with-devtools provider

* docs(angular-devtools): update docs

* ci: apply automated fixes

* chore(angular-devtools): fix examples dependencies and knip issues

* feat(angular-devtools): rename withDevtools to provideTanStackDevtools

* Add a11y plugin for angular

* chore(deps): update @tanstack/devtools and related packages

* ci: apply automated fixes

---------

Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-28 20:17:46 +02:00
github-actions[bot]
f1844a29de
ci: Version Packages (#417) @tanstack/devtools@0.11.2 @tanstack/preact-devtools@0.10.2 @tanstack/react-devtools@0.10.2 @tanstack/solid-devtools@0.8.2 @tanstack/vue-devtools@0.2.16
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-07 10:52:51 +02:00
Michał Papliński
aa32769932
fix:duplicate Devtools UI rendering when React StrictMode is enabled (#404)
* fix race condition

* add changeset

---------

Co-authored-by: Alem Tuzlak <t.zlak97@gmail.com>
2026-04-07 10:46:11 +02:00
renovate[bot]
22d60fc702
chore(deps): lock file maintenance (#409) @tanstack/devtools@0.11.1 @tanstack/preact-devtools@0.10.1 @tanstack/react-devtools@0.10.1 @tanstack/solid-devtools@0.8.1 @tanstack/vue-devtools@0.2.15
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 05:01:27 +00:00
github-actions[bot]
d6a292561c
ci: Version Packages (#408)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-30 15:00:43 +02:00
Abed Al Ghani Shaaban
e04bb11bec
Feat seo serp preview (#373)
* refactor(devtools): remove SeoTab component and related functionality

This commit deletes the SeoTab component from the devtools package, which included social media preview functionality and meta tag analysis. The removal streamlines the codebase by eliminating unused features.

* refactor(devtools): rename SocialPreviewSection to SocialPreviewsSection

This commit updates the naming of the SocialPreviewSection component to SocialPreviewsSection for consistency and clarity in the SEO tab of the devtools package. The change improves code readability and aligns with the pluralization of the component's purpose.

* refactor(devtools): rename social-preview file to social-previews and update import path

This commit renames the social-preview.tsx file to social-previews.tsx for consistency with the component naming convention. The import path in the SeoTab component is also updated accordingly, enhancing code clarity and maintainability.

* feat(devtools): add SEO tab navigation and enhance SocialPreviewsSection

This commit introduces a navigation bar in the SeoTab component, allowing users to switch between 'Social Previews' and 'SERP Preview' sections. It also updates the SocialPreviewsSection to conditionally render its title based on a new prop, improving flexibility in display options. New styles for the navigation elements are added to enhance the user interface.

* feat(devtools): enhance SERP and Social Previews with new styles and data handling

This commit introduces new styles for the SERP snippet and updates the SERP and Social Previews sections to dynamically display data from the current page's metadata. The SocialPreviewsSection and SerpPreviewSection components are refactored to improve clarity and functionality, removing unnecessary props and enhancing the user interface with better styling.

* refactor(devtools): update SERP snippet styles and structure

This commit refactors the SERP snippet styles by renaming the `serpSnippetUrlRow` to `serpSnippetTopRow` and introduces new styles for site name and URL. The structure of the SERP preview is enhanced to better organize the display of site information, improving the overall layout and visual consistency.

* feat(devtools): enhance SERP preview with truncation logic and overflow reporting

This commit adds functionality to the SERP preview section, implementing text truncation for the title and description based on specified width limits. It introduces new state management for overflow detection and displays warnings when the title or description exceeds the defined character limits. Additionally, new styles are added to support the hidden measurement elements for accurate text sizing.

* feat(devtools): add SERP overflow reporting and improve styles

This commit enhances the SERP preview section by introducing a new overflow reporting mechanism for the title and description. It adds a list of issues when the title or description exceeds specified limits, improving user feedback. Additionally, new styles are implemented for better visual presentation of error messages in the SERP preview.

* feat(devtools): add meta description and default favicon styles

This commit enhances the SEO capabilities of the basic example by adding a meta description tag for improved search engine visibility. Additionally, it introduces new styles for a default favicon, ensuring a consistent visual representation when no favicon is provided. This improves user feedback in the SERP preview section.

* feat(devtools): enhance SERP preview layout with new styles

This commit introduces new styles for the SERP preview section, including a dedicated block for the preview and a label for better organization. The layout improvements enhance the visual presentation of the desktop preview, ensuring a clearer display of the site name, URL, title, and description.

* feat(devtools): enhance SERP preview for mobile with new styles and overflow reporting

This commit introduces new styles for the mobile SERP preview, including a dedicated snippet layout and improved overflow reporting for the title and description. It adds functionality to handle mobile-specific text truncation and displays warnings for descriptions exceeding a three-line limit, enhancing user feedback and visual consistency across devices.

* feat(devtools): implement comprehensive SERP issue reporting and enhance component structure

This commit introduces a robust mechanism for reporting SERP issues, including checks for favicon, title, and description validity. It refactors the SERP preview component to utilize a more structured approach for handling overflow conditions and displaying relevant warnings. Additionally, it enhances the layout for both desktop and mobile previews, ensuring a consistent and informative user experience across devices.

* refactor(devtools): update SERP preview truncation logic and improve character limits

This commit refines the SERP preview component by replacing pixel-based truncation with character-based limits for titles and descriptions. It introduces constants for maximum character counts, enhancing the clarity of the truncation logic. Additionally, it simplifies the component structure by removing unnecessary measurement elements, improving overall readability and maintainability.

* refactor(devtools): streamline SERP preview component and improve character limit handling

This commit refines the SERP preview component by enhancing the character limit handling for titles and descriptions. It simplifies the component structure, removing redundant elements, and improves the overall readability and maintainability of the code. Additionally, it ensures consistent behavior across different display scenarios.

* refactor(devtools): reorder imports in social-previews component for consistency

---------

Co-authored-by: Alem Tuzlak <t.zlak97@gmail.com>
2026-03-30 14:46:35 +02:00
Harry Whorlow
e89cff4b4e
fix(devtools-ui): restore plugin scrol (#406) 2026-03-27 10:31:12 +01:00
Lachlan Collins
604c96d383
ci: update github workflows (#395)
* ci: update github workflows

* Capitalise
2026-03-18 00:43:09 +11:00
github-actions[bot]
45bdbb0413
ci: Version Packages (#393) @tanstack/devtools-a11y@0.1.2
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-16 09:35:17 +01:00
Harry Whorlow
b0993b603a
fix(a11y): extract theme and fix pnpm overides (#392) 2026-03-16 09:33:55 +01:00
github-actions[bot]
6c7b961fe4
ci: Version Packages (#389) @tanstack/devtools-a11y@0.1.1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-15 09:52:44 +01:00
Harry Whorlow
d11aaf99fa
feat: extract theme provider (#386)
* feat: extract theme provider

* chore: export type

* chore: unify types

* fix:lock
2026-03-15 09:38:49 +01:00
Harry Whorlow
63e505c7b6
feat: support vite v8 (#388)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-15 09:35:54 +01:00
Sarah Gerrard
7c33985598
a11y plugin (#326)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Harry Whorlow <whorlowharry@gmail.com>
Co-authored-by: Harry Whorlow <79278353+harry-whorlow@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-03-13 15:18:56 +01:00
Santosh Yadav
1fc0afabdd
Update partner logos in README.md (#387) 2026-03-13 12:52:14 +01:00
Alem Tuzlak
40db560c00
feat: refactor props passing to plugins for improved flexibility (#319)
* feat: refactor props passing to plugins for improved flexibility

* ci: apply automated fixes

* fix tests

* ci: apply automated fixes

* fix

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-13 12:51:03 +01:00
github-actions[bot]
a120650543
ci: Version Packages (#380) @tanstack/devtools-event-client@0.4.3 @tanstack/devtools-utils@0.3.4 @tanstack/devtools-vite@0.5.5 @tanstack/devtools@0.10.14 @tanstack/preact-devtools@0.9.18 @tanstack/react-devtools@0.9.13 @tanstack/solid-devtools@0.7.33 @tanstack/vue-devtools@0.2.13
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-11 14:39:21 +01:00
Alem Tuzlak
1451124c07
fix: include skills/ in npm publish for all packages (#379)
* fix: include skills/ and bin/intent.js in npm publish for all packages

The skills/ directories and intent bin shim were missing from the
individual package.json files. The intent scanner requires both
"bin": { "intent": ... } and a skills/ directory to detect packages.
Without these, npx @tanstack/intent install reports "No intent-enabled
packages found."

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-11 14:35:35 +01:00
github-actions[bot]
da5ff35a0d
ci: Version Packages (#378) @tanstack/devtools-event-client@0.4.2 @tanstack/devtools-utils@0.3.3 @tanstack/devtools-vite@0.5.4 @tanstack/devtools@0.10.13 @tanstack/preact-devtools@0.9.17 @tanstack/react-devtools@0.9.12 @tanstack/solid-devtools@0.7.32 @tanstack/vue-devtools@0.2.12
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-11 12:27:44 +01:00
Alem Tuzlak
644bcb3ec5
feat: add @tanstack/intent agent skills (#377)
* feat: add @tanstack/intent agent skills for all packages

Scaffold agent-readable SKILL.md files via @tanstack/intent for AI coding
agents (Claude Code, Cursor, Copilot, etc.) to generate better code when
working with TanStack Devtools.

Skills added (9 total across 4 packages):
- devtools: app-setup, plugin-panel, production, marketplace
- event-bus-client: event-client, instrumentation, bidirectional
- devtools-vite: vite-plugin
- devtools-utils: framework-adapters (React, Vue, Solid, Preact)

Also includes:
- CI workflows for skill validation, staleness checks, and intent notifications
- Domain map, skill spec, and skill tree artifacts
- Intent CLI bin shim and package.json wiring
- README note for AI agent users

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* chore: add changeset for intent skills

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-11 12:25:57 +01:00
github-actions[bot]
654dca5927
ci: Version Packages (#376)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-10 17:48:57 +01:00
Néstor
0dfc04ab7e
fix(devtools): avoid direct import.meta access in rspack (#349)
* fix(devtools): avoid direct import.meta access in rspack

* chore(changeset): add patch note for rspack import.meta fix
2026-03-10 17:01:45 +01:00
github-actions[bot]
c6bbb90257
ci: Version Packages (#370) @tanstack/devtools-utils@0.3.2 @tanstack/devtools@0.10.11 @tanstack/preact-devtools@0.9.15 @tanstack/react-devtools@0.9.10 @tanstack/solid-devtools@0.7.30 @tanstack/vue-devtools@0.2.10
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-06 13:26:50 +01:00
Alem Tuzlak
024ea7d602
fix(devtools): prevent solid-js from leaking into server bundles (#367)
* fix(devtools): prevent solid-js from leaking into server bundles

Move all solid-js runtime imports (render, Portal, lazy, ClientEventBus)
from core into a new mount-impl.tsx file loaded via dynamic import().
This ensures solid-js code is never in the static import graph and only
loads as a separate chunk when mount() is called on the client.

* feat(devtools-utils): add Solid.js support and enhance routing configurations

* ci: apply automated fixes

* fix(devtools-utils): resolve self-referencing import for clean CI builds

Add ambient module declaration (barrel-types.d.ts) so TypeScript can
resolve @tanstack/devtools-utils/solid on clean checkouts without dist/.

* ci: apply automated fixes

* fix(devtools-utils): fix lint errors in solid class files

* fix(devtools-utils): use variable import path to prevent esbuild SSR pre-bundling

esbuild follows dynamic imports with string literals during Vite's
dependency optimization, pulling solid-js into the SSR bundle. Using a
variable path prevents static analysis from following the import.

* fix(devtools-utils): add workerd export condition to ./solid for Cloudflare SSR

The ./solid export was missing a workerd condition, causing Vite's SSR
dep optimizer (esbuild) to resolve to the client entry instead of
server.js when running under Cloudflare workerd. The client entry's
compiled Solid JSX imports use/setStyleProperty from solid-js/web which
don't exist in the server entry, crashing the dev server.

Also reverts the variable import workaround in class.ts back to a
literal import, since the workerd condition now properly routes SSR
resolution to the server entry.

* Refactor code structure for improved readability and maintainability

* fix(devtools-utils): use relative dynamic import for class-mount-impl

Replace the cross-package bare specifier import('@tanstack/devtools-utils/solid')
with a relative import('./class-mount-impl'). Bare specifiers in dynamic imports
inside pre-bundled dependencies aren't resolved by bundlers like esbuild/webpack,
causing "Failed to resolve module specifier" errors in the browser.

The relative import works in all bundlers (Vite, Next.js, etc.) because the
class-mount-impl.js file is co-located in the same dist directory, built
together via a single vite config with vite-plugin-solid for JSX compilation.

* ci: apply automated fixes

* chore: fix issues

* chore: changeset

* fix: lock

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-06 13:24:54 +01:00
renovate[bot]
f6fc5d1652
chore(deps): lock file maintenance (#340)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-04 17:59:03 +00:00
github-actions[bot]
2117765147
ci: Version Packages (#365) @tanstack/devtools-ui@0.5.0 @tanstack/devtools-utils@0.3.1 @tanstack/devtools@0.10.10 @tanstack/preact-devtools@0.9.14 @tanstack/react-devtools@0.9.9 @tanstack/solid-devtools@0.7.29 @tanstack/vue-devtools@0.2.9
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-04 14:27:33 +01:00