Skip to content

Commit

Permalink
Fix peer dependencies, Add changelog (#1171)
Browse files Browse the repository at this point in the history
* Fix peer dependencies
Add v4 migrartion guide
Add Changelog

* Fix PR links

* Fix PR links
  • Loading branch information
amanmahajan7 committed Apr 19, 2018
1 parent 74d1478 commit b2f72f3
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,10 @@
## 4.0.0 (April 19, 2018)

### React-Data-Grid
- **Feature:** Support `React v16` ([#1116](https://github.com/adazzle/react-data-grid/pull/1116))
- **Feature:** Set sort column and direction with props ([649](https://github.com/adazzle/react-data-grid/pull/649))
- **Bugfix:** Filtering should ignore null values ([#1147](https://github.com/adazzle/react-data-grid/pull/1147))
- **Bugfix:** Resize column doesnt work on firefox when also draggable ([#1121](https://github.com/adazzle/react-data-grid/pull/1121))

### React-Data-Grid-Addons
- **Breaking:** Migrate to `react-context-menu 2.9.2` ([#1081](https://github.com/adazzle/react-data-grid/pull/1081))
9 changes: 2 additions & 7 deletions migrations/v2-v3.md
Expand Up @@ -2,15 +2,10 @@

### Differences
### 2.0.0
- Bundles `create-react-class` package with `react-data-grid`;
- react-contextmenu v1.6.2
- exports ContextMenuLayer
- Bundles `create-react-class` package with `react-data-grid`;

### 3.0.0
- <del>Does not bundle `create-react-class` package with `react-data-grid`. It is specified as a peer dependency now [1065](https://github.com/adazzle/react-data-grid/pull/1065);</del> ReactDataGrid is not longer dependent on `create-react-class` as all the components have been migrated to ES6 Classes ([#1078](https://github.com/adazzle/react-data-grid/pull/1078) and [#1094](https://github.com/adazzle/react-data-grid/pull/1094))
- react-contextmenu v2.9.2
- exports ContextMenuTrigger
- According to react-contextmenu, style css files are not included in react-contextmenu, need to refer to this link https://github.com/vkbansal/react-contextmenu/blob/master/docs/usage.md#styling

### Steps for a sucessfull migration
- <del>Install create-react-class package (```npm install create-react-class```)</del> This is no longer required
- <del>Install create-react-class package (```npm install create-react-class```)</del> This is no longer required
5 changes: 5 additions & 0 deletions migrations/v3-v4.md
@@ -0,0 +1,5 @@
### 4.0.0
- `react-data-grid 4.x` is using the latest version of `react-contextmenu` v2.9.2 which introduced a few breaking changes
- `ContextMenuLayer` higher order function is replaced with `ContextMenuTrigger` component and `react-data-grid-addons` now exports `ContextMenuTrigger` instead of `ContextMenuLayer`.
- Various classnames have been changed. Please refer to the `react-context-menu` [changelog](https://github.com/vkbansal/react-contextmenu/releases/tag/v2.0.0-alpha.1) for details

4 changes: 0 additions & 4 deletions package.json
Expand Up @@ -22,10 +22,6 @@
"grid",
"react-component"
],
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
},
"dependencies": {
"classnames": "^2.2.5",
"es5-shim": "^4.0.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-data-grid-addons/package.json
Expand Up @@ -21,5 +21,9 @@
"jquery": "^2.1.1",
"lodash": "^4.13.1",
"lodash.groupby": "^4.5.1"
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
}
}
6 changes: 5 additions & 1 deletion packages/react-data-grid/package.json
Expand Up @@ -15,5 +15,9 @@
],
"repository": "adazzle/react-data-grid",
"author": "Adazzle",
"license": "MIT"
"license": "MIT",
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
}
}

0 comments on commit b2f72f3

Please sign in to comment.