Skip to content

Releases: naja-js/naja

2.1.2

12 Jan 08:45
2.1.2
35f2a20

Choose a tag to compare

  • 🐞 UIHandler: ignore rejections from the underlying makeRequest() call in UI interactions (94d3ad4)
  • 🐞 UIHandler: fix incomplete type assertion (#197)
  • 🐞 build: fix path to type declarations (#198)

2.1.1

22 Dec 09:26
2.1.1
6708c64

Choose a tag to compare

  • 🐞 FormsHandler: add missing undefined check to condition in processForm (#184)

2.1.0

19 Dec 23:59
2.1.0
7394504

Choose a tag to compare

  • UIHandler: manual dispatch methods clickElement() and submitForm() now return the promise from the underlying request call (#177).
  • naja.makeRequest() now serializes simple POJO data into query string for GET and HEAD requests (#178).

2.0.1

01 Sep 13:42
2.0.1
ed9a18d

Choose a tag to compare

  • 🐞 Fixed reading historyUiCache setting from defaultOptions (#85)
  • 🐞 Fixed type definitions file path in package.json (#91, #92, thanks @dakur)

2.0.0

22 Aug 17:37
2.0.0
825576d

Choose a tag to compare

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 beforeUpdate event. 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 unique option or data-naja-unique attribute 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 proper CustomEvents.
  • The interaction event has moved to UIHandler.
  • The load event 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

21 Aug 09:45
2.0.0-alpha.3
d06f97a

Choose a tag to compare

2.0.0-alpha.3 Pre-release
Pre-release

2.0.0-alpha.3

2.0.0-alpha.2

25 Apr 11:49
2.0.0.-alpha.2
808563c

Choose a tag to compare

2.0.0-alpha.2 Pre-release
Pre-release
2.0.0.-alpha.2

1.8.3

25 Apr 11:48
1.8.3
8c6511d

Choose a tag to compare

  • Made support for submitting forms via GET even more reliable.

1.8.2

24 Apr 17:21
1.8.2
935dd52

Choose a tag to compare

  • Fixed submitting forms via GET (#63).

1.8.1

12 Apr 14:21
1.8.1
d0b42d0

Choose a tag to compare

  • Reverted a commit that got into 1.8.0 as a result of a brain fart.