• 0.2.6 f639a8eae1

    0.2.6 Stable

    BehindTheMath released this 2018-04-30 14:11:30 -05:00 | 19 commits to master since this release

    • Fixed: Form submission for GET requests.
      (#129 - @robinnorth)
    • Fixed: Refactor loadUrl() to make manually calling simpler.
      (#134 - @robinnorth)
    • Fixed: Support multiple select fields in form submissions.
      (#147 - @robinnorth)
    • Fixed: Use the same options object in handle-response as in send-request. This way, pjax.state.options will also have the request options.
      (#148 - @BehindTheMath)
    • Added: Move the XHR callback to a separate method, and trigger an error event if the response cannot be parsed.
      (#137 - @BehindTheMath)
    • Added: TypeScript definitions.
      (#138 - @BehindTheMath)
    • Added: replaceNode switch, as an alternative to the outerHTML switch.
      (#141 - @BehindTheMath)
    • Added: X-PJAX-Selectors HTTP header. This is a serialized JSON array of selectors, taken from options.selectors. You can use this to send back only the elements that Pjax will use to switch, instead of sending the whole page.
      (#144 - @BehindTheMath)
    • Added: An option to use FormData to submit forms.
      (#153 - @BehindTheMath)
    • Added: Tests.
      (f98f2dd, #145 - @robinnorth, @BehindTheMath)
    Downloads