adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

`buildMessage` function is backwards incompatible

Offen
#141 2 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
215
Forks
98
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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](https://github.com/DockYard/ember-changeset-validations/blob/master/addon/utils/validation-errors.js#L17) 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.