Skip to content

chore(deps): Bump jquery-mockjax from 2.7.0 to 3.0.1#876

Merged
tkirda merged 1 commit into
masterfrom
dependabot/npm_and_yarn/jquery-mockjax-3.0.1
May 22, 2026
Merged

chore(deps): Bump jquery-mockjax from 2.7.0 to 3.0.1#876
tkirda merged 1 commit into
masterfrom
dependabot/npm_and_yarn/jquery-mockjax-3.0.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 22, 2026

Bumps jquery-mockjax from 2.7.0 to 3.0.1.

Release notes

Sourced from jquery-mockjax's releases.

v3.0.1

This is release of version 3.x of the Mockjax library. Version 3 is a complete rewrite of the library. Please see the CHANGELOG for full details.

There may be breaking changes in this release, though the API has stayed mostly the same. Be sure to read the CHANGELOG to see both deprecated and potentially breaking changes.

v3.0.0-rc1

This is Release Candidate for v3.0.0 of the Mockjax library. Version 3 is a complete rewrite of the library. Please see the CHANGELOG for full details.

There may be breaking changes in this release, though the API has stayed mostly the same. Be sure to read the CHANGELOG to see both deprecated and potentially breaking changes.

Changelog

Sourced from jquery-mockjax's changelog.

2026-05-07 v3.0.1

  • Final release of v3.x
  • Updates to some dev dependencies and minor fixes to unit tests

2026-04-28 v3.0.0-rc1

  • Migrated all source code to modern JavaScript syntax.

  • Migrated to modern ES Modules and build system.

  • All mock handlers now have a unique id (UUID) versus sequential integer matching place in registration array.

  • retainAjaxCalls is now an integer that represents the number of ajax calls to retain (defaults to -1, meaning retain all); using a boolean is deprecated, but still supported.

  • Added followRedirects global setting which defaults to true (which was the previous functionality). Change this to false to return 3XX status codes from mock handlers and NOT follow them to their Location header.

  • statusText can now be an array when status is an array to randomly select a statusText for the response.

  • Added proper validation for all mock handler properties with more helpful error messages.

  • Added $.mockjax.clearAll(), $.mockjax.clearById(), and $.mockjax.clearByUrl() methods to replace unclear clear() method (deprecated, but still supported).

  • Added $.mockjax.resetSettings() method to reset global settings to defaults.

  • Added $.mockjax.validateSettings() method to validate global Mockjax settings (throws TypeError if not valid).

  • Changed headers in mock handler to responseHeaders to avoid confusion with requestHeaders mock handler matching property.

  • Added full unit test suite in addition to existing integration tests and improved tests for Nodejs and RequireJS.

  • Added code coverage tooling and minimums.

  • Improved documentation of previously undocumented features and nuances as well as updated guidance for contributors.

  • Added JSDoc blocks everywhere for better type checking during dev.

  • Added code linting during build process for consistent style and to catch code issues early.

  • Deprecated settings and methods:

    • Version 1.x of Mockjax is deprecated and will no longer be supported
    • The headers property on mock handlers and in global settings is deprecated (use responseHeaders in the same way).
    • The $.mockjax.handler(id) method is deprecated (use handlers([id])).
    • The $.mockjax.clear() method is deprecated (use the appropriate clearByXx() method).
    • The type matching property on mock handlers is deprecated (use method in the same way).
    • The proxyType settings on both global settings and mock handlers is deprecated (use proxyMethod in the same way).
    • Boolean values for retainAjaxCalls are deprecated (use integer values, -1 replicates deprecated true and 0 replicates deprecated false).
    • The logging setting is deprecated (use logLevel in the same way).
  • Potentially Breaking Changes:

    • NOTE: few of these are true breaking changes. We have kept the API almost entirely stable. That said, there were many changes in 3.x that could break your tests, especially if you were using workarounds or undocumented "features".
    • The global $.mockjaxSettings are now validated when the first mock handler is registered, throwing a TypeError if any of the settings are invalid and not registering the handler.
    • Passing no matching properties when registering a new handler will result in TypeError.
    • A mock responseXML that is invalid will now throw a TypeError in addition to triggering the jQuery "xmlParseError" error on $(document).
    • $.mockjaxSettings.log was removed (it was deprecated previously, use logger instead).
    • We now use UUIDs for handler IDs. If you were using the old integer IDs in a way that relied on them being sequentially numeric and matching the array of mock handler registrations, your code may break!
    • The default response headers no longer include "etag" or "content-type" unless necessary.
    • Mock data matching got more robust, which might break some mock handler matches.
    • The RegExp used for url wildcard matching ("/api/*") got a bit more specific in what constitutes a valid URL character, which might break some mock handler matches.
    • The clear and new clearByXx() methods now only clear out mocked ajax calls that match the cleared handlers (versus all mocked and unmocked calls as before). This could cause problems if you previously expected all retained mocked ajax calls to be removed when running clear(), and this may cause increased memory usage.
    • The handlers() method now deep clones each handler, which could have a performance impact if used to retrieve many handlers. It could also break your code if you modified mock handlers after registration.
    • When using a proxy, mockjax no longer uses the proxy request's status code for the mock response status if it was not set on the mock handler (will use the default: 200).
    • The timing of the toggle for the "fired" boolean on a mock handler changed to reflect mocking of redirects, which may affect what unfiredHandlers() returns in some edge cases.
    • RegExp URL matching with namespaces changed to ensure group matching with urlParams, which may affect code that was working around this issue.
    • The mock handler no longer tracks the cache, timeout, or global properties from the original ajax settings object.

... (truncated)

Commits
  • 7c869b4 bump to 3.0.1
  • dd2c900 Final updates for v3.0.0
  • 5c5c93d Merge pull request #379 from jakerella/dependabot/npm_and_yarn/ip-address-10.2.0
  • 10910ab Bump ip-address from 10.1.0 to 10.2.0
  • 274b1a3 Remove Mockjax 1.0 support and add jQuery 4.0 support
  • 7cb6831 Merge pull request #377 from jakerella/dependabot/npm_and_yarn/basic-ftp-5.3.1
  • 8141221 Merge pull request #378 from jakerella/dependabot/npm_and_yarn/follow-redirec...
  • 01d3838 Bump follow-redirects from 1.15.11 to 1.16.0
  • 3c2deb9 Bump basic-ftp from 5.2.0 to 5.3.1
  • 93ccdbc Merge pull request #376 from jakerella/mockjax-v3
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 22, 2026
@tkirda
Copy link
Copy Markdown
Member

tkirda commented May 22, 2026

@dependabot rebase

Bumps [jquery-mockjax](https://github.com/jakerella/jquery-mockjax) from 2.7.0 to 3.0.1.
- [Release notes](https://github.com/jakerella/jquery-mockjax/releases)
- [Changelog](https://github.com/jakerella/jquery-mockjax/blob/master/CHANGELOG.md)
- [Commits](jakerella/jquery-mockjax@v2.7.0...v3.0.1)

---
updated-dependencies:
- dependency-name: jquery-mockjax
  dependency-version: 3.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/jquery-mockjax-3.0.1 branch from e3df41a to 72d0813 Compare May 22, 2026 23:42
@tkirda tkirda merged commit f8dafe8 into master May 22, 2026
3 checks passed
@tkirda tkirda deleted the dependabot/npm_and_yarn/jquery-mockjax-3.0.1 branch May 22, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant