Closed NoahBres closed 1 year ago
Verified on running opmode ✅
"Bump deps" definitely undersold this. Thanks for some much-needed maintenance!
Pre-commit hooks removed
I use them 😄 Can you elaborate on the development friction? Does it just encourage fewer, bigger commits? I'd generally rather handle formatting this way than set up GH actions or something.
Fixing bug where state is entirely cleared rather than appended to in OpModeView (introduced in Address getGamepads changes #72)
I didn't even catch it on my second review. Silly setState()
semantics.
I use them 😄 Can you elaborate on the development friction? Does it just encourage fewer, bigger commits? I'd generally rather handle formatting this way than set up GH actions or something.
This is entirely irrelevant but regarding previous work in a professional setting, they just proved to be an annoyance as the hooks are generally very slow and you were discouraged from making frequent commits. Commits failing for linting errors felt incredibly unnecessary since you were not really concerned until merging into the main branch. I've had similar discussions with other teams. However, this is completely irrelevant to dash's development given that so few people work on it—and so infrequently. Also, my laptop is fast enough where I don't notice how slow hooks used to be—unsure if that carries for average users. I just wasn't aware that anyone used it since they are not automatically installed and recent PR's have not complied. I was working off of a new device and had forgotten that the pre-commit hooks existed. I think if you find this useful, I will definitely re-include them. I am going to add some documentation eventually so it is encouraged to set them up.
Significant package changes:
12.13.0
->18.12.1
18.12.1
is the latest LTS versionvite
: 2 -> 3@vitejs/plugin-react-refresh
uninstalled, replaced by@vitejs/plugin-react
ESNext
ES5
option deprecatedreact-scripts
package removed. Relic fromcreate-react-app
react
: 17 -> 18redux
: 4.0 -> 4.2createStore
deprecated with recommendation to move to@reduxjs/toolkit
. Details in changelog. No changes to Dash required but deprecation will halt further upgradesreact-redux
: 7 -> 8redux-thunk
: 2.3 -> 2.4tailwindcss
: 2 -> 3@tailwindcss/jit
packagetailwind.config.js
. Removed.Misc
npm run dev
, equivalent to currentnpm run start
npm run dev
seems to have overtakennpm run start
as the standard in terms of default ecosystem documentation assumptions. Just a small convenience changeOpModeView
(introduced in #72)socketMiddleware.ts
createRoot