Releases: naja-js/naja
Releases · naja-js/naja
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
New features
- SnippetHandler: allow changing snippet update operation in "before" event. You can change the planned snippet update operation (i.e. replace, prepend, or append) in the
beforeUpdateevent. You can also provide your own implementation of the snippet update mechanism, e.g. using a Virtual DOM library. - UniqueExtension: add support for multiple groups of uniqueness. You can now provide a custom string key via the
uniqueoption ordata-naja-uniqueattribute to create a new unique group. Only requests from the same group are aborted when a new one is started.
Breaking changes
- Naja now uses Fetch API instead of XMLHttpRequest.
- All
EventTargets in Naja codebase now dispatch properCustomEvents. - The
interactionevent has moved to UIHandler. - The
loadevent has been removed. - Extensions API has been greatly refactored.
- Options are no longer read from response payload.
- Dropped support for Internet Explorer.
Please refer to the migration guide for further details.
2.0.0-alpha.3
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0.-alpha.2