You're specifying Next 15 as a dependency, causing it to be installed along with the package in projects using Next 14. If you are actually using internal Next 15 APIs that's fine, but I believe the package should specify Next as a peer dependency instead, and with as wide a range as possible.
You're specifying Next 15 as a dependency, causing it to be installed along with the package in projects using Next 14. If you are actually using internal Next 15 APIs that's fine, but I believe the package should specify Next as a peer dependency instead, and with as wide a range as possible.