Repository navigation
Version Packages - #74
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
github-actions
Bot
force-pushed
the
changeset-release/master
branch
from
November 7, 2026 04:38
39557e9 to
5c4ec23
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
react-spring-lightbox@1.10.0
Released 2026-11-07
Minor Changes
3a4933c: Add an ES module build and an
exportsmap, soimportandrequireeach load their own bundle with matching types.dist/index.mjs(ES module) anddist/index.cjs(CommonJS, renamed fromdist/index.cjs.js), each with a source map. The type declarations are bundled intodist/index.d.mtsforimportanddist/index.d.ctsforrequire. They replacedist/index.d.tsand the per-file declarations that 1.9.0 shipped underdist/components/anddist/types/.package.jsonnow sets"main": "./dist/index.cjs","module": "./dist/index.mjs", and"types": "./dist/index.d.cts". Its newexportsmap hasimportandrequireconditions for the package root and also exposes./package.json."sideEffects": false, that lets them drop the lightbox entirely from an app that imports it without rendering it.import Lightbox, { ImagesListType } from 'react-spring-lightbox'works as before, andrequire('react-spring-lightbox')still returns the component itself, not{ default }.export =, which matchesmodule.exports = Lightbox. The 1.9.0 declarations usedexport default, so TypeScript projects compiling to CommonJS under"module": "node16"or"nodenext"expected a.defaultproperty that does not exist at runtime.import Lightbox = require('react-spring-lightbox')now type-checks as well.reactinstead of relying on the globalReactnamespace that@types/reactdeclares.Upgrade notes:
dist/now fail, because theexportsmap exposes only the package root and./package.json. Node.js reportsERR_PACKAGE_PATH_NOT_EXPORTED, and bundlers report that the package path is not exported. Import fromreact-spring-lightboxinstead, and replace imports ofdist/types/ImagesListwithimport type { ImagesListType } from 'react-spring-lightbox'.dist/index.cjs.jsdirectly needs to name the package instead.3a4933c: Require Node.js
^22.18.0 || ^24.11.0 || >=26.0.0and npm>=10.9.0inengines, up from Node.js>=16and npm>=7.preparescript, which builds it withrolldown-plugin-dts, and that plugin supports only these Node.js versions.npm warn EBADENGINE Unsupported engineand installs anyway. Withengine-strict=true, npm stops withnpm error code EBADENGINE. Yarn 1 always stops, withThe engine "node" is incompatible with this modulefollowed byerror Found incompatible module. Upgrade Node.js, or skip the check withyarn install --ignore-enginesornpm install --engine-strict=false.3cd50c2: Support React 19 by moving to
@react-spring/web10, and fix two-finger pinch zoom stopping after its first step under React 19.dependenciesnow has@react-spring/web^10.1.2, up from^9.7.3. Version 9 declaresreactandreact-dompeers of^16.8.0 || ^17.0.0 || ^18.0.0, and version 10 adds^19.0.0. The lightbox's own peers stayreact >=16.8andreact-dom >=16.8.npm warn ERESOLVE overriding peer dependencyand installs@react-spring/web9.7.5 anyway. With--strict-peer-deps, npm stops withnpm error code ERESOLVEand lists@react-spring/web@"^9.7.3" from react-spring-lightbox@1.9.0underCould not resolve dependency:. This release installs next to React 19 without either message.ImagePagermarked itself as dragging and cancelled the drag. Its drag-end handler cleared that flag only inside anif (isDragging)check, which read a stalefalsebecause React 19 had not yet re-rendered the pager with the new value. The flag stayed set, and the image ignores pinches while the pager is dragging. The drag-end handler now always moves the pages back to their resting positions and clears the flag 100 ms after the gesture ends.Upgrade notes:
@react-spring/web9, npm installs a second copy for the lightbox, andnpm ls @react-spring/weblists 9.x at the top level and 10.x underreact-spring-lightbox. Your bundle then carries both copies. Settings you apply throughGlobals.assign, such asskipAnimationin a test setup file, reach only your copy, so the lightbox's springs keep animating. Move your app to@react-spring/web10 so both share one copy.Patch Changes
3a4933c: Build with Rolldown and TypeScript 7 instead of Rollup, Babel, and TypeScript 5, and drop the
@babel/runtimedependency.dependenciesno longer lists@babel/runtime. The 1.9.0 bundle required@babel/runtime/helpers/defineProperty,@babel/runtime/helpers/extends, and@babel/runtime/helpers/objectWithoutProperties, and neither bundle needs them now.rolldown-plugin-dtsbundles them into one file per module format.3a4933c: Ship
CHANGELOG.mdin the npm package, so the release notes are innode_modules/react-spring-lightbox/CHANGELOG.mdafter an install.filesinpackage.jsonnow listsCHANGELOG.mdandMIGRATION.mdnext todist. Through 1.9.0, the package held onlydist/,package.json,README.md, andLICENSE, so the release notes were only on GitHub.MIGRATION.mdyet. The first release that needs a step-by-step migration guide ships one atnode_modules/react-spring-lightbox/MIGRATION.md.