Skip to content

Releases: jakerella/jquery-mockjax

Update license, dev dependencies, and testing

17 Feb 22:55
4ca7ace
Compare
Choose a tag to compare

See PR #361. This release does not change the source code, but because the development dependencies have been updated (and they were very out of date), the minified version has changed significantly.

You should test thoroughly if you use the minified version of Mockjax!

Remove IE 9 & 10 support; add support for regex URLs with namespace

22 Aug 17:58
2a143bc
Compare
Choose a tag to compare

2020-08-22 v2.6.0

  • Removed support for IE 9 & 10
  • Removed unused config for code climate
  • Updated dev dependencies to fix browserstack and local test run issues
  • Added support for regex url matching when using a namespace (thanks @gregid)

Header Bug Fix

30 Mar 16:29
21c171e
Compare
Choose a tag to compare

This release fixes a minor bug encountered with testing with jQuery 3.4.1 with the capitalization of headers.

Browserstack fixes and reordering of mock handlers

29 Jul 18:42
6b29cbd
Compare
Choose a tag to compare

This release fixes some issues with the automated Browserstack testing and adds an option to reorder the mock handlers from first-in to last-in.

Switch to Chrome Headless for Testing and add Variable Status Codes

17 Jun 23:35
6ef8655
Compare
Choose a tag to compare

This update adds a new feature: an array of status codes in the mock response.

It also updates the entire test suite to using Chrome Headless for the automated tests rather than PhantomJS since it has been deprecated.

Testing and Documentation Updates

15 Sep 20:39
Compare
Choose a tag to compare

This is a patch release to include testing for jQuery 3.x and some testing and documentation around tools like Browserify and webpack. Also included is an update to the keywords in the package.json file to (hopefully) get us back into the jQuery plugin registry.

Efficiency gains, logging updates, and bug fixes

14 Jun 19:35
Compare
Choose a tag to compare

This release brings with it numerous bug fixes, both to the source code and the tests. There are also a few new features added to the API:

  • You can now indicate that ajax calls should not be retained (thanks to @suchipi):
    $.mockjaxSettings.retainAjaxCalls = false;
  • Refactored logging: we now have log levels built in with more messages sent. You can adjust the log level that Mockjax itself will use, or you can entirely overwrite the logger. While you could do this before, the logger now supports typical log methods on an object like the console uses. This makes it interact with other logging options such as Winston much cleaner.
  • Added ability for data property matching to be a function, and thus dynamic (thanks to @koorgoo)
  • Added ability to pass in array of mocks in addition to single mock handlers (thanks again @koorgoo)

Bug fix release

07 Feb 22:56
Compare
Choose a tag to compare

This release fixes a number of small bugs that had been waiting for some time (see the CHANGELOG) for more information. The newest 1.x branch of jQuery was also added to our test suite, and tests were reorganized to make them easier to maintain and to test specific features with.

URL namespaces, bug fixes, and test updates

23 Jan 23:32
Compare
Choose a tag to compare

This version includes a big update to the QUnit tests and the testing setup. In addition to updating the QUnit version, we're now using the new API and the tests are a bit more mainatainable and easier to find. Additionally, there were some bug fixes for cross domain requests and proxy data. And we have a new feature: global URL namespaces!

Thanks to @danpaz you can now do:

$.mockjaxSettings.namespace = "/api/v1";
$.mockjax({
  url: "/rest"
});
$.mockjax({
  url: "/foobar"
});

$.ajax({
  url: '/api/v1/rest',
  // ...
});
$.ajax({
  url: '/api/v1/foobar',
  // ...
});

Many thanks to the folks that helped with the work in this release: @danpaz, @stas-vilchik, @udnisap, @gyoshev, @LeopoldoFu, @r4j4h, and @ScottONeal

Name fix

14 Jun 17:33
Compare
Choose a tag to compare

Apparently when we published the 2.0.0-beta the name in the package.json file was "jquery.mockjax" ... Unfortunately this was a mistake. The name does in fact follow popular convention of hyphenated names in npm (and bower). Thus we have changed the name and deprecated the old package on npm.