Skip to content

Commit bb595b8

Browse files
committed
chore(deps): update @tanstack/devtools and related packages
1 parent b6652ab commit bb595b8

File tree

11 files changed

+114
-240
lines changed

11 files changed

+114
-240
lines changed

examples/angular/a11y-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools-event-client": "0.4.2",
2221
"@tanstack/devtools-a11y": "^0.1.2",
22+
"@tanstack/devtools-event-client": "0.4.3",
2323
"rxjs": "~7.8.0",
2424
"tslib": "^2.3.0"
2525
},

examples/angular/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools-event-client": "0.4.2",
21+
"@tanstack/devtools-event-client": "0.4.3",
2222
"rxjs": "~7.8.0",
2323
"tslib": "^2.3.0"
2424
},

examples/angular/panel/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools": "^0.10.13",
22-
"@tanstack/devtools-event-client": "0.4.2",
23-
"@tanstack/devtools-utils": "^0.3.3",
21+
"@tanstack/devtools": "^0.11.2",
22+
"@tanstack/devtools-event-client": "0.4.3",
23+
"@tanstack/devtools-utils": "^0.4.0",
2424
"rxjs": "~7.8.0",
2525
"tslib": "^2.3.0"
2626
},

examples/angular/with-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools-event-client": "0.4.2",
21+
"@tanstack/devtools-event-client": "0.4.3",
2222
"rxjs": "~7.8.0",
2323
"tslib": "^2.3.0"
2424
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "configPath": "../../dist/server/wrangler.json", "auxiliaryWorkers": [] }
1+
{"configPath":"../../dist/server/wrangler.json","auxiliaryWorkers":[]}

knip.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"ignoreWorkspaces": ["examples/**"],
55
"workspaces": {
66
"packages/devtools-a11y": {
7-
"ignoreDependencies": ["solid-js"]
7+
"ignoreDependencies": ["solid-js", "@angular/core"]
88
},
99

1010
"packages/devtools-utils": {
@@ -19,10 +19,8 @@
1919
"ignore": ["**/core.tsx"]
2020
},
2121
"packages/angular-devtools": {
22-
"entry": [
23-
"provider/**/*.ts",
24-
"src/**/*.ts"
25-
]
22+
"ignoreDependencies": ["tslib"],
23+
"entry": ["provider/**/*.ts", "src/**/*.ts"]
2624
}
2725
}
2826
}

packages/angular-devtools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"devDependencies": {
6060
"@angular/core": "^21.2.0",
6161
"ng-packagr": "^21.2.0",
62-
"tslib": "^2.3.0"
62+
"tslib": "^2.3.0",
63+
"vitest": "^3.2.4"
6364
},
6465
"peerDependencies": {
6566
"@angular/core": ">=21.0.0"

packages/angular-devtools/src/devtools.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ import {
2222
untracked,
2323
} from '@angular/core'
2424
import type { Signal } from '@angular/core'
25-
import type { TanStackDevtoolsPlugin } from '@tanstack/devtools'
25+
import type {
26+
TanStackDevtoolsPlugin,
27+
} from '@tanstack/devtools'
2628
import type {
2729
TanStackDevtoolsAngularFunctionalComponent,
2830
TanStackDevtoolsAngularInit,
2931
TanStackDevtoolsAngularPlugin,
32+
TanStackDevtoolsAngularPluginInputProps,
3033
TanStackDevtoolsAngularPluginRender,
3134
} from './types'
3235

@@ -127,15 +130,15 @@ export class TanStackDevtools {
127130
...(plugin.inputs ?? {}),
128131
})
129132
},
130-
render: (e, theme) => {
133+
render: (e, props) => {
131134
if (!plugin.render) {
132135
return
133136
}
134137

135138
runInInjectionContext(this.#viewInjector, () => {
136139
if (isClassConstructor<unknown>(plugin.render)) {
137140
this.renderComponent(plugin.render, e, {
138-
theme,
141+
...props,
139142
...(plugin.inputs ?? {}),
140143
})
141144
} else {
@@ -146,7 +149,7 @@ export class TanStackDevtools {
146149
>,
147150
e,
148151
{
149-
theme,
152+
...props,
150153
...(plugin.inputs ?? {}),
151154
},
152155
)
@@ -159,7 +162,7 @@ export class TanStackDevtools {
159162
}
160163
}
161164

162-
#normalizeInputs<TInputs extends Record<string, unknown>>(
165+
#normalizeInputs<TInputs extends Record<string, any>>(
163166
inputs: Signal<TInputs> | (() => TInputs) | TInputs,
164167
): () => TInputs {
165168
return isSignal(inputs)
@@ -170,7 +173,9 @@ export class TanStackDevtools {
170173
async #renderComponentFunction(
171174
renderFn: Exclude<TanStackDevtoolsAngularPluginRender, Type<any> | null>,
172175
container: HTMLElement,
173-
inputs: (() => Record<string, unknown>) | Record<string, unknown>,
176+
inputs:
177+
| (() => TanStackDevtoolsAngularPluginInputProps)
178+
| TanStackDevtoolsAngularPluginInputProps,
174179
) {
175180
const result = await renderFn()
176181
if (!result) return
@@ -193,7 +198,7 @@ export class TanStackDevtools {
193198
#renderFunctionalComponent(
194199
fn: TanStackDevtoolsAngularFunctionalComponent,
195200
container: HTMLElement,
196-
inputs: () => Record<string, unknown>,
201+
inputs: () => TanStackDevtoolsAngularPluginInputProps,
197202
) {
198203
const component = createComponent(TanStackPluginView, {
199204
hostElement: container,

packages/angular-devtools/src/types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ interface DefaultExport<T> {
1717
default: T
1818
}
1919

20+
export interface TanStackDevtoolsAngularPluginInputProps extends TanStackDevtoolsPluginProps {
21+
[key: string]: any;
22+
}
23+
2024
export type TanStackDevtoolsAngularFunctionalComponent<
21-
TInputs extends NonNullable<unknown> = Record<string, any>,
25+
TInputs extends TanStackDevtoolsAngularPluginInputProps = TanStackDevtoolsAngularPluginInputProps,
2226
> = (inputs: () => TInputs, hostElement: HTMLElement) => () => void
2327

2428
export type TanStackDevtoolsAngularPluginRenderFn =
25-
| TanStackDevtoolsAngularFunctionalComponent<TanStackDevtoolsPluginProps>
29+
| TanStackDevtoolsAngularFunctionalComponent<TanStackDevtoolsAngularPluginInputProps>
2630
| DefaultExport<Type<unknown> | null>
2731
| Type<unknown>
2832
| null

packages/devtools-a11y/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@
102102
"vite-plugin-solid": "^2.11.11"
103103
},
104104
"peerDependencies": {
105+
"@angular/core": ">=19.0.0",
105106
"@types/react": ">=17.0.0",
106107
"preact": ">=10.0.0",
107108
"react": ">=17.0.0",
108109
"solid-js": ">=1.9.7",
109-
"@angular/core":">=19.0.0",
110110
"vue": ">=3.2.0"
111111
},
112112
"peerDependenciesMeta": {

0 commit comments

Comments
 (0)