benwiley4000 / react-gif-player

📽 A GIF component that moves when YOU want it to!
https://benwiley4000.github.io/react-gif-player/
MIT License
94 stars 32 forks source link

Update dependencies to work with React 18 #39

Open taktran opened 9 months ago

taktran commented 9 months ago

Fixes #37 (kind of, upgrade to 18 instead of 17)

Changes

benwiley4000 commented 9 months ago

React 18 has been out for almost 2 years so it doesn't bother me to make it the minimum supported version. However please bump to a new major version for react-gif-player, we don't want existing users with old react versions to silently update to this one.

benwiley4000 commented 9 months ago

Also, why did you change emitOnErrors to true? It may have been a mistake. I assume newer webpack changed it from opt-out to opt-in.

taktran commented 9 months ago

please bump to a new major version for react-gif-player, we don't want existing users with old react versions to silently update to this one.

Have done this now. It's now at v1.0.0 🎉

Also, why did you change emitOnErrors to true? It may have been a mistake. I assume newer webpack changed it from opt-out to opt-in.

Oops, didn't notice that. Good catch - have removed.


In terms of testing, I did

Dev testing:

npm install
npm run dev

# Check http://localhost:8080/example.html looks fine

Build testing:

npm run build
npx serve .

# Check http://localhost:3000/example.html looks fine
benwiley4000 commented 9 months ago

Sorry I should have specified, 0.5.0 is ok (it's the same as a major version bump when we're still at 0). Is that ok? It's just since I haven't had time to test it I don't want to bump to 1.0 yet.

taktran commented 9 months ago

ah, no worries - have updated 😄

benwiley4000 commented 9 months ago

Alright I will try to merge and release this soon. If I had auto publish set up it would have been easier 😄

gentledepp commented 1 month ago

will this also work with react 17?