Skip to content

chore(deps): bump react-grid-layout and @types/react-grid-layout#35

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-63cda842a1
Open

chore(deps): bump react-grid-layout and @types/react-grid-layout#35
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-63cda842a1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 26, 2026

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

Release notes

Sourced from react-grid-layout's releases.

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

2.1.1

📚 Documentation

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

... (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
  • a2f3f74 release 2.2.3
  • 061c607 chore: add codemaps, .reports, .ccells-state.json to gitignore
  • de671ae chore: update dependencies
  • 92135fe Merge PR #2237: fix visual resize preview constrained to minW/maxW/minH/maxH ...
  • ba1b105 refactor: remove unnecessary exports, add Infinity test for calcGridItemWHPx
  • ebd1bf5 Merge branch 'look-open-issues'
  • b84fca3 Merge pull request #2239 from WhiteMinds/fix/duplicate-dropping-elem-race-con...
  • e4bc3ac fix: prevent duplicate dropping-elem from race condition in handleDragOver
  • 294a8ef fix: visual resize preview constrained to minW/maxW/minH/maxH (#2235)
  • d4bb483 chore(deps-dev): bump lodash from 4.17.21 to 4.17.23 (#2234)
  • Additional commits viewable in compare view
Install script changes

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


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

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 26, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-63cda842a1 branch from 9069cbb to beac802 Compare May 26, 2026 09:59
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.3 to 2.2.3
- [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...2.2.3)

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: "@types/react-grid-layout"
  dependency-version: 2.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: react-grid-layout
  dependency-version: 2.2.3
  dependency-type: direct:production
  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-63cda842a1 branch from beac802 to 2275822 Compare May 27, 2026 11:55
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