ember-changeset-validations
ember-changeset-validations copied to clipboard
`buildMessage` function is backwards incompatible
Version
Latest Master starting at #126
Test Case
Steps to reproduce
Expected Behavior
From the Docs and existing behavior the buildMessage function should have a signature like this:
buildMessage(key, type, value, context = {}).
Actual Behavior
On this line the signature made a backwards incompatible change and now looks like this: buildMessage(key, result).
Is the next release intended to bump the major version? If not, any apps relying on buildMessage will be broken.
I've just updated to 1.2.7 and run into this incompatibility.
Another breaking change is moving the context.message block after this logic which forces consumers to specify a type even when you plan on using context.message to get the validation message.