Skip to content

Bump react-grid-layout from 1.5.3 to 2.2.4 - #39

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-grid-layout-2.2.4
Open

Bump react-grid-layout from 1.5.3 to 2.2.4#39
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-grid-layout-2.2.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 6, 2026

Copy link
Copy Markdown

Bumps react-grid-layout from 1.5.3 to 2.2.4.

Release notes

Sourced from react-grid-layout's releases.

v2.2.4

🧪 Tests

🔧 Internal Changes

  • measure the content box in useContainerWidth's measureWidth - #2273 by @​STRML

2.2.3

🧪 Tests

🔧 Internal Changes

2.2.2

🧪 Tests

  • prevent infinite loop when dragging external items in controlled state (#2210) - #2225 by @​STRML

🔧 Internal Changes

  • prevent infinite loop when dragging external items in controlled state (#2210) - #2225 by @​STRML

2.2.1

📚 Documentation

🧪 Tests

  • add defensive guards for drag-from-outside edge cases (#2210) - #2220 by @​STRML
  • remove calcDragPosition from default strategies to fix drag position jump - #2223 by @​STRML
  • use compactor.compact() everywhere, remove compat layers (#2213) - #2222 by @​STRML

2.2.0

Do not use this release; contains a critical layout bug. Use 2.2.1 or later.

🧪 Tests

... (truncated)

Changelog

Sourced from react-grid-layout's changelog.

Changelog

2.2.1 (Dec 30, 2025)

Bug Fixes

  • Drag position: Fix items jumping half a screen down when drag starts on a grid container offset from the page top. Removed calcDragPosition from default position strategies since react-draggable handles parent-relative coordinates correctly. #2223
  • Compactor: Ensure all internal v2 code uses compactor.compact() instead of the legacy compact() function. Added optional compactor prop to hooks (useGridLayout, useResponsiveLayout) that takes precedence over compactType/allowOverlap. Fixed negative coordinate handling in compactors. #2222, fixes #2213
  • Drag-from-outside: Add defensive guards for edge cases with drag enter/leave counter synchronization. Made removeDroppingPlaceholder idempotent and prevented negative counter values. #2220, fixes #2210

Internal Changes

  • Removed never-exported compat layers (utils-compat.ts, responsive-compat.ts, calculate-compat.ts). These were internal implementation details and were never part of the public API.
  • Removed onMove() method from Compactor interface. Custom compactors should implement only compact().

2.2.0 (Dec 29, 2025)

Bug Fixes

  • GridItem: Fix infinite loop when dragging from outside then leaving the grid without releasing the mouse. Applied the same layoutRef pattern from GridLayout to GridItem's constraint context. #2214, fixes #2210
  • DropConfig: Fix dropConfig.onDragOver being ignored. The v2 API's onDragOver callback is now properly called when provided. #2215, fixes #2212
  • Compactor: Fix custom compactor's compact() method never being called. GridLayout was extracting properties but ignoring the method implementations. #2216, fixes #2213
  • PositionStrategy: Fix custom calcStyle() and calcDragPosition() methods never being called. Custom position strategies can now fully override positioning behavior. #2217
  • DragConfig: Implement threshold property (default 3px for v2 API). Drag callbacks now wait until mouse moves the threshold distance before firing, preventing accidental drags on click. Legacy API uses threshold=0 for backwards compatibility. #2217, fixes #1341, #1401

2.1.1 (Dec 21, 2025)

Bug Fixes

  • Legacy API: Fix allowOverlap not working in legacy mode. Added noOverlapCompactor for when compactType=null and allowOverlap=true. #2207
  • GridLayout: Fix "Maximum update depth exceeded" during drag/resize/drop operations. Used layoutRef pattern to prevent callbacks from being recreated on every layout change. #2208
  • useResponsiveLayout: Fix infinite re-render loop when passing inline objects as layouts prop. Added separate ref to track props vs state changes. #2209

2.1.0 (Dec 14, 2025)

New Features

Pluggable Layout Constraints System

A new constraints system allows custom validation and transformation of layout items during drag and resize operations. #2190

import { createConstraintEnforcer, aspectRatioConstraint, positionConstraint } from "react-grid-layout/core";
const enforcer = createConstraintEnforcer([
aspectRatioConstraint(16 / 9),
positionConstraint({ minX: 0, maxX: 10 })
]);
<GridLayout constraintEnforcer={enforcer} />
</tr></table>

... (truncated)

Commits
  • 6ec45c6 2.2.4
  • 53ae218 Merge PR #2273: measure the content box in useContainerWidth (#2271 follow-up)
  • fb255be Merge PR #2274: pass the native event to resize callbacks (#2264)
  • de0a91d fix: read the computed width to keep sub-pixel precision
  • 52f04a0 fix: pass the native event to resize callbacks (#2264)
  • ce69eb8 fix: measure the content box in useContainerWidth's measureWidth
  • 2c4a710 chore: add .serena to gitignore
  • edcd12f Merge PR #2272: fix infinite re-render loop from fractional container width (...
  • c870c39 fix: round measured container width to whole pixels (#2271)
  • 1c62221 build: gate publish on a verified release state
  • Additional commits viewable in compare view
Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react-grid-layout](https://github.com/STRML/react-grid-layout) from 1.5.3 to 2.2.4.
- [Release notes](https://github.com/STRML/react-grid-layout/releases)
- [Changelog](https://github.com/react-grid-layout/react-grid-layout/blob/master/CHANGELOG.md)
- [Commits](react-grid-layout/react-grid-layout@1.5.3...v2.2.4)

---
updated-dependencies:
- dependency-name: react-grid-layout
  dependency-version: 2.2.4
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Aug 6, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: javascript. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 6, 2026
@dependabot
dependabot Bot requested a review from ljiang-slac as a code owner August 6, 2026 22:54
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants