diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb4b6d..057432b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # ChangeLog +### v1.2.20 +13-March-2017 + +* Fixed an issue with imports when using react router. + ### v1.2.19 16-February-2017 diff --git a/README.md b/README.md index 6d598d1..859430f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # React Accounts UI -Current version 1.2.19 +Current version 1.2.20 ## Features diff --git a/imports/helpers.js b/imports/helpers.js index e6e571b..53b6842 100644 --- a/imports/helpers.js +++ b/imports/helpers.js @@ -1,4 +1,5 @@ -try { import { browserHistory } from 'react-router'; } catch(e) {} +let browserHistory +try { browserHistory = require('react-router').browserHistory } catch(e) {} export const loginButtonsSession = Accounts._loginButtonsSession; export const STATES = { SIGN_IN: Symbol('SIGN_IN'), diff --git a/package.js b/package.js index e2f3e8d..cbab22e 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'std:accounts-ui', - version: '1.2.19', + version: '1.2.20', summary: 'Accounts UI for React in Meteor 1.3+', git: 'https://github.com/studiointeract/accounts-ui', documentation: 'README.md'