Skip to content

Commit 51ba6bf

Browse files
committed
chore: rename package exports and names
1 parent 26f09ba commit 51ba6bf

File tree

22 files changed

+28
-28
lines changed

22 files changed

+28
-28
lines changed

examples/react/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "tsc"
1010
},
1111
"dependencies": {
12-
"@tanstack/devtools-event-bus-plugin": "workspace:^",
12+
"@tanstack/devtools-event-client": "workspace:^",
1313
"@tanstack/react-devtools": "^0.1.1",
1414
"@tanstack/react-query": "^5.83.0",
1515
"@tanstack/react-query-devtools": "^5.83.0",
@@ -37,4 +37,4 @@
3737
"last 1 safari version"
3838
]
3939
}
40-
}
40+
}

examples/react/basic/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TanstackDevtoolsEventSubscription } from '@tanstack/devtools-event-bus-plugin'
1+
import { EventClient } from '@tanstack/devtools-event-client'
22

33
interface EventMap {
44
'query-devtools:test': {
@@ -14,7 +14,7 @@ interface EventMap {
1414
description: string
1515
}
1616
}
17-
class QueryDevtoolsPlugin extends TanstackDevtoolsEventSubscription<EventMap> {
17+
class QueryDevtoolsPlugin extends EventClient<EventMap> {
1818
constructor() {
1919
super({
2020
pluginId: 'query-devtools',

examples/react/start/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@prisma/studio-core": "^0.5.1",
1919
"@tailwindcss/vite": "^4.0.6",
2020
"@tanstack/devtools-event-bus": "workspace:^",
21-
"@tanstack/devtools-event-bus-plugin": "workspace:^",
21+
"@tanstack/devtools-event-client": "workspace:^",
2222
"@tanstack/react-devtools": "^0.1.1",
2323
"@tanstack/react-query": "^5.83.0",
2424
"@tanstack/react-query-devtools": "^5.83.0",
@@ -47,4 +47,4 @@
4747
"vitest": "^3.1.2",
4848
"web-vitals": "^4.2.4"
4949
}
50-
}
50+
}

examples/react/start/src/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TanstackDevtoolsEventSubscription } from '@tanstack/devtools-event-bus-plugin'
1+
import { EventClient } from '@tanstack/devtools-event-client'
22

33
interface EventMap {
44
'query-devtools:test': {
@@ -15,12 +15,12 @@ interface EventMap {
1515
}
1616
}
1717

18-
class QueryDevtoolsPlugin extends TanstackDevtoolsEventSubscription<EventMap> {
18+
class QueryDevtoolsClient extends EventClient<EventMap> {
1919
constructor() {
2020
super({
2121
pluginId: 'query-devtools',
2222
})
2323
}
2424
}
2525

26-
export const queryPlugin = new QueryDevtoolsPlugin()
26+
export const queryPlugin = new QueryDevtoolsClient()

examples/react/start/src/server-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { TanstackDevtoolsServerEventBus } from '@tanstack/devtools-event-bus/server'
1+
import { ServerEventBus } from '@tanstack/devtools-event-bus/server'
22

3-
const devtoolsServer = new TanstackDevtoolsServerEventBus()
3+
const devtoolsServer = new ServerEventBus()
44

55
devtoolsServer.start()
66

packages/devtools/src/core.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { lazy } from 'solid-js'
22
import { Portal, render } from 'solid-js/web'
3-
import { TanstackDevtoolsClientEventBus } from '@tanstack/devtools-event-bus/client'
3+
import { ClientEventBus } from '@tanstack/devtools-event-bus/client'
44
import { DevtoolsProvider } from './context/devtools-context'
55
import { initialState } from './context/devtools-store'
66
import type {
@@ -64,7 +64,7 @@ export class TanStackDevtoolsCore {
6464
#isMounted = false
6565
#dispose?: () => void
6666
#Component: any
67-
#eventBus: TanstackDevtoolsClientEventBus | undefined
67+
#eventBus: ClientEventBus | undefined
6868
#eventBusConfig: EventBusConfig | undefined
6969

7070
constructor(init: TanStackDevtoolsInit) {
@@ -85,7 +85,7 @@ export class TanStackDevtoolsCore {
8585
this.#Component = lazy(() => import('./devtools'))
8686
const { hasServer, ...rest } = this.#eventBusConfig || {}
8787
const Devtools = this.#Component
88-
this.#eventBus = new TanstackDevtoolsClientEventBus(rest)
88+
this.#eventBus = new ClientEventBus(rest)
8989
this.#eventBus.start(hasServer)
9090
return (
9191
<DevtoolsProvider plugins={this.#plugins} config={this.#config}>
File renamed without changes.

packages/event-bus-plugin/package.json renamed to packages/event-bus-client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@tanstack/devtools-event-bus-plugin",
2+
"name": "@tanstack/devtools-event-client",
33
"version": "0.1.1",
4-
"description": "TanStack Event Bus plugin is a lightweight event bus plugin for TanStack Devtools event bus.",
4+
"description": "TanStack Event Client is a lightweight event client for TanStack Devtools event bus.",
55
"author": "Tanner Linsley",
66
"license": "MIT",
77
"repository": {
@@ -52,4 +52,4 @@
5252
"test:build": "publint --strict",
5353
"build": "vite build"
5454
}
55-
}
55+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { EventClient } from './plugin'

0 commit comments

Comments
 (0)