Nock v13.0.0 Release Notes

Release Date: 2020-06-15 // almost 4 years ago
  • See the Migration Guide

    ๐Ÿ’ฅ Breaking changes

    ๐Ÿšš Scope.log has been removed. Use the debug library when debugging failed matches.

    ๐Ÿšš socketDelay has been removed. Use delayConnection instead.

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

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

    โšก๏ธ 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.

    ๐Ÿคก Playback of a mocked responses will now never happen until the 'socket' event is emitted.