-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
V2 Goals, Deprecations, etc #146
Comments
|
This would presumably remove the need for ember-changeset-validations? |
I think it'd be less work over all. I'll try to put up a prototype PR in the next few weeks.
Yeah, my thinking is that validation can be handled any number of ways (like, not even in js), and by many different libraries, like yup. |
In my proxy PR we don't need get and set any more. The changeset can be treated as a POJO. My thoughts are to ship this as a beta with deprecation warnings for all the clean up behaviour, then ship a cleaned up version as a new major version with a much cleaner API. We should separate the typescript types into a public and private interface for changeset, and only export the public type. There's a lot of private API in the current changeset type. |
the test suite could do with some love. There are tests that say they're for changes that check the errors, and vice versa in the next test along. There are tests that rely on the exact order of errors - I've changed in my PR to .contains rather than .isEqual(array of errors) |
I don't think that And if we remove that behaviour, let's also rename to |
I think we should plan out what a V2 would look like.
There are some APIs that we could probably get rid of -- drop support for some legacy things that we don't need to care about (like super old Ember (maybe more for ember-changeset))
What I'd like to propose:
drop support entirely for the validation APIs, in favor of something more composition friendly, like Yup. Colloquially at work, changeset-validations has had huge resistence, and is generally not meeting people where their mental models are. So, I'd like to propose that changests be just changesets, and we handle validation externally
remove the following methods / properties:
add the following methods / properties:
be immutable by default
thoughts?
The text was updated successfully, but these errors were encountered: