Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Releases: rnicholus/ajax-form

Hotfix: Cannot read property 'content' of undefined

03 Dec 06:14
Compare
Choose a tag to compare

May happen in some instances since the ajax-form.js file lis loaded before the <template> is rendered. Ran across this while working on a Web Component integration library/loader for React.

Error I saw was:

Uncaught TypeError: Cannot read property 'content' of undefined
    at HTMLFormElement.value (ajax-form.js:476)
    at ajax-form.js:469
    at ajax-form.js:500

Fixed in 801d190.

Fix for duplicate submitted values when using paper-input fields

18 Dec 14:24
Compare
Choose a tag to compare

Thanks to @rajsite for discovering the issue and @flaiker for verifying the fix. See #73 and #78 for details.

Re-introduced DELETE request support

29 Nov 16:43
Compare
Choose a tag to compare

This was accidentally removed from a previous version. See #75 for details.

Removed Shadow DOM - webcomponents-lite.js now supported

01 Sep 03:39
Compare
Choose a tag to compare

You no longer have to pull in the full webcomponents.js polyfill for browsers that do not implement the web components spec. As of 2.1.0, ajax-form no longer utilizes Shadow DOM, making this possible.

FIXED: Multipart encoded requests are missing boundary ID in Content-Type header

28 May 12:40
Compare
Choose a tag to compare

FIXED: <file-input> and <input type="file"> elements are not handled properly

28 May 04:15
Compare
Choose a tag to compare

Please see #65 for details.

You can grab the latest ajax-form on npm.

No more dependencies, clean up native form mirroring, publish to npm

28 May 04:00
Compare
Choose a tag to compare

This is a huge release with some substantial changes, though the breaking changes noticeable to users are likely very minimal.

  1. Ajax-form no longer has any hard dependencies, not even Polymer! Ajax-form 2.0 is a pure web component able to stand on its own, and Polymer is no longer a dependency. Note that you may still use Polymer and ajax-form in your project, if you wish. Also, Polymer's custom element form fields continue to be supported as well, provided they behave like native form fields (which they should)
  2. An attempt was made to make ajax-form a bit more element-like. For example, previously, if a method attribute was not included, an Error was thrown. 2.0 is taking a different approach to make ajax-form seem a bit more native. If you don't include a method attribute in your form, a default of "GET" will be used.
  3. A bug that prevented empty text fields from being sent with the submit request has been fixed.
  4. Ajax-form is now on npm! In fact, this is definitely the preferred way to download ajax-form going forward.
  5. You can now prevent a form from being submitted simply by preventing the default action of the "submitting" event.
  6. 2.0.0 brings support for "grouped" form fields. That is, multiple form fields that share the same name attribute will all be included in the submit request for all enctypes, even "application/json"!

To download ajax-form, simply npm install ajax-form.

PATCH support

04 Apr 03:06
Compare
Choose a tag to compare

PATCH is now a supported method. Thanks to @gmercey for the pull request (#53).

Support <file-input> extended elements

17 Mar 03:46
Compare
Choose a tag to compare

This release fixes an issue that prevents custom elements that extend from being parsed by ajax-form.

See #51 and #52 for more details.

As always, you can access the latest version via bower.

Fix for custom headers

29 Jan 05:42
Compare
Choose a tag to compare

1.5.0 brought a regression that prevented custom headers, specified via the headers attribute, from being sent with the request. This is fixed here in 1.5.1. See #49 for more details.

As always, you can access the latest version via bower.