Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/apps/angular/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser'
import { appConfig } from './app/app.config'
import { App } from './app/app'
import { appConfig } from './app/app.config'

bootstrapApplication(App, appConfig).catch((err) => console.error(err))
2 changes: 1 addition & 1 deletion e2e/apps/preact/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render } from 'preact'
import { TanStackDevtools } from '@tanstack/preact-devtools'
import { render } from 'preact'

function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/preact/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import preact from '@preact/preset-vite'
import { devtools } from '@tanstack/devtools-vite'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [devtools(), preact()],
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/react-cloudflare/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()

import type { getRouter } from './router.tsx'
import type { createStart } from '@tanstack/react-start'
import type { getRouter } from './router.tsx'
declare module '@tanstack/react-start' {
interface Register {
ssr: true
Expand Down
1 change: 0 additions & 1 deletion e2e/apps/react-cloudflare/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createRouter } from '@tanstack/react-router'

// Import the generated route tree
import { routeTree } from './routeTree.gen'

Expand Down
6 changes: 3 additions & 3 deletions e2e/apps/react-cloudflare/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { EventProbePanel } from '@tanstack/devtools-e2e/event-probe'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
import * as React from 'react'

export const Route = createRootRoute({
head: () => ({
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/react-cloudflare/src/routes/emit-server-ping.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { emitServerPing } from '@tanstack/devtools-e2e/event-probe/server'
import { createFileRoute } from '@tanstack/react-router'
import { json } from '@tanstack/react-start'
import { emitServerPing } from '@tanstack/devtools-e2e/event-probe/server'

// In Start dev this handler runs in Nitro's isolated Vite SSR module-runner
// environment. PR #384's runtime bridge (packages/devtools-vite/src/runtime-bridge.ts)
Expand Down
4 changes: 2 additions & 2 deletions e2e/apps/react-cloudflare/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import { cloudflare } from '@cloudflare/vite-plugin'
import { devtools } from '@tanstack/devtools-vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/react-nitro/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()

import type { getRouter } from './router.tsx'
import type { createStart } from '@tanstack/react-start'
import type { getRouter } from './router.tsx'
declare module '@tanstack/react-start' {
interface Register {
ssr: true
Expand Down
1 change: 0 additions & 1 deletion e2e/apps/react-nitro/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createRouter } from '@tanstack/react-router'

// Import the generated route tree
import { routeTree } from './routeTree.gen'

Expand Down
6 changes: 3 additions & 3 deletions e2e/apps/react-nitro/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { EventProbePanel } from '@tanstack/devtools-e2e/event-probe'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
import * as React from 'react'

export const Route = createRootRoute({
head: () => ({
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/react-nitro/src/routes/emit-server-ping.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { emitServerPing } from '@tanstack/devtools-e2e/event-probe/server'
import { createFileRoute } from '@tanstack/react-router'
import { json } from '@tanstack/react-start'
import { emitServerPing } from '@tanstack/devtools-e2e/event-probe/server'

// In Start dev this handler runs in Nitro's isolated Vite SSR module-runner
// environment. PR #384's runtime bridge (packages/devtools-vite/src/runtime-bridge.ts)
Expand Down
4 changes: 2 additions & 2 deletions e2e/apps/react-nitro/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import { nitro } from 'nitro/vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import { nitro } from 'nitro/vite'
import { defineConfig } from 'vite'

// Nitro runs via nitro/vite inside the Vite node process (same wiring as react-start),
// so PR #384's runtime bridge delivers server->client events identically to start.
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/react-start/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()

import type { getRouter } from './router.tsx'
import type { createStart } from '@tanstack/react-start'
import type { getRouter } from './router.tsx'
declare module '@tanstack/react-start' {
interface Register {
ssr: true
Expand Down
1 change: 0 additions & 1 deletion e2e/apps/react-start/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createRouter } from '@tanstack/react-router'

// Import the generated route tree
import { routeTree } from './routeTree.gen'

Expand Down
6 changes: 3 additions & 3 deletions e2e/apps/react-start/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { EventProbePanel } from '@tanstack/devtools-e2e/event-probe'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
import * as React from 'react'

export const Route = createRootRoute({
head: () => ({
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/react-start/src/routes/emit-server-ping.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { emitServerPing } from '@tanstack/devtools-e2e/event-probe/server'
import { createFileRoute } from '@tanstack/react-router'
import { json } from '@tanstack/react-start'
import { emitServerPing } from '@tanstack/devtools-e2e/event-probe/server'

// In Start dev this handler runs in Nitro's isolated Vite SSR module-runner
// environment. PR #384's runtime bridge (packages/devtools-vite/src/runtime-bridge.ts)
Expand Down
4 changes: 2 additions & 2 deletions e2e/apps/react-start/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import { nitro } from 'nitro/vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import { nitro } from 'nitro/vite'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [devtools(), nitro(), tanstackStart(), viteReact()],
Expand Down
4 changes: 2 additions & 2 deletions e2e/apps/react-vite/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EventProbePanel } from '@tanstack/devtools-e2e/event-probe'
import { TanStackDevtools } from '@tanstack/react-devtools'
import React from 'react'
import { createRoot } from 'react-dom/client'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { EventProbePanel } from '@tanstack/devtools-e2e/event-probe'

function DemoPlugin() {
return <div data-testid="demo-plugin">demo plugin content</div>
Expand Down
4 changes: 2 additions & 2 deletions e2e/apps/react-vite/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { devtools } from '@tanstack/devtools-vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [devtools(), react()],
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/solid/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSignal, onCleanup, onSettled } from 'solid-js'
import { render } from '@solidjs/web'
import { TanStackDevtools } from '@tanstack/solid-devtools'
import { createSignal, onCleanup, onSettled } from 'solid-js'

declare global {
interface Window {
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/solid/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import solid from '@solidjs/vite-plugin'
import { devtools } from '@tanstack/devtools-vite'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [devtools(), solid()],
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/solid1/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TanStackDevtools } from '@tanstack/solid-devtools'
import { createSignal, onCleanup, onMount } from 'solid-js'
import { render } from 'solid-js/web'
import { TanStackDevtools } from '@tanstack/solid-devtools'

declare global {
interface Window {
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/solid1/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { devtools } from '@tanstack/devtools-vite'
import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import { devtools } from '@tanstack/devtools-vite'

// A Solid 1 app. vite-plugin-solid gives every package the app's copy of
// `solid-js`, so this checks that the devtools work with Solid 1.
Expand Down
2 changes: 1 addition & 1 deletion e2e/apps/vue/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import { defineComponent, h } from 'vue'
import {
TanStackDevtools,
TanStackDevtoolsVuePlugin,
} from '@tanstack/vue-devtools'
import { defineComponent, h } from 'vue'

const DemoPlugin = defineComponent({
name: 'DemoPlugin',
Expand Down
1 change: 0 additions & 1 deletion e2e/apps/vue/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createApp } from 'vue'

import App from './App.vue'

createApp(App).mount('#app')
2 changes: 1 addition & 1 deletion e2e/apps/vue/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [vue()],
Expand Down
2 changes: 1 addition & 1 deletion e2e/helpers/src/event-probe/plugin.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { EventClient } from '@tanstack/devtools-event-client'
import React from 'react'

interface ProbeEventMap {
ping: { id: number }
Expand Down
2 changes: 1 addition & 1 deletion e2e/helpers/src/page-objects/devtools.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DRAG_HOLD_MS, SELECTORS } from '../selectors'
import type { TabId } from '../selectors'
import type { Page, Locator } from '@playwright/test'
import type { TabId } from '../selectors'

export class DevtoolsPage {
constructor(private readonly page: Page) {}
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/a11y-devtools/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
import type { TanStackDevtoolsAngularPlugin } from '@tanstack/angular-devtools'
import { TanStackDevtools } from '@tanstack/angular-devtools'
import { a11yDevtoolsPlugin } from '@tanstack/devtools-a11y/angular'
import type { TanStackDevtoolsAngularPlugin } from '@tanstack/angular-devtools'

@Component({
selector: 'app-root',
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/a11y-devtools/src/app/counter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DevtoolsEventClient } from './devtools/eventClient'
import { signal } from '@angular/core'
import { DevtoolsEventClient } from './devtools/eventClient'

export function createCounter() {
const count = signal(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { JsonPipe } from '@angular/common'
import {
afterNextRender,
ChangeDetectionStrategy,
Expand All @@ -8,7 +9,6 @@ import {
signal,
} from '@angular/core'
import { DevtoolsEventClient } from './eventClient'
import { JsonPipe } from '@angular/common'

@Component({
selector: `custom-devtool-panel`,
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/a11y-devtools/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser'
import { appConfig } from './app/app.config'
import { App } from './app/app'
import { appConfig } from './app/app.config'

bootstrapApplication(App, appConfig).catch((err) => console.error(err))
2 changes: 1 addition & 1 deletion examples/angular/basic/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
import { TanStackDevtools } from '@tanstack/angular-devtools'
import { createCounter } from './counter'
import type { TanStackDevtoolsAngularInit } from '@tanstack/angular-devtools'
import { TanStackDevtools } from '@tanstack/angular-devtools'
import type { TanStackDevtoolsAngularPlugin } from '@tanstack/angular-devtools'

@Component({
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/basic/src/app/counter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DevtoolsEventClient } from './devtools/eventClient'
import { signal } from '@angular/core'
import { DevtoolsEventClient } from './devtools/eventClient'

export function createCounter() {
const count = signal(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { JsonPipe } from '@angular/common'
import {
afterNextRender,
ChangeDetectionStrategy,
Expand All @@ -8,7 +9,6 @@ import {
signal,
} from '@angular/core'
import { DevtoolsEventClient } from './eventClient'
import { JsonPipe } from '@angular/common'

@Component({
selector: `custom-devtool-panel`,
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/basic/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser'
import { appConfig } from './app/app.config'
import { App } from './app/app'
import { appConfig } from './app/app.config'

bootstrapApplication(App, appConfig).catch((err) => console.error(err))
10 changes: 5 additions & 5 deletions examples/angular/panel/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
import { TanStackDevtools } from '@tanstack/angular-devtools'
import { createCounter } from './counter'
import type {
TanStackDevtoolsAngularInit,
TanStackDevtoolsAngularPlugin,
} from '@tanstack/angular-devtools'
import {
CustomDevtoolPanel,
customDevtoolPlugin,
noOpCustomDevtoolPlugin,
} from './devtools/custom-devtools-panel'
import { TanStackDevtools } from '@tanstack/angular-devtools'
import type {
TanStackDevtoolsAngularInit,
TanStackDevtoolsAngularPlugin,
} from '@tanstack/angular-devtools'

@Component({
selector: 'app-root',
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/panel/src/app/counter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DevtoolsEventClient } from './devtools/eventClient'
import { signal } from '@angular/core'
import { DevtoolsEventClient } from './devtools/eventClient'

export function createCounter() {
const count = signal(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { DevtoolsEventClient } from './eventClient'
import {
createAngularPanel,
createAngularPlugin,
} from '@tanstack/devtools-utils/angular'
import { DevtoolsEventClient } from './eventClient'

class BasePanel {
#unsubscribes = [] as Array<() => void>
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/panel/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser'
import { appConfig } from './app/app.config'
import { App } from './app/app'
import { appConfig } from './app/app.config'

bootstrapApplication(App, appConfig).catch((err) => console.error(err))
2 changes: 1 addition & 1 deletion examples/angular/with-devtools/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ChangeDetectionStrategy, Component } from '@angular/core'
import { createCounter } from './counter'
import { injectDevtoolsPlugins } from '@tanstack/angular-devtools/provider'
import { createCounter } from './counter'

@Component({
selector: 'app-root',
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/with-devtools/src/app/counter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DevtoolsEventClient } from './devtools/eventClient'
import { signal } from '@angular/core'
import { DevtoolsEventClient } from './devtools/eventClient'

export function createCounter() {
const count = signal(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { JsonPipe } from '@angular/common'
import {
afterNextRender,
ChangeDetectionStrategy,
Expand All @@ -8,7 +9,6 @@ import {
signal,
} from '@angular/core'
import { DevtoolsEventClient } from './eventClient'
import { JsonPipe } from '@angular/common'

@Component({
selector: `custom-devtool-panel`,
Expand Down
Loading
Loading