Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 29, 2026

Bumps react-grid-layout and @types/react-grid-layout. These dependencies needed to be updated together.
Updates react-grid-layout from 1.5.2 to 2.2.2

Release notes

Sourced from react-grid-layout's releases.

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

2.1.1

📚 Documentation

  • document TypeScript type migration from @​types/react-grid-layout - #2200 by @​STRML

🧪 Tests

🔧 Internal Changes

  • document TypeScript type migration from @​types/react-grid-layout - #2200 by @​STRML
  • update husky to v9 configuration - #2201 by @​STRML

2.1.0

React-Grid-Layout v2.1.0

... (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
  • 0a72237 release 2.2.2
  • 9e08d08 fix: prevent infinite loop when dragging external items in controlled state (...
  • 363529d fix: prevent text selection during drag/resize in demos
  • a9daf81 release 2.2.1
  • cd1bde5 fix: use compactor.compact() everywhere, remove compat layers (#2213) (#2222)
  • 7bc6a77 fix: remove calcDragPosition from default strategies to fix drag position jum...
  • 9ab22ea fix: add defensive guards for drag-from-outside edge cases (#2210) (#2220)
  • e4414cb release 2.2.0
  • 0c80a9f fix: enable PositionStrategy and DragConfig.threshold extension points (#2217...
  • c00ea04 fix: use custom compactor.compact() method when provided (#2213) (#2216)
  • Additional commits viewable in compare view

Updates @types/react-grid-layout from 1.3.6 to 2.1.0

Commits

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 29, 2026
Bumps [react-grid-layout](https://github.com/STRML/react-grid-layout) and [@types/react-grid-layout](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-grid-layout). These dependencies needed to be updated together.

Updates `react-grid-layout` from 1.5.2 to 2.2.2
- [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.2...2.2.2)

Updates `@types/react-grid-layout` from 1.3.6 to 2.1.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-grid-layout)

---
updated-dependencies:
- dependency-name: react-grid-layout
  dependency-version: 2.2.2
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/react-grid-layout"
  dependency-version: 2.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-166f54cc27 branch from 5ec5663 to eb8d912 Compare January 30, 2026 13:35
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants