toss / overlay-kit

The simplest and most intuitive way to manage overlays in React.
https://overlay-kit.slash.page
MIT License
296 stars 31 forks source link

feat: Support for React versions 16.8 and 17 #72

Closed jungpaeng closed 4 months ago

jungpaeng commented 4 months ago

Description

Support for React versions 16.8 and 17 has been added by updating the import path for useSyncExternalStore to use the shim version. This change ensures compatibility with older React versions while maintaining functionality with React 18.

Related Issue: Fixes #43

Changes

Motivation and Context

This change is necessary to provide compatibility with React versions 16.8 and 17, ensuring that users of these older versions can utilize the same functionality without issues.

How Has This Been Tested?

Screenshots (if appropriate):

It tested 16.8 framer-motion example

https://github.com/user-attachments/assets/9e205b50-1237-4a92-b16d-d30fa29e1793

Types of changes

Checklist

Further Comments

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: c862ad706ca8553d28a878699cad21cc8e007311

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | ----------------------------------- | ----- | | overlay-kit | Minor | | @overlay-kit/framer-motion-react-16 | Patch | | @overlay-kit/framer-motion-react-17 | Patch | | @overlay-kit/framer-motion-react-18 | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
overlay-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 0:06am