Skip to content

Commit efc2149

Browse files
authored
Drop unused dependencies (#3442)
Nothing in the repo references these packages any more. The lockfile goes from 709 to 704 entries. `tslib` and `@react-router/node` stay installed as dependencies of other packages, so for those two this only tidies `package.json`. Lint, tsc, build, and the vitest suite pass. I did not run e2e locally. - `tslib` came from the Nx generator that created the repo ([source](https://github.com/nrwl/nx/blob/313552b/packages/react/src/schematics/init/init.ts#L55-L61)), along with `importHelpers: true` in tsconfig, which tells tsc to import helpers like `__awaiter` from tslib instead of inlining them. tsc never emitted our build (that was Babel, then Vite), but with `importHelpers` on, typechecking fails with TS2354 if tslib can't be resolved and the target needs a helper, as ours did while it was es2015. #2078 raised the target to es2020 and #3075 removed `importHelpers`. It is still installed through `@peculiar/x509` and others. - `@tailwindcss/container-queries` was added in #2654 for the `@container` and `@[48rem]:` variants on the instance metrics tabs, loaded as a plugin in `tailwind.config.ts`. Tailwind 4 [has container queries built in](https://github.com/tailwindlabs/tailwindcss-container-queries/blob/7a968b3/README.md?plain=1#L1-L2), and #2910 deleted the config file that loaded the plugin but left the package. - `@tanstack/react-query-devtools` was added in #1238 to show the React Query devtools panel in dev. It was commented out in cc67cff to keep it out of screenshots, and #3400 deleted the commented-out lines. - `react-is` and `@types/react-is` also came from the Nx generator, which adds them alongside styled-components ([source](https://github.com/nrwl/nx/blob/313552b/packages/react/src/utils/styled.ts#L18-L28)) because styled-components 5 has react-is as a peer dependency. We replaced styled-components with emotion in 451bef6. `@reach/menu-button` 0.16 also had react-is as a peer dependency until #1395 replaced it with Radix, and no package in the lockfile has had one since. Nothing in the repo has ever imported react-is, so the types were never used. - `@react-router/node` was added in #3400, following the [React Router SPA guide](https://github.com/remix-run/react-router/blob/f482813/docs/how-to/spa.md#L38), which says a project needs it for the build-time render of `index.html`. Our `entry.server.tsx` uses web streams and doesn't import it, and `@react-router/dev` already depends on the exact same version, so it stays installed.
1 parent 3b76a1e commit efc2149

2 files changed

Lines changed: 0 additions & 54 deletions

File tree

‎package-lock.json‎

Lines changed: 0 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@
5555
"@oxide/design-system": "^6.7.3",
5656
"@peculiar/x509": "^1.12.3",
5757
"@react-aria/live-announcer": "^3.3.4",
58-
"@tailwindcss/container-queries": "^0.1.1",
5958
"@tailwindcss/vite": "^4.3.3",
6059
"@tanstack/react-query": "^5.90.7",
61-
"@tanstack/react-query-devtools": "^5.90.2",
6260
"@tanstack/react-table": "^8.20.5",
6361
"@tanstack/react-virtual": "^3.13.12",
6462
"@xterm/addon-fit": "^0.11.0",
@@ -78,7 +76,6 @@
7876
"react-dom": "^19.2.0",
7977
"react-error-boundary": "^4.0.13",
8078
"react-hook-form": "^7.72.1",
81-
"react-is": "^19.2.0",
8279
"react-merge-refs": "^2.1.1",
8380
"react-router": "^8.3.1",
8481
"react-stately": "^3.50.0",
@@ -87,7 +84,6 @@
8784
"shiki": "^4.5.0",
8885
"simplebar-react": "^3.2.6",
8986
"ts-pattern": "^5.8.0",
90-
"tslib": "^2.7.0",
9187
"tunnel-rat": "^0.1.2",
9288
"uplot": "^1.6.32",
9389
"uplot-react": "^1.2.4",
@@ -102,13 +98,11 @@
10298
"@oxide/openapi-gen-ts": "~0.16.0",
10399
"@playwright/test": "^1.61.0",
104100
"@react-router/dev": "^8.3.1",
105-
"@react-router/node": "^8.3.1",
106101
"@types/lodash.throttle": "^4.1.9",
107102
"@types/md5": "^2.3.5",
108103
"@types/mousetrap": "^1.6.15",
109104
"@types/react": "^19.2.2",
110105
"@types/react-dom": "^19.2.2",
111-
"@types/react-is": "^19.2.0",
112106
"@types/semver": "^7.7.1",
113107
"@types/uuid": "^10.0.0",
114108
"@vitejs/plugin-basic-ssl": "^2.3.0",

0 commit comments

Comments
 (0)