Comments (6)
react-resize-detector v10 has been developed and tested with React 18, and therefore, it's reasonable for the package to set React 18+ as a peer dependency. Users who need compatibility with React 16 can either choose to ignore the recommended peerDependencies or stick with the previous version of the package (v9.1.1), which is compatible with React 16.
from react-resize-detector.
That doesn't answer my question about it being a breaking change, and you do keep repeating yourself, I understand that you've said it works with 18 and it's tested with 18, as i said in my first request, there's absolutely nothing in the code that suggests that it should be fixed to 18, you're excluding an entire user base who are stuck with older versions of react, i would normally agree with you if this was a complicated intricate piece of software, but it's not, it's a very simple hook using vanilla javascript features wrapped in a hook....
from react-resize-detector.
React versions before 18 are considered legacy at this point. Compatibility with them is not guaranteed.
We dropped support for previous versions of React to provide long-term stability and maintenance for react-resize-detector v10.
You can stay on the latest react-resize-detector v9
release until you can migrate your application to React 18:
npm i [email protected]
from react-resize-detector.
You can always drop ongoing support without raising the peer dependency requirements? As mentioned, that isn't how you manage support, simply mention it rather than enforce it
from react-resize-detector.
Updating peer dependencies is a breaking change and requires a major version bump.
react-resize-detector v10
only guarantees support with React v18+
.
If you need support for React 16 you can either ignore the recommended peerDependencies
or downgrade to react-resize-detector v9.1.1
from react-resize-detector.
How is it a breaking change? curious why you're saying that? Peer dependencies are determined or installed by npm or manually with yarn, don't understand why you say it's a breaking change?
from react-resize-detector.
Related Issues (20)
- `onFinishResize`? HOT 2
- Allow React 18 as peerDependency HOT 10
- ReactResizeDetector Component is not working with React18 HOT 1
- Wrong build folder in NPM packages 7.1.1 and 7.0.2 HOT 2
- react resize hook doesn't detect vertical resize HOT 1
- TypeError: window.ResizeObserver is not a constructor HOT 3
- Return width according to provided observerOptions HOT 4
- SourceMap loader complains "Missing source files" in the new v8 build HOT 12
- Debug `console.log` shows up in the code published to NPM HOT 4
- useResizeDetector targetRef cannot be null TS2322 HOT 5
- React errors in DEV mode HOT 12
- useResizeDetector returns width = undefined using forwardRef HOT 10
- dont'work with ReactjS scheduler
- ResizeObserver loop limit exceeded in v9.1.0 HOT 6
- (Request) pass ref to callback HOT 4
- onResize doesn't work when min-height is set HOT 4
- Package not compatible with Edge Functions HOT 4
- Issue with Next.js ^14.0.2 in DEV environment HOT 5
- Best practice for using react-resize-detector v10 in class components HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-resize-detector.