Skip to content

Commit 2782fe4

Browse files
committed
fix(devtools): updates utils to fix theme miss-match
1 parent d5409a2 commit 2782fe4

11 files changed

Lines changed: 536 additions & 570 deletions

File tree

.changeset/wide-eggs-film.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@tanstack/preact-pacer-devtools': patch
3+
'@tanstack/react-pacer-devtools': patch
4+
'@tanstack/solid-pacer-devtools': patch
5+
'@tanstack/pacer-devtools': patch
6+
---
7+
8+
Update devtools-utils to fix theme miss match.

knip.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@
33
"ignoreDependencies": ["@faker-js/faker"],
44
"ignoreWorkspaces": ["examples/**"],
55
"workspaces": {
6+
"packages/preact-pacer-devtools": {
7+
"ignoreDependencies": ["csstype"]
8+
},
69
"packages/react-pacer": {
710
"ignore": []
11+
},
12+
"packages/react-pacer-devtools": {
13+
"ignoreDependencies": ["csstype"]
14+
},
15+
"packages/solid-pacer-devtools": {
16+
"ignoreDependencies": ["csstype"]
817
}
918
}
1019
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@tanstack/typedoc-config": "0.3.3",
5959
"@testing-library/jest-dom": "^6.9.1",
6060
"@types/node": "^25.2.3",
61-
"eslint": "^9.39.2",
61+
"eslint": "^10.0.0",
6262
"eslint-plugin-unused-imports": "^4.4.1",
6363
"happy-dom": "^20.6.1",
6464
"knip": "^5.83.1",
@@ -71,7 +71,7 @@
7171
"sherif": "^1.10.0",
7272
"size-limit": "^12.0.0",
7373
"tinyglobby": "^0.2.15",
74-
"tsdown": "^0.20.3",
74+
"tsdown": "^0.21.1",
7575
"typescript": "5.9.3",
7676
"vitest": "^4.0.18"
7777
},

packages/pacer-devtools/package.json

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,38 @@
3434
"type": "module",
3535
"types": "./dist/index.d.ts",
3636
"exports": {
37-
".": "./dist/index.js",
38-
"./production": "./dist/production.js",
37+
".": {
38+
"workerd": {
39+
"types": "./dist/index.d.ts",
40+
"import": "./dist/server.js"
41+
},
42+
"browser": {
43+
"types": "./dist/index.d.ts",
44+
"import": "./dist/index.js"
45+
},
46+
"node": {
47+
"types": "./dist/index.d.ts",
48+
"import": "./dist/server.js"
49+
},
50+
"types": "./dist/index.d.ts",
51+
"import": "./dist/index.js"
52+
},
53+
"./production": {
54+
"workerd": {
55+
"types": "./dist/production/index.d.ts",
56+
"import": "./dist/production/server.js"
57+
},
58+
"browser": {
59+
"types": "./dist/production/index.d.ts",
60+
"import": "./dist/production/index.js"
61+
},
62+
"node": {
63+
"types": "./dist/production/index.d.ts",
64+
"import": "./dist/production/server.js"
65+
},
66+
"types": "./dist/production/index.d.ts",
67+
"import": "./dist/production/index.js"
68+
},
3969
"./package.json": "./package.json"
4070
},
4171
"sideEffects": false,
@@ -50,15 +80,18 @@
5080
"@tanstack/pacer": ">=0.16.4"
5181
},
5282
"dependencies": {
53-
"@tanstack/devtools-ui": "^0.4.4",
54-
"@tanstack/devtools-utils": "^0.3.0",
83+
"@tanstack/devtools-ui": "^0.5.0",
84+
"@tanstack/devtools-utils": "^0.3.2",
5585
"@tanstack/solid-store": "^0.8.1",
5686
"clsx": "^2.1.1",
87+
"csstype": "^3.0.10",
5788
"dayjs": "^1.11.19",
5889
"goober": "^2.1.18",
5990
"solid-js": "^1.9.11"
6091
},
6192
"devDependencies": {
93+
"rolldown-plugin-solid": "^0.2.1",
94+
"tsdown": "^0.21.1",
6295
"vite-plugin-solid": "^2.11.10"
6396
}
6497
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { constructCoreClass } from '@tanstack/devtools-utils/solid'
2-
import { lazy } from 'solid-js'
3-
4-
const Component = lazy(() => import('./PacerDevtools'))
52

63
export interface PacerDevtoolsInit {}
74

8-
const [PacerDevtoolsCore, PacerDevtoolsCoreNoOp] = constructCoreClass(Component)
5+
const [PacerDevtoolsCore, PacerDevtoolsCoreNoOp] = constructCoreClass(() => import('./PacerDevtools'))
96

107
export { PacerDevtoolsCore, PacerDevtoolsCoreNoOp }

packages/pacer-devtools/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"jsx": "preserve",
55
"jsxImportSource": "solid-js"
66
},
7-
"include": ["src", "vitest.config.ts", "tests"],
7+
"include": ["src", "vitest.config.ts", "tests","tsdown.config.ts"],
88
"exclude": ["eslint.config.js"]
99
}
Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
11
import { defineConfig } from 'tsdown'
2-
import solid from 'vite-plugin-solid'
2+
import solid from 'rolldown-plugin-solid'
33

4-
export default defineConfig({
5-
plugins: [solid()],
6-
entry: ['./src/index.ts', './src/production.ts'],
7-
format: ['esm'],
8-
unbundle: true,
9-
dts: true,
10-
sourcemap: true,
11-
clean: true,
12-
minify: false,
13-
fixedExtension: false,
14-
exports: true,
15-
publint: {
16-
strict: true,
4+
const makeSolid = (ssr = false) =>
5+
solid({ solid: { generate: ssr ? 'ssr' : 'dom' } })
6+
7+
export default defineConfig([
8+
{
9+
entry: { index: 'src/index.ts' },
10+
format: ['esm'],
11+
outDir: 'dist',
12+
fixedExtension: false,
13+
plugins: [makeSolid()],
14+
clean: true,
15+
},
16+
{
17+
entry: { server: 'src/index.ts' },
18+
format: ['esm'],
19+
outDir: 'dist',
20+
fixedExtension: false,
21+
plugins: [makeSolid(true)],
22+
dts: false,
23+
clean: false,
24+
},
25+
{
26+
entry: { 'production/index': 'src/production.ts' },
27+
format: ['esm'],
28+
outDir: 'dist',
29+
fixedExtension: false,
30+
plugins: [makeSolid()],
31+
clean: false,
32+
},
33+
{
34+
entry: { 'production/server': 'src/production.ts' },
35+
format: ['esm'],
36+
outDir: 'dist',
37+
fixedExtension: false,
38+
plugins: [makeSolid(true)],
39+
dts: false,
40+
clean: false,
1741
},
18-
})
42+
])

packages/preact-pacer-devtools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@
5252
"preact": ">=10.0.0"
5353
},
5454
"dependencies": {
55-
"@tanstack/devtools-utils": "^0.3.0",
55+
"@tanstack/devtools-utils": "^0.3.2",
5656
"@tanstack/pacer-devtools": "workspace:*"
5757
},
5858
"devDependencies": {
5959
"@preact/preset-vite": "^2.10.3",
6060
"@testing-library/preact": "^3.2.4",
61+
"csstype": "^3.0.10",
6162
"preact": "^10.28.3"
6263
}
6364
}

packages/react-pacer-devtools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353
"react-dom": ">=16.8"
5454
},
5555
"dependencies": {
56-
"@tanstack/devtools-utils": "^0.3.0",
56+
"@tanstack/devtools-utils": "^0.3.2",
5757
"@tanstack/pacer-devtools": "workspace:*"
5858
},
5959
"devDependencies": {
6060
"@eslint-react/eslint-plugin": "^2.13.0",
6161
"@vitejs/plugin-react": "^5.1.4",
62+
"csstype": "^3.0.10",
6263
"eslint-plugin-react-compiler": "19.1.0-rc.2",
6364
"eslint-plugin-react-hooks": "^7.0.1"
6465
}

packages/solid-pacer-devtools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@
5050
"solid-js": ">=1.9.7"
5151
},
5252
"dependencies": {
53-
"@tanstack/devtools-utils": "^0.3.0",
53+
"@tanstack/devtools-utils": "^0.3.2",
5454
"@tanstack/pacer-devtools": "workspace:*"
5555
},
5656
"devDependencies": {
57+
"csstype": "^3.0.10",
5758
"vite-plugin-solid": "^2.11.10"
5859
}
5960
}

0 commit comments

Comments
 (0)