Releases: MoOx/pjax
Releases · MoOx/pjax
0.2.8
- Fixed: Edge form support.
(#178 - @robinnorth) - Fixed: Removed keyup event listener for forms.
(#184 - @BehindTheMath) - Fixed: Bugs in evalScripts().
(#186 - @BehindTheMath) - Fixed: Handle non-string HTML passed to loadContent().
(#200 - @BehindTheMath) - Tooling: Switch linting to ESLint and Prettier.
(#191 - @BehindTheMath)
0.2.7
- Fixed: Parsing values of option elements in forms.
(#162 - @BehindTheMath) - Fixed: Added index.d.ts to package.json so it will be installed by npm.
(c589ab9 - @BehindTheMath) - Fixed:
options.history
to correctly parse being set to false.
(#165 - @BehindTheMath). - Fixed: Pass the current
options
object toloadContent()
.
(#171 - @BehindTheMath) - Fixed: Ensure correct XHR encoding for multipart/form-data forms
(#174 - @BehindTheMath) - Added: More documentation.
(#160, #171 - @robinnorth, @BehindTheMath)
0.2.6
- 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 insend-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 theouterHTML
switch.
(#141 - @BehindTheMath) - Added:
X-PJAX-Selectors
HTTP header. This is a serialized JSON array of selectors, taken fromoptions.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)
0.2.5
- Fixed: Async switch functions now work correctly, because the DOM is now parsed after all the switches finish.
(#79, #110 - @oskarrough, @BehindTheMath, @robinnorth) - Fixed: Bug on IE11 preventing AJAX page refresh.
(#81 - @CPTechnikVX) - Fixed: Default switches are now available as
Pjax.switches
.
(#92 - @BehindTheMath) - Fixed: An error that was caused by a missing
switchElementsAlt
.
(#93, #104 - @BehindTheMath, @robinnorth) - Fixed: Incorrect
main
field in npm package
(#105 - @robinnorth) - Fixed: A pending XHR is now aborted if the user navigates somewhere else before the request is finished.
(#114 - @robinnorth) - Fixed: When rendering new content, focus will now be removed only from elements within one of the containers manipulated by Pjax.
(#116 - @BehindTheMath) - Fixed: Stop dispatching extraneous
pjax:complete
events when external scripts load
(#118 - @robinnorth) - Added: Send the
X-PJAX
header with XHR requests.
(#80 - @bram1028) - Added: Direct download link for script tags. (@MoOx)
- Added: Pass the element that triggered Pjax to the
pjax:send
event.
(#94 - @BehindTheMath) - Added: An option to set a timeout for XHR requests.
(#95 - @BehindTheMath) - Added: Checks for XHR redirects
(#101 - @BehindTheMath) - Added: Save scroll position with history, and restore when navigating backwards or forwards.
(#110, #119 - @BehindTheMath, @robinnorth) - Added: Scroll to element position when URL contains a hash
(#110 - @BehindTheMath) - Added: Minified version of the Pjax bundle.
(#115 - @BehindTheMath) - Changed: Miscellaneous code and tests cleanup.
(#96, #98, #99, #100, #107, #113, #120 - @BehindTheMath, @MoOx, @robinnorth)
0.2.4
- Fixed:
refresh
should now work (usethis.parseDOM
for refresh)
(#67 - @compressed) - Fixed: Some attributes, such as
itemscope
have no corresponding value.
This change allows them to still be set.
(#67 - @compressed) - Added:
cacheBust
option
(#71 - @tremby)
0.2.3
0.2.2
- Fixed: added back standalone version in
./pjax.js
(#57 - Fixed: error when using pjax with google analytics (
options
was undefined)
(#59) - Fixed: HierarchyRequestError error
(#49) - Fixed:
TypeError: Pjax.forEachEls is not a function
(#52) - Fixed:
TypeError: Pjax.executeScripts is not a function
(#52) - Fixed:
TypeError: Pjax.clone is not a function
(#52) - Added: Ignore events with prevented defaults
(#50)