Skip to content

v1.0.0

Latest

Choose a tag to compare

@greena13 greena13 released this 14 Feb 08:25

Breaking changes

  • The API has changed so that FormData.from is now formData and returns a FormData instance instead of an array of tuples.

So:

const result = jasonForm.FormData.from(input);

const formData = new FormData();

result.forEach(function(keyAndValue) {
  formData.append(keyAndValue[0], keyAndValue[1]);
})

Becomes:

const formData = jasonForm.formData(input)