donavon / use-dark-mode

A custom React Hook to help you implement a "dark mode" component.
MIT License
1.29k stars 98 forks source link

Is it maintained? #96

Open arsnl opened 2 years ago

arsnl commented 2 years ago

Is this project still maintained? The last publish was 3 years ago and the peer dependencies are failing with the version 17+ of React.

Are you looking for new maintainers or to give the projet to other developers?

Average time to resolve an issue

Average time to resolve an issue

Percentage of issues still open

Percentage of issues still open

msglab commented 2 years ago

getting the same error.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from use-dark-mode@2.3.1
transitive-bullshit commented 2 years ago

Until #68 gets merged, if anyone wants a workaround, you can use @fisch0920/use-dark-mode from my fork here https://github.com/transitive-bullshit/use-dark-mode

It will work with React 17 and 18.

kachkaev commented 1 year ago

@transitive-bullshit the fork still gives a peer dependency warning via its dependency: https://github.com/donavon/use-persisted-state/issues/69

➤ YN0000: root-workspace-0b6124@workspace:. provides react@npm:18.0.0 with version 18.0.0, which doesn't satisfy the following requirements:

➤ YN0000: @fisch0920/use-dark-mode@npm:2.4.0 [dc3fc] → >=16.8             ✓
➤ YN0000: @use-it/event-listener@npm:0.1.7 [c1c92]   → >=16.8.0           ✓
➤ YN0000: use-persisted-state@npm:0.3.3 [c1c92]      → ^16.8.0 || ^17.0.0 ✘
Pa1sathvik commented 4 months ago

Any update here?