npm nock 13.0.0
v13.0.0

latest releases: 14.0.0-beta.6, 13.5.4, 14.0.0-beta.5...
3 years ago

See the Migration Guide

Breaking changes

  1. Scope.log has been removed. Use the debug library when debugging failed matches.

  2. socketDelay has been removed. Use delayConnection instead.

  3. delay, delayConnection, and delayBody are now setters instead of additive.

  4. When recording, skipping body matching using * is no longer supported by nock.define.
    Set the definition body to undefined instead.

  5. ClientRequest.abort() has been updated to align with Node's native behavior.
    This could be considered a feature, however, it created some subtle differences that are not backwards compatible. Refer to the migration guide for details.

  6. Playback of a mocked responses will now never happen until the 'socket' event is emitted.

Don't miss a new nock release

NewReleases is sending notifications on new releases.