diff --git a/CHANGELOG.md b/CHANGELOG.md index dc3bcfb..5600d98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.4.0 - 2017-11-14 + +* Add: img alt for a11y accessibility +* Update: react v16 as a peer dependency + # 1.3.3 - 2017-09-28 * Add: custom className support diff --git a/package.json b/package.json index 59039d6..125b29c 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,12 @@ { "name": "react-responsive-masonry", - "version": "1.3.3", + "version": "1.4.0", "description": "React responsive masonry component built with css flexbox", "repository": { "type": "git", "url": "git+https://github.com/xuopled/react-responsive-masonry.git" }, - "keywords": [ - "react", - "masonry", - "css", - "flexbox", - "responsive" - ], + "keywords": ["react", "masonry", "css", "flexbox", "responsive"], "author": "Cédric Delpoux ", "license": "MIT", "bugs": { @@ -20,9 +14,7 @@ }, "homepage": "https://github.com/xuopled/react-responsive-masonry#readme", "main": "lib/index.js", - "files": [ - "lib" - ], + "files": ["lib"], "devDependencies": { "babel-cli": "^6.24.0", "babel-eslint": "^7.2.1", @@ -35,11 +27,12 @@ "eslint-plugin-react": "^6.10.3", "npmpub": "^3.1.0", "prop-types": "^15.5.8", - "react": "^15.5.0" + "react": "^16.0.0" }, "peerDependencies": { "prop-types": "^15.5.0", - "react": "^15.5.0 || ^16.0.0" + "react": "^16.0.0", + "react-dom": "^16.0.0" }, "scripts": { "clean": "rm -rf lib", diff --git a/src/Masonry.js b/src/Masonry.js index f964cd6..d2c9936 100644 --- a/src/Masonry.js +++ b/src/Masonry.js @@ -1,4 +1,4 @@ -import React, {Component} from "react" +import React from "react" import PropTypes from "prop-types" const styles = { @@ -20,7 +20,7 @@ const styles = { }, } -class Masonry extends Component { +class Masonry extends React.Component { getColumns() { const {children, columnsCount} = this.props const columns = [] diff --git a/src/ResponsiveMasonry.js b/src/ResponsiveMasonry.js index 0f23185..5efd1b4 100644 --- a/src/ResponsiveMasonry.js +++ b/src/ResponsiveMasonry.js @@ -1,9 +1,9 @@ -import React, {Component} from "react" +import React from "react" import PropTypes from "prop-types" const DEFAULT_COLUMNS_COUNT = 1 -class MasonryResponsive extends Component { +class MasonryResponsive extends React.Component { constructor(props) { super(props) diff --git a/yarn.lock b/yarn.lock index 23eb1b1..67da202 100644 --- a/yarn.lock +++ b/yarn.lock @@ -701,10 +701,6 @@ babylon@^6.17.0, babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" -balanced-match@^0.4.1: - version "0.4.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -731,14 +727,7 @@ boom@2.x.x: dependencies: hoek "2.x.x" -brace-expansion@^1.0.0: - version "1.1.6" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" - dependencies: - balanced-match "^0.4.1" - concat-map "0.0.1" - -brace-expansion@^1.1.7: +brace-expansion@^1.0.0, brace-expansion@^1.1.7: version "1.1.8" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" dependencies: @@ -1106,8 +1095,8 @@ eslint-module-utils@^2.1.1: pkg-dir "^1.0.0" eslint-plugin-import@^2.2.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.7.0.tgz#21de33380b9efb55f5ef6d2e210ec0e07e7fa69f" + version "2.8.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894" dependencies: builtin-modules "^1.1.1" contains-path "^0.1.0" @@ -1411,7 +1400,11 @@ fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: mkdirp ">=0.5 0" rimraf "2" -function-bind@^1.0.2, function-bind@^1.1.0: +function-bind@^1.0.2: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + +function-bind@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" @@ -1990,13 +1983,13 @@ mime@^1.2.11: version "1.3.4" resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" -"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: +"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" dependencies: brace-expansion "^1.0.0" -minimatch@^3.0.4: +minimatch@^3.0.3, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: @@ -2510,8 +2503,8 @@ resolve@^1.1.6: path-parse "^1.0.5" resolve@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86" + version "1.5.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36" dependencies: path-parse "^1.0.5"