react-grid-layout v1.0.0 Release Notes

Release Date: 2020-07-20 // almost 4 years ago
  • ๐Ÿšš React-Grid-Layout has been in 0.x status for far too long. With the addition of some new features in this version and a breaking change, I thought it was time to move to a stable semver.

    ๐Ÿ’ฅ Breaking Changes

    • onDrop callback now has a form more consistent with other callbacks.
      • Previous type: (elemParams: { x: number, y: number, w: number, h: number, e: Event }) => void
      • New type: (layout: Layout, item: ?LayoutItem, e: Event) => void
      • Thanks @ceberhar #1169
    • โฌ‡๏ธ Dropping Node 8 compatibility and testing due to devDep incompatibilities

    ๐Ÿ†• New Features

    • โž• Add innerRef: React.Ref<'div'> prop to expose a ref for the grid layout's outer div. Thanks @paul-sachs #1176
    • โž• Add isBounded property to prevent dragging items outside of the grid. Thanks @artembykov #1248

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fix grid items stuck using percentages on first render. Thanks @rhbg #1246