Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(validated-input): rewrite to glimmer and support nested changesets #581

Merged
merged 5 commits into from
May 18, 2021

Conversation

velrest
Copy link
Contributor

@velrest velrest commented Apr 28, 2021

Previously the computed _val did not recompute if name was a nested property like titleObject.de.
This is solved with using getters. Example twiddle:
https://ember-twiddle.com/9cb7325ea5aa8983b5ea871366014d2d?openFiles=controllers.application%5C.js%2C#docs():

@velrest velrest self-assigned this Apr 28, 2021
@velrest velrest requested review from anehx and czosel April 28, 2021 10:54
@velrest velrest force-pushed the fix-nested-changeset branch 3 times, most recently from 44edf63 to 759eec2 Compare April 28, 2021 15:02
@velrest
Copy link
Contributor Author

velrest commented Apr 29, 2021

This PR will probably drop support for ember 3.16 because the tests fail with this bug and this is fixed only in 3.20.

@velrest velrest force-pushed the fix-nested-changeset branch 5 times, most recently from 9b6ffd4 to e929f3d Compare April 29, 2021 09:33
Previously the computed `_val` did not recompute if `name` was a nested property like `titleObject.de`.
This is solved with using getters. Example twiddle:
https://ember-twiddle.com/9cb7325ea5aa8983b5ea871366014d2d?openFiles=controllers.application%5C.js%2C#docs():
BREAKING CHANGE: This drops support for Ember LTS 3.16 and `ember-changeset` < 3.0.0 and `ember-changeset-validations` < 3.0.0
@velrest
Copy link
Contributor Author

velrest commented Apr 29, 2021

@anehx @czosel Finally ready for review after several test fixing rounds.

addon/-private/themed-component.js Show resolved Hide resolved
addon/templates/components/validated-input.hbs Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
BREAKING CHANGE: drop node v10 support since v10 has reached EOL
@velrest velrest merged commit 2f3e7c5 into adfinis:master May 18, 2021
velrest pushed a commit that referenced this pull request May 19, 2021
# [4.0.0](v3.0.3...v4.0.0) (2021-05-19)

### Bug Fixes

* **validated-input:** rewrite to glimmer and support nested changesets ([#581](#581)) ([2f3e7c5](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
@velrest
Copy link
Contributor Author

velrest commented May 19, 2021

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants