Skip to content

Latest commit

 

History

History
533 lines (307 loc) · 21 KB

CHANGELOG.md

File metadata and controls

533 lines (307 loc) · 21 KB

7.0.1 (2024-03-18)

Bug Fixes

  • deps: update dependencies (c2d187b)

7.0.0 (2023-11-21)

chore

  • deps: update ember and dependencies (fc26b0b)

Features

  • allow html attributes to be passed to wrapping form element (b29f4d8)

BREAKING CHANGES

  • deps: Drop support for Ember v3.

6.2.0 (2023-02-23)

Bug Fixes

  • scroll error into view with nested key names (#904) (5c192a5)

Features

  • a11y: add aria invalid and describedby attributes on validation (6e16a51), closes #48

6.1.2 (2022-09-20)

Bug Fixes

  • label: only show requiredness indicator if a label is given (72c212d)

6.1.1 (2022-09-20)

Bug Fixes

  • bootstrap: make sure error feedback is always visible (1722144)
  • checkbox-group: fix multiple selection in checkbox group (6bb902b)

6.1.0 (2022-09-16)

Features

  • input: allow custom date component to be configured (#861) (33bbafa)

6.0.2 (2022-09-09)

Bug Fixes

  • deps: remove unnecessary dependency to tracked-toolbox (605c001)

6.0.1 (2022-09-08)

Bug Fixes

  • deps: add missing dependency tracked-toolbox (5b0f1a7)

6.0.0 (2022-09-08)

chore

  • deps: update ember and drop node 12 support (3f3fb67)
  • select: remove deprecated option includeBlank on selects (3ef60b2)

Features

  • support embroider builds (b0b0bde)

BREAKING CHANGES

  • select: Remove deprecated option includeBlank on select inputs.
  • This changes the global configuration for features, themes and default components completely. For instructions on how to migrate, check the migration to v6 guide.
  • deps: Drop support for Node v12 and Ember LTS 3.24

5.3.1 (2022-09-02)

Bug Fixes

  • select: fix promptIsSelectable in combination with targetPath (#853) (526d81f)

5.3.0 (2022-02-22)

Bug Fixes

  • addon docs root url (7d8151f)
  • blueprint: add ember-truth-helpers to default blueprint (a401589)
  • deps: move required deps to dependencies instead of devDependencies (46629ce)
  • new link to docs (c1073e5)
  • select: pass prompt argument down to input component (64a1377)

Features

  • pass attributes to input components (dc0417d)

5.2.2 (2022-02-10)

Bug Fixes

5.2.1 (2022-02-09)

Bug Fixes

  • respect scrollErrorIntoView for validated buttons as well (#743) (fd6be2a)

5.2.0 (2022-02-03)

Features

  • scroll first invalid element into view (#733) (ae7c8b2)
  • validated-button: add triggerValidations flag (#721) (765f5f4)

5.0.0 (2021-10-08)

chore

  • deps: update ember and other dependencies (41e099c)
  • ember: remove support for ember 3.20 (0cfebfc)

Features

  • refactor all components to glimmer and use native classes (cee7373)

BREAKING CHANGES

  • ember: Remove support for ember LTS 3.20 since that version has a bug with autotracking.
  • deps: Require ember-auto-import v2+
  • While the public API won't change, there is a huge chance that this will break implementations if someone's extending the components of this addon. Components that do need to be refactored to glimmer.

4.1.0 (2021-09-30)

Bug Fixes

  • deps: [security] bump handlebars from 4.7.6 to 4.7.7 (#588) (d167207)
  • deps: [security] bump striptags from 3.1.1 to 3.2.0 (#637) (3632f52)
  • deps: [security] bump trim-newlines from 3.0.0 to 3.0.1 (#634) (10e3974)
  • deps: [security] bump ws from 6.2.1 to 6.2.2 (#624) (910ec64)
  • call on-update hook correctly (#641) (b8688b6)

Features

4.0.1 (2021-05-21)

Bug Fixes

  • validated-input: use changeset.set if available to preserve state tracking on nested objects (#609) (d3b92ee)

4.0.0 (2021-05-19)

Bug Fixes

  • validated-input: rewrite to glimmer and support nested changesets (#581) (2f3e7c5)

BREAKING CHANGES

  • validated-input: This drops support for Ember LTS 3.16 and ember-changeset < 3.0.0 and ember-changeset-validations < 3.0.0

  • refactor(validated-input): refactor dynamic component call to angle-brackets

  • chore(*): drop node v10 support

  • validated-input: drop node v10 support since v10 has reached EOL

  • fix(themed-component): convert array to string befor using in key path

3.0.3 (2021-04-15)

Bug Fixes

  • deps: [security] bump elliptic from 6.5.3 to 6.5.4 (#538) (b36030c)
  • deps: [security] bump ini from 1.3.5 to 1.3.8 (#450) (97870d1)
  • deps: [security] bump socket.io from 2.3.0 to 2.4.1 (#474) (fe46f19)
  • deps: [security] bump y18n from 3.2.1 to 3.2.2 (#560) (727144e)
  • remove unused modules which lead to invalid imports (#464) (d0405bf)
  • deps: bump ember-auto-import from 1.10.1 to 1.11.2 (#557) (f01f882)
  • deps: bump ember-auto-import from 1.7.0 to 1.10.1 (#456) (d4940d7)
  • deps: bump ember-cli-babel from 7.23.0 to 7.23.1 (#473) (df7cec0)
  • deps: bump ember-cli-babel from 7.23.1 to 7.26.3 (#558) (6b0ee99)
  • deps: bump ember-cli-htmlbars from 5.6.4 to 5.7.1 (#549) (e00e417)
  • deps: bump ember-one-way-select from 4.0.0 to 4.0.1 (#565) (0564346)
  • deps: bump uuid from 8.3.1 to 8.3.2 (#439) (d72f013)

3.0.2 (2020-11-20)

Bug Fixes

  • intl: remove unused translation that caused warnings in apps (f20f233)

3.0.1 (2020-11-18)

Bug Fixes

  • deps: update ember-changeset and validations to v3+ (a9d83e2)

3.0.0 (2020-11-06)

  • chore!: update dependencies (#392) (2664399), closes #392

Bug Fixes

  • deps: bump ember-auto-import from 1.6.0 to 1.7.0 (#394) (9d464e4)
  • select: pass promptIsSelectable to select (e739b4f)

BREAKING CHANGES

  • This drops support for Ember LTS 3.8 and 3.12

Change Log

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

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[1.4.2]

Changed

  • Bump version because of a wrong npm publish

[1.4.1]

Changed

  • Fix changing of a changeset property from outside of the form (#118)

[1.4.0]

Changed

  • Update ember to version 3.1
  • Fix mixed content in docs (#107 / #108, credits to @sliverc)
  • Fix wrong bootstrap class in documentation (#114, credits to @kimroen)

Added

  • on-invalid-submit action gets called on submitting an invalid form (#111, credits to @omairvaiyani)
  • inputId is yielded from the validated-input component (#115, credits to @kimroen)

[1.3.1]

Changed

[1.3.0]

Changed

  • Bootstrap 4 support (#100, credits to @anehx)
  • Add valid and invalid class to input component (#100, credits to @anehx)
  • Only set valid class if value is dirty (#100, credits to @anehx)

[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

[1.0.1]

Changed

  • 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)

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

ember install ember-changeset
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)

[0.7.0]

Changed

  • 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)

[0.6.3]

Changed

  • 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)

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

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

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

{{#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)

[0.6.0]

Changed

  • 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:

{{#validated-form
  ...
  on-submit = myTask
  as |f|}}
  {{f.submit label="Test" disabled=myTask.isRunning}}
{{/validated-form}}

Added

  • 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)

[0.5.4]

Changed

  • 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 the same name (#55, credits to @anehx)

[0.5.2]

Changed

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

[0.5.1]

Changed

  • 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.

[0.4.2]

Added

  • Better documentation for custom component integration (#46)

Changed

  • 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)

Changed

  • 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)

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.

[0.3.1]

Added

  • 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:
{{f.input label="First name" name="firstName" required=true}}

[0.2.2]

  • 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

[0.2.0]

Changed

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

Before:

{{#validated-form
  model        = (changeset model UserValidations)
  on-submit    = (action "submit")
  on-cancel    = (action "cancel")
  submit-label = 'Save' as |f|}}
  {{!-- form content --}}
{{/validated-form}}

After:

{{#validated-form
  model        = (changeset model UserValidations)
  on-submit    = (action "submit")
  as |f|}}
  {{!-- form content --}}
  {{f.submit label='Save'}}
  <button {{action="cancel"}}>Cancel</button>
{{/validated-form}}

[0.1.11] - 2017-03-23

Added

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

[0.1.10] - 2017-03-23

Added

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