Skip to content

Commit

Permalink
Updated version and documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrandin committed Jan 6, 2017
1 parent 4a34ee2 commit 293a061
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# ChangeLog

### v1.3.0
### v1.2.12
6-January-2017

* #49 - Support for inline field validation message?
* #49 - Support for inline field validation message
* Added missing deprecation notices.

### v1.2.11
18-December-2016

* #61 - BUG: Error «Need to set a username or email» when email is set
* Solved #61 by adding functionality to remember entered values in localStorage, which also makes it possible to remember values between routes (i.e. when switching between /login and /register).

### v1.2.10
14-December-2016
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# React Accounts UI

Current version 1.3.0
Current version 1.2.12

## Features

Expand Down Expand Up @@ -513,7 +513,7 @@ Accounts.onCreateUser(function (options, user) {

## Deprecations

### v1.3.0
### v1.2.11
* The use of FormMessage in Form has been deprecated in favor of using
FormMessages that handles multiple messages and errors.
See example: [Form.jsx#L43](imports/ui/components/Form.jsx#L43)
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/components/FormMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class FormMessage extends React.Component {
// XXX Check for deprecations.
if (deprecated) {
// Found backwords compatibility issue.
console.warn('You are overriding Accounts.ui.Form and using FormMessage, the use of FormMessage in Form has been depreacted in v1.3.0, update your implementation to use FormMessages: https://github.com/studiointeract/accounts-ui/#deprecations');
console.warn('You are overriding Accounts.ui.Form and using FormMessage, the use of FormMessage in Form has been depreacted in v1.2.11, update your implementation to use FormMessages: https://github.com/studiointeract/accounts-ui/#deprecations');
}
message = _.isObject(message) ? message.message : message; // If message is object, then try to get message from it
return message ? (
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/components/LoginForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ export class LoginForm extends Tracker.Component {
ReactDOM.render(<Accounts.ui.Field message="test" />, container);
if (container.getElementsByClassName('message').length == 0) {
// Found backwards compatibility issue with 1.3.x
console.warn(`Implementations of Accounts.ui.Field must render message in v1.3.0.
console.warn(`Implementations of Accounts.ui.Field must render message in v1.2.11.
https://github.com/studiointeract/accounts-ui/#deprecations`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'std:accounts-ui',
version: '1.3.0',
version: '1.2.12',
summary: 'Accounts UI for React in Meteor 1.3+',
git: 'https://github.com/studiointeract/accounts-ui',
documentation: 'README.md'
Expand Down

0 comments on commit 293a061

Please sign in to comment.