diff --git a/.gitignore b/.gitignore index 7739ccb5..cc348288 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .version .branch +.changelog_update +scripts/__pycache__/ examples/**/*-bundle.js node_modules/ .idea/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 863979d7..704960ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,108 +1,249 @@ -v1.7.7 - Tue, 18 Apr 2017 13:40:29 GMT +v2.0.2 - Fri, 16 Jun 2017 13:10:06 UTC +-------------------------------------- + +- [c1dc7fd](../../commit/c1dc7fd) change PropTypes.String to PropTypes.string + + +v2.0.1 - Fri, 16 Jun 2017 11:30:58 UTC +-------------------------------------- + +- [435ab91](../../commit/435ab91) Update eslint config so it should pass +- [b1a28a4](../../commit/b1a28a4) remove yarn.lock per comment +- [389a8fa](../../commit/389a8fa) Address review comments +- [ab11c36](../../commit/ab11c36) [fixed] removing 'es' for now. +- [2f0a1a9](../../commit/2f0a1a9) [fixed] added rules to compile on Makefile. +- [e921de8](../../commit/e921de8) [fixed] use the correct babel presets combination. +- [92ccf1d](../../commit/92ccf1d) Additional changes to support move from src to lib +- [138f8ef](../../commit/138f8ef) Remove unnecessary comma +- [e36336a](../../commit/e36336a) Update yarn.lock +- [d08b96e](../../commit/d08b96e) Create es and commonjs separate build steps +- [d024d3a](../../commit/d024d3a) Transform based on env +- [4704fa7](../../commit/4704fa7) Remove unnecessary react-create-class dependency +- [a6422f6](../../commit/a6422f6) Use ES module for top level export +- [c05e88d](../../commit/c05e88d) Move lib to src so we can use lib for build output + + +v2.0.0 - Thu, 15 Jun 2017 18:16:21 UTC +-------------------------------------- + +- [0374b6b](../../commit/0374b6b) [chore] update makefile to run coverage. +- [ba2c124](../../commit/ba2c124) [chore] passing lint... +- [a5cc01b](../../commit/a5cc01b) Use callback ref in readme +- [933f3a4](../../commit/933f3a4) Modify the sample code to es2015 syntax in README.md (#295) +- [8059ded](../../commit/8059ded) Updates License (#303) +- [315d1e1](../../commit/315d1e1) Add code climate and code coverage +- [1c326a1](../../commit/1c326a1) Add Linting (#293) +- [d2fbe55](../../commit/d2fbe55) [chore] added babel stage-2 preset. + + +v1.9.7 - Thu, 15 Jun 2017 13:28:17 UTC +-------------------------------------- + +- [df14528](../../commit/df14528) Added cross-env to run tests on windows + + +v1.9.6 - Thu, 15 Jun 2017 00:57:18 UTC +-------------------------------------- + +- [91e1a67](../../commit/91e1a67) Remove deprecation warning in react 15.6.0 about React.DOM.noscript +- [937f835](../../commit/937f835) [chore] removing unnecessary file. + + +v1.9.5 - Wed, 14 Jun 2017 22:57:03 UTC +-------------------------------------- + +- [3139e85](../../commit/3139e85) [added] refresh portalClassName on componentWillUpdate + + +v1.9.4 - Tue, 13 Jun 2017 10:12:34 UTC +-------------------------------------- + +- [0510f62](../../commit/0510f62) Add gzip size badge + + +v1.9.3 - Tue, 13 Jun 2017 09:21:26 UTC +-------------------------------------- + +- [28ecc0b](../../commit/28ecc0b) [fixed] compatibility with unstable_handleError. + + +v1.9.2 - Mon, 12 Jun 2017 21:05:11 UTC +-------------------------------------- + +- [a61f73c](../../commit/a61f73c) fix react proptypes warning + + +v1.9.1 - Mon, 12 Jun 2017 16:27:34 UTC +-------------------------------------- + +- [a12246e](../../commit/a12246e) [changed] use object className and overlayClassName prop to override... + + +v1.8.1 - Mon, 12 Jun 2017 12:37:12 UTC +-------------------------------------- + +- [e5bb415](../../commit/e5bb415) [change] allow to customize the react-modal document.body open class. + + +v1.7.13 - Mon, 12 Jun 2017 10:26:34 UTC +--------------------------------------- + +- [3bc4719](../../commit/3bc4719) [chore] refactoring tests... + + +v1.7.12 - Fri, 09 Jun 2017 22:27:37 UTC +--------------------------------------- + +- [4b69478](../../commit/4b69478) [chore] clean publish resources before start... +- [00ea6fe](../../commit/00ea6fe) [chore] refactor and clean up build system. + + +v1.7.11 - Thu, 08 Jun 2017 16:47:56 UTC +--------------------------------------- + +- [a3f69d5](../../commit/a3f69d5) [chore] add travis ci build status on README.md. + + +v1.7.10 - Thu, 08 Jun 2017 16:43:41 UTC +--------------------------------------- + +- [651ce99](../../commit/651ce99) [chore] prevent publish if an error occur. + + +v1.7.9 - Thu, 08 Jun 2017 12:59:39 UTC +-------------------------------------- + +- [99c7e32](../../commit/99c7e32) [fixed] use Object.assign for now. + + +v1.7.8 - Thu, 08 Jun 2017 01:45:46 UTC +-------------------------------------- + +- [14a2fd0](../../commit/14a2fd0) [chore] improving build and publish pipeline. + + +v1.7.7 - Tue, 18 Apr 2017 07:40:29 UTC -------------------------------------- - [889ffde](../../commit/889ffde) [fixed] Removed additional es2015 causing problems -v1.7.6 - Thu, 13 Apr 2017 14:41:16 GMT +v1.7.6 - Thu, 13 Apr 2017 08:41:16 UTC -------------------------------------- - [048ef2d](../../commit/048ef2d) [fixed] remove additional es2015 from refCount -v1.7.5 - Thu, 13 Apr 2017 14:20:34 GMT +v1.7.5 - Thu, 13 Apr 2017 08:20:34 UTC -------------------------------------- - [1db0ee1](../../commit/1db0ee1) [fixed] remove es2015 from v1 branch -v1.7.4 - Thu, 13 Apr 2017 13:37:19 GMT +v1.7.4 - Thu, 13 Apr 2017 07:37:19 UTC -------------------------------------- -- +- [86987d5](../../commit/86987d5) Use create-react-class to avoid React.createClass deprecations +- [16efd72](../../commit/16efd72) Use prop-types +- [e579a0d](../../commit/e579a0d) [fix] keep references of modals. -v1.7.3 - Tue, 14 Mar 2017 01:22:00 GMT +v1.7.3 - Mon, 13 Mar 2017 19:22:00 UTC -------------------------------------- - [e1df119](../../commit/e1df119) [fixed] remove portal context in timeout (#353) -v1.7.2 - Thu, 09 Mar 2017 03:59:52 GMT +v1.7.2 - Wed, 08 Mar 2017 20:59:52 UTC -------------------------------------- -- +- [185f2b0](../../commit/185f2b0) Remove .bind(this) from removePortal call -v1.7.1 - Thu, 02 Mar 2017 14:49:30 GMT +v1.7.1 - Thu, 02 Mar 2017 07:49:30 UTC -------------------------------------- - [a1d29c6](../../commit/a1d29c6) [fixed] rewrite removePortal as es5 function -v1.7.0 - Thu, 02 Mar 2017 03:54:08 GMT +v1.7.0 - Wed, 01 Mar 2017 20:54:08 UTC -------------------------------------- +- [fb3eb5e](../../commit/fb3eb5e) [chore] use afterEach to cleanup modals automatically. - [ea4f37a](../../commit/ea4f37a) [fixed] respect closeTimeoutMS during unmount +- [f6768b7](../../commit/f6768b7) [change] improve reliability on focus management. - [4232477](../../commit/4232477) [fixed] Enable click to close in iOS (#301) (#304) (#313) -v1.6.5 - Sat, 31 Dec 2016 17:14:28 GMT +v1.6.5 - Sat, 31 Dec 2016 10:14:28 UTC -------------------------------------- - [c50f19a](../../commit/c50f19a) [fixed] Add file extention to entry point (#294) +- [f22c206](../../commit/f22c206) Add v2 development info +- [426f5e4](../../commit/426f5e4) Update testing setup +- [945919d](../../commit/945919d) Ignore the _book directory +- [ff23603](../../commit/ff23603) Move documentation site to GitBook - [08bf920](../../commit/08bf920) [fixed] closeTimeoutMS doesn't work without onRequestClose (#278) +- [6c68e95](../../commit/6c68e95) Update CHANGELOG.md -v1.6.4 - Thu, 15 Dec 2016 05:48:59 GMT +v1.6.4 - Wed, 14 Dec 2016 22:48:59 UTC -------------------------------------- +- [ad0b071](../../commit/ad0b071) Bumps lodash.assign to 4.2.0 (#277) - [694cb87](../../commit/694cb87) [fixed] updated references from rackt to reactjs. (#244) -- [ad0b071](../../commit/ad0b071) Bumps lodash.assign dependency to version 4.2.0 +- [1dea51d](../../commit/1dea51d) Update travis build matrix +- [e50dc70](../../commit/e50dc70) Update CHANGELOG.md -v1.6.3 - Mon, 12 Dec 2016 14:03:43 GMT +v1.6.3 - Mon, 12 Dec 2016 07:03:43 UTC -------------------------------------- -- Removes some files that were inadvertently published in 1.6.2 reducing the npm install size. +- [a2e5952](../../commit/a2e5952) [docs] added required props info to README (#274) +- [f460c10](../../commit/f460c10) Update CHANGELOG.md -v1.6.2 - Sun, 11 Dec 2016 17:32:03 GMT +v1.6.2 - Sun, 11 Dec 2016 10:32:03 UTC -------------------------------------- -- This version only added the `dist/` versions which were omitted from 1.5.2 -> 1.6.1 +- -v1.6.1 - Tue, 06 Dec 2016 17:16:10 GMT +v1.6.1 - Tue, 06 Dec 2016 10:16:10 UTC -------------------------------------- - [62d87e1](../../commit/62d87e1) [fixed] Remove arrow function from ES5 source -v1.6.0 - Tue, 06 Dec 2016 15:09:25 GMT +v1.6.0 - Tue, 06 Dec 2016 08:09:25 UTC -------------------------------------- - [de14816](../../commit/de14816) [added] Ability for modal to be appended to arbitrary elements (#183) +- [3fdc672](../../commit/3fdc672) Ensure aria-hidden on appElement is reset on unmount +- [e9fd43d](../../commit/e9fd43d) Document ReactModal__Body--open so people dare to use it - [3d8e5a0](../../commit/3d8e5a0) [added] Add contentLabel prop to put aria-label on modal content -v1.5.2 - Sat, 08 Oct 2016 14:29:09 GMT +v1.5.2 - Sat, 08 Oct 2016 08:29:09 UTC -------------------------------------- - [d78428b](../../commit/d78428b) [fixed] Remove remaining reference to role dialog +- [b09cdf9](../../commit/b09cdf9) Update CHANGELOG.md -v1.5.1 - Sat, 08 Oct 2016 04:11:39 GMT +v1.5.1 - Fri, 07 Oct 2016 22:11:39 UTC -------------------------------------- -- This version only added the `dist/` versions which were omitted from 1.4.0 -> 1.5.0 +- -v1.5.0 - Sat, 08 Oct 2016 02:18:52 GMT +v1.5.0 - Fri, 07 Oct 2016 20:18:52 UTC -------------------------------------- - [919daa3](../../commit/919daa3) [fixed] Remove the default aria role dialog +- [c8106f2](../../commit/c8106f2) Update ModalPortal.js (#228) - [2e806c7](../../commit/2e806c7) [added] Make modal portal have the dialog role (#223) +- [abe88a8](../../commit/abe88a8) installation instructions (#227) - [5429f7c](../../commit/5429f7c) [fixed] Don't steal focus from a descendent when rendering (#222) - [8e767e9](../../commit/8e767e9) [fixed] Add react-dom as a peer dependency - [ff09b49](../../commit/ff09b49) [fixed] Close modal when mouseDown and MouseUp happen only on the overlay (#217) @@ -111,155 +252,236 @@ v1.5.0 - Sat, 08 Oct 2016 02:18:52 GMT - [e5b0181](../../commit/e5b0181) [added] ability to change default 'ReactModalPortal' class (#208) - [1e29e4f](../../commit/1e29e4f) [fixed] Dont change body class if isOpen not change (#201) - [d347547](../../commit/d347547) [fixed] Updates webpack distribution config to reference the correct externals (#210) +- [f0933fd](../../commit/f0933fd) [doc] fix onRequestClose callback in Usage (#195) -v1.4.0 - Thu, 30 Jun 2016 19:12:02 GMT +v1.4.0 - Thu, 30 Jun 2016 13:12:02 UTC -------------------------------------- - [13bd46e](../../commit/13bd46e) [fixed] clear the delayed close timer when modal opens again. (#189) - [70d91eb](../../commit/70d91eb) [fixed] Add missing envify npm dependency. Closes #193 (#194) -v1.3.0 - Tue, 17 May 2016 16:04:50 GMT +v1.3.0 - Tue, 17 May 2016 10:04:50 UTC -------------------------------------- - [9089a2d](../../commit/9089a2d) [fixed] Make the modal portal render into body again (#176) +- [e9aff7a](../../commit/e9aff7a) Update PULL_REQUEST_TEMPLATE.md -v1.2.1 - Sat, 23 Apr 2016 19:09:46 GMT +v1.2.1 - Sat, 23 Apr 2016 13:09:46 UTC -------------------------------------- - [aa66819](../../commit/aa66819) [fixed] Removes unneeded sanitizeProps function (#169) -v1.2.0 - Thu, 21 Apr 2016 22:02:02 GMT +v1.2.0 - Thu, 21 Apr 2016 16:02:02 UTC -------------------------------------- +- [18f5eae](../../commit/18f5eae) fix typo in README :memo: (#168) - [a10683a](../../commit/a10683a) [fixed] Make the non-minified dist build present again (#164) - [04db149](../../commit/04db149) [added] Propagate event on close request (#91) -v1.1.2 - Tue, 19 Apr 2016 02:36:05 GMT +v1.1.2 - Mon, 18 Apr 2016 20:36:05 UTC -------------------------------------- - [4509133](../../commit/4509133) [fixed] moved sanitizeProps out of the render calls. (#162) +- [25c1dad](../../commit/25c1dad) Update changelog for 1.1.1 -v1.1.1 - Fri, 15 Apr 2016 05:30:45 GMT +v1.1.1 - Thu, 14 Apr 2016 23:30:45 UTC -------------------------------------- -This release affects only the dist version of the library reducing size immensely. -- [9823bc5](../../commit/9823bc5) Use -p flag in webpack for minification and exclude externals react and react-dom +- [f1555d9](../../commit/f1555d9) Merge branch 'development-improvements' +- [9823bc5](../../commit/9823bc5) Use -p flag in webpack for minification and exclude externals react and react-dom (#159) - [72c8498](../../commit/72c8498) Move to using webpack for building the library -v1.1.0 - Tue, 12 Apr 2016 13:03:08 GMT +v1.1.0 - Tue, 12 Apr 2016 07:03:08 UTC -------------------------------------- - [6c03d17](../../commit/6c03d17) [added] trigger onAfterOpen callback when available. (#154) +- [7cf8463](../../commit/7cf8463) [doc] Update docs to include details about CSS classes -v1.0.0 - Sat, 09 Apr 2016 05:03:25 GMT +v1.0.0 - Fri, 08 Apr 2016 23:03:25 UTC -------------------------------------- +- [7af8ee5](../../commit/7af8ee5) Update README.md to include testing gotchas (#136) +- [e4be332](../../commit/e4be332) Add extra information for contributors (#143) - [4e2447a](../../commit/4e2447a) [changed] Updated to add support for React 15 (#152) - [0d4e600](../../commit/0d4e600) [added] module for default style +- [cf70338](../../commit/cf70338) Avoid stopPropagation +- [f9871c6](../../commit/f9871c6) Merge pull request #94 from apprennet/remove-body-class-unmount - [cb53bca](../../commit/cb53bca) [fixed] Remove ReactModal__Body--open class when unmounting Modal +- [fe46c63](../../commit/fe46c63) Merge pull request #108 from evoyy/pr/override-anchor-to-document-body +- [b5e38cf](../../commit/b5e38cf) Merge pull request #141 from everdimension/fix-no-tabbable-focus +- [c844719](../../commit/c844719) keep focus on modal if no tabbable elements are within it +- [e8749dd](../../commit/e8749dd) Merge pull request #128 from dorsha/master +- [93c73f3](../../commit/93c73f3) Merge pull request #140 from everdimension/add_missing_webpack_dependency +- [d732041](../../commit/d732041) add missing webpack devDependency +- [6282c3e](../../commit/6282c3e) Added the ability to decide whether the modal should be closed when clicking the overlay area. This is an important ability since in some cases we don't want the modal to be closed when users are clicking outside. Added tests and README instructions. +- [23eee3b](../../commit/23eee3b) Merge pull request #120 from evoyy/pr/bugfix_empty_tabbable_array +- [471ef4c](../../commit/471ef4c) Handle case when no tabbable element exists +- [c13fed9](../../commit/c13fed9) Restore Modal.setAppElement() functionality +- [06ebde2](../../commit/06ebde2) Merge pull request #121 from evoyy/pr/listen-on-all-interfaces +- [597882d](../../commit/597882d) Merge pull request #123 from evoyy/pr/fix_example_css_for_firefox +- [980ad5d](../../commit/980ad5d) Merge pull request #132 from shunjikonishi/shunjikonishi-patch-1 +- [bc58b9c](../../commit/bc58b9c) Merge pull request #100 from claydiffrient/bugfix/classes-take-precedence +- [ef02e29](../../commit/ef02e29) Prevent default behavior of ESC key +- [7f631bd](../../commit/7f631bd) Update README.md +- [aac1841](../../commit/aac1841) CSS transform for non-Webkit browsers +- [3e89412](../../commit/3e89412) dev server listens on all interfaces - [63bee72](../../commit/63bee72) [fixed] Custom classnames override default styles -v0.6.1 - Fri, 23 Oct 2015 18:03:54 GMT +v0.6.1 - Fri, 23 Oct 2015 12:03:54 UTC -------------------------------------- -- +- [e20595e](../../commit/e20595e) Merge pull request #87 from flskif/master +- [5705b85](../../commit/5705b85) Ignore react-dom in build -v0.6.0 - Wed, 21 Oct 2015 21:39:48 GMT +v0.6.0 - Wed, 21 Oct 2015 15:39:48 UTC -------------------------------------- -- +- [cd4dd21](../../commit/cd4dd21) Merge pull request #85 from miracle2k/master +- [5c59b9f](../../commit/5c59b9f) Use renderSubtreeIntoContainer to keep context. +- [c7153d1](../../commit/c7153d1) Merge pull request #84 from existentialism/typos +- [78fa9bd](../../commit/78fa9bd) fix a couple typos +- [acdcb7c](../../commit/acdcb7c) Merge pull request #83 from roth1002/feature/react-14 +- [4b3b885](../../commit/4b3b885) move exenv to dependencies +- [c107d02](../../commit/c107d02) Merge pull request #81 from roth1002/feature/react-14 +- [7e12d8a](../../commit/7e12d8a) Modify spec Readme.md example to use ReactDOM.render to replace React.render +- [496bb0b](../../commit/496bb0b) upgrade react 0.14 +- [920d421](../../commit/920d421) Merge pull request #70 from dinodsaurus/master +- [4c8ed91](../../commit/4c8ed91) imporved env check +- [33d47db](../../commit/33d47db) added suport for isomorphic rendering -v0.5.0 - Tue, 22 Sep 2015 19:19:44 GMT +v0.5.0 - Tue, 22 Sep 2015 13:19:44 UTC -------------------------------------- -- [4d25989](../../commit/4d25989) [added] Inline CSS for modal and overlay as well as props to override. [changed] injectCSS has been changed to a warning message in preparation for a future removal. lib/components/Modal.js [changed] setAppElement method is now optional. Defaults to document.body and now allows for a css selector to be passed in rather than the whole element. +- [408329f](../../commit/408329f) Updating dependencies +- [b24bc4b](../../commit/b24bc4b) Merge pull request #65 from web2style/master +- [6b50f7b](../../commit/6b50f7b) Merge pull request #58 from jackofseattle/fix/NoMoreInjectCSS +- [4d25989](../../commit/4d25989) [added] Inline CSS for modal and overlay as well as props to override. [changed] injectCSS has been changed to a warning message in preperation for a future removal. lib/components/Modal.js [changed] setAppElement method is now optional. Defaults to document.body and now allows for a css selector to be passed in rather than the whole element. +- [acd3c65](../../commit/acd3c65) Merge pull request #53 from ewiner/master +- [9e092ae](../../commit/9e092ae) Merge pull request #52 from DelvarWorld/noscript +- [8ccf23a](../../commit/8ccf23a) Merge pull request #63 from basarat/patch-1 +- [9bd8f68](../../commit/9bd8f68) Update peerDependencies +- [9545427](../../commit/9545427) :memo: link to demos - [02cf2c3](../../commit/02cf2c3) [fixed] Clear the closeWithTimeout timer before unmounting +- [85a13b8](../../commit/85a13b8) Returning noscript tag instead of null +- [0d5e76a](../../commit/0d5e76a) Updating README -v0.3.0 - Wed, 15 Jul 2015 06:17:24 GMT +v0.3.0 - Wed, 15 Jul 2015 00:17:24 UTC -------------------------------------- - [adecf62](../../commit/adecf62) [added] Class name on body when modal is open +- [0e94233](../../commit/0e94233) Updating dependencies +- [3938e55](../../commit/3938e55) Merge pull request #42 from claydiffrient/patch-1 +- [669f3a8](../../commit/669f3a8) Merge pull request #39 from wisely0515/ie8-support +- [fbb07d4](../../commit/fbb07d4) Moves classnames to dependencies +- [278b9ba](../../commit/278b9ba) fixed 'unknow runtime error' ie IE8 -v0.2.0 - Sat, 09 May 2015 05:16:40 GMT +v0.2.0 - Fri, 08 May 2015 23:16:40 UTC -------------------------------------- +- [1a51bf8](../../commit/1a51bf8) Merge pull request #31 from maisano/patch-1 +- [494d7d2](../../commit/494d7d2) Merge pull request #28 from peterjmag/use-classnames-module +- [e06e801](../../commit/e06e801) Merge pull request #22 from misuba/bugfix/server-clean +- [1829f43](../../commit/1829f43) Merge pull request #27 from claydiffrient/master +- [e898b6b](../../commit/e898b6b) Check if modalElement exists in handleFocus. +- [930c4ca](../../commit/930c4ca) Use classnames instead of react/lib/cx. - [f5fe537](../../commit/f5fe537) [added] Ability to specify style for the modal contents +- [6887b00](../../commit/6887b00) Shim the possibly-absent HTMLElement -v0.1.1 - Tue, 31 Mar 2015 15:56:47 GMT +v0.1.1 - Tue, 31 Mar 2015 09:56:47 UTC -------------------------------------- +- [bb57045](../../commit/bb57045) Merge pull request #19 from amccloud/patch-2 +- [10e9582](../../commit/10e9582) Merge pull request #18 from amccloud/patch-1 - [f86de0a](../../commit/f86de0a) [fixed] shift+tab closes #23 +- [bb218ca](../../commit/bb218ca) ignore node_modules +- [c464368](../../commit/c464368) Check for addEventListener before tying to use to support IE 8 +- [63b6828](../../commit/63b6828) Remove trailing commas for IE8 support -v0.1.0 - Thu, 26 Feb 2015 17:14:27 GMT +v0.1.0 - Thu, 26 Feb 2015 10:14:27 UTC -------------------------------------- +- [db8b725](../../commit/db8b725) Merge pull request #16 from arasmussen/master - [1b8e2d0](../../commit/1b8e2d0) [fixed] ModalPortal's componentWillReceiveProps -- [28dbc63](../../commit/28dbc63) [added] Supporting custom overlay className closes #14 -- [6626dae](../../commit/6626dae) [fixed] erroneous alias in webpack build -v0.0.7 - Sat, 03 Jan 2015 06:44:47 GMT +v0.0.7 - Fri, 02 Jan 2015 23:44:47 UTC -------------------------------------- -- +- [ea31beb](../../commit/ea31beb) Using shared stylesheet +- [8e01b27](../../commit/8e01b27) Renaming example +- [399b386](../../commit/399b386) Merge pull request #8 from leoasis/update_react_version +- [a8faa92](../../commit/a8faa92) Fixing paths so they work on gh-pages +- [1024026](../../commit/1024026) Fixing paths so they work on gh-pages +- [2d62f51](../../commit/2d62f51) Adding default example +- [4a85cd2](../../commit/4a85cd2) Update to React 0.12. Fix warnings. -v0.0.6 - Wed, 03 Dec 2014 21:24:45 GMT +v0.0.6 - Wed, 03 Dec 2014 14:24:45 UTC -------------------------------------- +- [2f1973b](../../commit/2f1973b) Merge branch 'master' of https://github.com/rackt/react-modal - [28dbc63](../../commit/28dbc63) [added] Supporting custom overlay className closes #14 +- [1038e3b](../../commit/1038e3b) Merge pull request #13 from knomedia/kill-extra-alias-in-build - [6626dae](../../commit/6626dae) [fixed] erroneous alias in webpack build -v0.0.5 - Thu, 13 Nov 2014 18:55:47 GMT +v0.0.5 - Thu, 13 Nov 2014 11:55:47 UTC -------------------------------------- +- [edd0dc7](../../commit/edd0dc7) Merge pull request #12 from cavneb/example-bootstrap +- [e5cb4e2](../../commit/e5cb4e2) Bootstrap-style modal example - [b15aa82](../../commit/b15aa82) [added] Supporting custom className - [b7a38de](../../commit/b7a38de) [fixed] Warning caused by trying to focus null element closes #11 +- [2ac5290](../../commit/2ac5290) Better solution for applying focus -v0.0.4 - Tue, 11 Nov 2014 16:08:14 GMT +v0.0.4 - Tue, 11 Nov 2014 09:08:14 UTC -------------------------------------- +- [ebcc11f](../../commit/ebcc11f) s/script/scripts/ +- [278cfbc](../../commit/278cfbc) Merge pull request #10 from rackt/bug-9 +- [9616a8c](../../commit/9616a8c) Removing console.log - [e57bab5](../../commit/e57bab5) [fixed] Issue with focus being lost - closes #9 +- [07541b3](../../commit/07541b3) example displaying bug +- [31c160d](../../commit/31c160d) switch to web pack dev server for examples -v0.0.3 - Fri, 31 Oct 2014 19:25:20 GMT +v0.0.3 - Fri, 31 Oct 2014 13:25:20 UTC -------------------------------------- -- +- [cf3e57a](../../commit/cf3e57a) Merge pull request #5 from leoasis/fix_main_package_json +- [5ea6651](../../commit/5ea6651) Fix main entry point in package.json +- [2277726](../../commit/2277726) Merge pull request #1 from claydiffrient/master +- [8f7cefd](../../commit/8f7cefd) Updates keyboard handling to use keyCode +- [de0b661](../../commit/de0b661) slightly less junky README +- [cde1572](../../commit/cde1572) hang on people, just hang on. -v0.0.2 - Thu, 25 Sep 2014 02:36:47 GMT +v0.0.2 - Wed, 24 Sep 2014 20:36:47 UTC -------------------------------------- -- +- -v0.0.1 - Wed, 24 Sep 2014 22:26:40 GMT +v0.0.1 - Wed, 24 Sep 2014 16:26:40 UTC -------------------------------------- -- - - -v0.0.0 - Wed, 24 Sep 2014 22:25:00 GMT --------------------------------------- +- [f0727db](../../commit/f0727db) add built files -- diff --git a/Makefile b/Makefile index 406bc0b4..0efda53e 100644 --- a/Makefile +++ b/Makefile @@ -2,17 +2,15 @@ NODE=$(shell which node) NPM=$(shell which npm) YARN=$(shell which yarn) JQ=$(shell which jq) -COVERALLS=./node_modules/coveralls/bin/coveralls.js +COVERALLS="./node_modules/coveralls/bin/coveralls.js" REMOTE="git@github.com:reactjs/react-modal" - -VERSION=$(shell jq ".version" package.json) - +CURRENT_VERSION:=$(shell jq ".version" package.json) COVERAGE?=true help: info @echo - @echo "Current version: $(VERSION)" + @echo "Current version: $(CURRENT_VERSION)" @echo @echo "List of commands:" @echo @@ -68,22 +66,12 @@ docs: build-docs # Rules for build and publish -compile: - @echo "[Compiling source]" - babel src --out-dir lib - -build: compile - @echo "[Building dists]" - @./node_modules/.bin/webpack --config webpack.dist.config.js - -build-docs: - @echo "[Building documentation]" - @rm -rf _book - @gitbook build -g reactjs/react-modal +check-working-tree: + @sh ./scripts/repo_status .version: @echo "[Updating react-modal version]" - @sh ./scripts/version $(VERSION) + @sh ./scripts/version $(CURRENT_VERSION) @$(JQ) '.version' package.json | cut -d\" -f2 > .version .branch: @@ -91,10 +79,23 @@ build-docs: @git branch | grep '^*' | awk '{ print $$2 }' > .branch @echo "Current branch: `cat .branch`" +changelog: + @echo "[Updating CHANGELOG.md $(CURRENT_VERSION) > `cat .version`]" + @python3 ./scripts/changelog.py v`cat .version` v$(CURRENT_VERSION) > .changelog_update + @cat .changelog_update CHANGELOG.md > tmp && mv tmp CHANGELOG.md + +compile: + @echo "[Compiling source]" + babel src --out-dir lib + +build: compile + @echo "[Building dists]" + @./node_modules/.bin/webpack --config webpack.dist.config.js + release-commit: git commit --allow-empty -m "Release v`cat .version`." - git add . - git commit --amend -m "`git log -1 --format=%s`" + @git add . + @git commit --amend -m "`git log -1 --format=%s`" release-tag: git tag "v`cat .version`" @@ -104,16 +105,23 @@ publish-version: release-commit release-tag git push $(REMOTE) "`cat .branch`" "v`cat .version`" npm publish +pre-publish: clean .branch .version changelog +pre-build: deps-project tests-ci build + +publish: check-working-tree pre-publish pre-build publish-version publish-finished + publish-finished: clean -pre-publish: clean .branch .version deps-project tests-ci build -check-working-tree: - @sh ./scripts/repo_status -publish: check-working-tree pre-publish publish-version publish-finished +# Rules for documentation init-docs-repo: @mkdir _book +build-docs: + @echo "[Building documentation]" + @rm -rf _book + @gitbook build -g reactjs/react-modal + pre-publish-docs: clean-docs init-docs-repo deps-docs publish-docs: clean pre-publish-docs build-docs @@ -129,8 +137,12 @@ _publish-docs: git commit -am 'update book' git push git@github.com:reactjs/react-modal gh-pages --force +# Run for a full publish + publish-all: publish publish-docs +# Rules for clean up + clean-docs: @rm -rf _book diff --git a/scripts/changelog.py b/scripts/changelog.py new file mode 100644 index 00000000..8a30eb31 --- /dev/null +++ b/scripts/changelog.py @@ -0,0 +1,159 @@ +# Requires python3 to work since, python 3< does not implement %z. + +import sys +import os +import json +from datetime import datetime +import pytz +from subprocess import Popen, PIPE, STDOUT + + +class Version(object): + def __init__(self, version): + v = version + if v.startswith('v'): + v = v[1:].split('\n')[0] + fix = v.split('.') + self.major = int(fix[0]) + self.minor = int(fix[1]) + self.patch = int(fix[2]) + self.build = None + self.tip = False + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return "v" + str(self.major) + "." + str(self.minor) + "." + str(self.patch) + + +class Changelog(object): + def __init__(self, info): + a, b, log = info + self.log = log + self.a = a + self.b = b + + def log_in_between_versions(self): + hash = self.log.split(' ')[0] + + if zeroversion(self.a): + return "" + + date_time = git_log([str(self.a), "-1", '--format="%ad"']).split('\n')[0] + + if date_time is not '': + dt = datetime.strptime(date_time, '%a %b %d %H:%M:%S %Y %z') + else: + dt = datetime.now() + dt = dt.strftime('%a, %d %b %Y %H:%M:%S') + + log = str(self.a) + " - " + dt + " UTC\n" + log = log + ("-" * (len(log) - 1)) + "\n\n" + + actual_log = self.log.splitlines() + + if len(actual_log) == 1: + entries = "-\n\n" + else: + entries = "\n".join(map(url_entry, actual_log[1:])) + "\n\n" + + log = log + entries + + return log + + def __str__(self): + return self.__repr__(self) + + def __repr__(self): + return "Changelog: " + self.log + + +def url_entry(entry): + log = entry.split(' ') + hash = log[0] + log = ' '.join(log[1:]) + + return "- [%s](../../commit/%s) %s" % (hash, hash, log) + +def zeroversion(v): + return v.major == 0 and v.minor == 0 and v.patch == 0 + +class compareversions(object): + def __init__(self, obj, *args): + self.obj = obj + + def __lt__(self, other): + if self.obj.major < other.obj.major: + return True + if self.obj.minor < other.obj.minor: + return True + if self.obj.patch < other.obj.patch: + return True + return False + +def git_exec(args): + p = Popen(" ".join(["git"] + args), shell=True, stdout=PIPE, stderr=PIPE) + out, err = p.communicate() + return out.decode('utf-8') + +def git_log(args): + return git_exec(["log"] + args) + +def adjacents(ls, f, res): + if len(ls) == 0: + return res + + first = ls[0] + if len(ls) == 1: + next = None + else: + next = ls[1] + + res.append(f(first, next)) + return adjacents(ls[1:], f, res) + +def logs_between(a, b): + v = a + if b is None: + _ = str(a) + else: + if a.tip: + a = "HEAD" + else: + a = str(a) + _ = str(b) + ".." + a + return (v, b, git_log(["--format='%h %s'", _])) + +def changelog(with_versions): + process = with_versions + versions = [] + + generate_all = len(with_versions) == 0 + + if generate_all: + lines = git_exec(["tag", "-l"]) + process = lines.splitlines() + + for item in process: + versions.append(Version(item)) + + versions = sorted(versions, key=compareversions, reverse=True) + + if generate_all: + vs = map(Changelog, adjacents(versions, logs_between, [])) + else: + versions[0].tip = True + vs = map(Changelog, [logs_between(versions[0], versions[1])]) + + return [v.log_in_between_versions() for v in vs] + + +if __name__ == "__main__": + args = sys.argv[1:] + for_version=[] + + if len(args) > 0: + for_version = list(args) + + print("\n".join(changelog(for_version)))