Skip to content

Commit

Permalink
Merge pull request adfinis#98 from czosel/release-1.2.0
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
czosel authored Apr 12, 2018
2 parents a0564f6 + 4824908 commit 153da03
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 47 deletions.
157 changes: 111 additions & 46 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
# Change Log

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.2.0]

### Changed

* Add support for custom label components (#95, credits to @przywartya)
* Allow setting autocomplete attribute on validated-form and validated-input (#97, credits to @makepanic)

## [1.1.0]

### Changed
- Update ember-cli to 3.0.0, update dependencies

* Update ember-cli to 3.0.0, update dependencies

## [1.0.1]

### Changed
- fix: use radio value to expose option key (#91, credits to @makepanic)

* fix: use radio value to expose option key (#91, credits to @makepanic)

## [1.0.0]

### Changed
- Install `ember-changeset` and `ember-changeset-validations` from the blueprint (#86, credits to @bendemboski)
- Update dependencies (#87, credits to @bendemboski)
- Remove deprecated task support (#88, credits to @bendemboski)

* Install `ember-changeset` and `ember-changeset-validations` from the blueprint (#86, credits to @bendemboski)
* Update dependencies (#87, credits to @bendemboski)
* Remove deprecated task support (#88, credits to @bendemboski)

The 1.0.0 release removes ember-changeset and ember-changeset-validations as dependencies because this addon is built to make them very easy to use, but doesn't require them. So if you are using either or both of them in your application code but do not already have them in your package.json, you should run

Expand All @@ -28,48 +42,63 @@ ember install ember-changeset-validations
This release also removes the previously deprecated API for passing ember-concourrency tasks to `on-submit`. Please see section [0.6.2] for migration instructions.

## [0.7.1]

### Changed
- Fix for removal from DOM during submit (#85, credits to @bendemboski)

* Fix for removal from DOM during submit (#85, credits to @bendemboski)

## [0.7.0]

### Changed
- Wrap radio, checkbox in span to allow custom styles (#82, credits to @makepanic)

* Wrap radio, checkbox in span to allow custom styles (#82, credits to @makepanic)

## [0.6.4]

### Changed
- Update ember truth helpers (#79, credits to @bendemboski)
- Update ember-cli to 2.18.0 (#80)

* Update ember truth helpers (#79, credits to @bendemboski)
* Update ember-cli to 2.18.0 (#80)

## [0.6.3]

### Changed
- Add disabled flag on checkbox instance (#77, credits to @toumbask)

* Add disabled flag on checkbox instance (#77, credits to @toumbask)

## [0.6.2]

### Changed
- Yield loading state, change `on-submit` to promise semantics (#75, credits to @bendemboski)

* Yield loading state, change `on-submit` to promise semantics (#75, credits to @bendemboski)

This release deprecates passing an ember-concurrency task directly to `on-submit`:

```Handlebars
// deprecated:
{{#validated-form on-submit = myTask (...)}}
```

Instead, `on-submit` accepts a promise - which is returned by wrapping the task in `perform`:

```Handlebars
{{#validated-form on-submit = (perform myTask) (...)}}
```

## [0.6.1]

### Added
- Add more input attributes (#71, credits to @bendemboski)
- Add validateBeforeSubmit option (#70, credits to @bendemboski)

* Add more input attributes (#71, credits to @bendemboski)
* Add validateBeforeSubmit option (#70, credits to @bendemboski)

## [0.6.0]

### Changed
- Use yarn instead of npm (#62)
- Update dependencies (#62)
- Remove automatic disabling of submit button while task is running (#63)

* Use yarn instead of npm (#62)
* Update dependencies (#62)
* Remove automatic disabling of submit button while task is running (#63)

To restore the old behaviour, all you have to do is pass the `isRunning` state as `disabled` property to the submit button:

Expand All @@ -83,87 +112,118 @@ To restore the old behaviour, all you have to do is pass the `isRunning` state a
```

### Added
- Add loading class to button if task is running (#63)
- Support block style usage of submit button (#61)

* Add loading class to button if task is running (#63)
* Support block style usage of submit button (#61)

### Removed
- Useless class name binding on button (#65)
- Dependency to ember-data (#62)
- Various unused dependencies (#62)

* Useless class name binding on button (#65)
* Dependency to ember-data (#62)
* Various unused dependencies (#62)

## [0.5.4]

### Changed
- Input, Textarea: Use native input tag instead of one-way-input (#60)
- Dummy app: load bootstrap from CDN (#59)

* Input, Textarea: Use native input tag instead of one-way-input (#60)
* Dummy app: load bootstrap from CDN (#59)

## [0.5.3]

### Changed
- Fix bug that caused ID collisions when multiple forms on the same page use inputs with

* Fix bug that caused ID collisions when multiple forms on the same page use inputs with
the same name (#55, credits to @anehx)

## [0.5.2]

### Changed
- Update ember-cli to v2.5.1 (#53)

* Update ember-cli to v2.5.1 (#53)

## [0.5.1]

### Changed
- Add proper `id` attributes to select and simple form components (#51)

* Add proper `id` attributes to select and simple form components (#51)

## [0.5.0]

### Changed
- Separate classes for field hints and validation messages (#42, credits to @jacob-financit). If you've
been using the (previously undocumented) option `help` on input fields, you'll have to rename them to `hint`.

* Separate classes for field hints and validation messages (#42, credits to @jacob-financit). If you've
been using the (previously undocumented) option `help` on input fields, you'll have to rename them to `hint`.

## [0.4.2]

### Added
- Better documentation for custom component integration (#46)

* Better documentation for custom component integration (#46)

### Changed
- Fix bug that causes form to break for select fields without option `promptIsSelectable` (#45)

* Fix bug that causes form to break for select fields without option `promptIsSelectable` (#45)

## [0.4.1]

### Added
- Support selectable prompts from the select dropdown (#40, credits to @steverhoades)

* Support selectable prompts from the select dropdown (#40, credits to @steverhoades)

### Changed
- Update dependencies (#33, #34, credits to @okachynskyy)
- Move addon from pods to default structure (#32, credits to @okachynskyy)

* Update dependencies (#33, #34, credits to @okachynskyy)
* Move addon from pods to default structure (#32, credits to @okachynskyy)

## [0.4.0]

### Added
- Support block form usage of radioGroups (#28, credits to @jacob-financeit)

* Support block form usage of radioGroups (#28, credits to @jacob-financeit)

### Changed
- remove hardcoded `radio` class for radio button groups. If you're using bootstrap, you
might have to add `radio: 'radio'` to the CSS config.

* remove hardcoded `radio` class for radio button groups. If you're using bootstrap, you
might have to add `radio: 'radio'` to the CSS config.

## [0.3.1]

### Added
- More CSS configuration options and docs on how to integrate semantic UI (#26)

* More CSS configuration options and docs on how to integrate semantic UI (#26)

## [0.3.0]

### Changed
- Removed automatic inference if field is required (which appended "*" to labels) because it
was incorrect. (#27, credits to @andreabettich) Now, fields have to be marked as required explicitly:

* Removed automatic inference if field is required (which appended "\*" to labels) because it
was incorrect. (#27, credits to @andreabettich) Now, fields have to be marked as required explicitly:

```Handlebars
{{f.input label="First name" name="firstName" required=true}}
```

## [0.2.2]
- Upgrade to ember 2.12.0 (#24, credits to @sproj)

* Upgrade to ember 2.12.0 (#24, credits to @sproj)

## [0.2.1]

### Added
- Override initial value of input field using `value` attribute (#22, credits to @kaldras)
- Document `on-update` property for custom update functions of input elements,
and add `changeset` argument to its signature

* Override initial value of input field using `value` attribute (#22, credits to @kaldras)
* Document `on-update` property for custom update functions of input elements,
and add `changeset` argument to its signature

## [0.2.0]

### Changed
- yield `submit` button instead of automatically rendering it, removed `cancel` button. Migration is simple:

* yield `submit` button instead of automatically rendering it, removed `cancel` button. Migration is simple:

Before:

```Handlebars
{{#validated-form
model = (changeset model UserValidations)
Expand All @@ -175,6 +235,7 @@ Before:
```

After:

```Handlebars
{{#validated-form
model = (changeset model UserValidations)
Expand All @@ -187,9 +248,13 @@ After:
```

## [0.1.11] - 2017-03-23

### Added
- Checkbox support (#5, credits to @psteininger)

* Checkbox support (#5, credits to @psteininger)

## [0.1.10] - 2017-03-23

### Added
- Easy integration of custom components (#17, credits to @feanor07)

* Easy integration of custom components (#17, credits to @feanor07)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-validated-form",
"version": "1.1.0",
"version": "1.2.0",
"description": "Easily create forms with client-side validations",
"keywords": [
"ember-addon",
Expand Down

0 comments on commit 153da03

Please sign in to comment.