Skip to content

Releases: nock/nock

v13.0.7

30 Jan 03:13
0f7b52e
Compare
Choose a tag to compare

13.0.7 (2021-01-30)

Bug Fixes

  • recorder: escape single quotes in path of default output (#2137) (0f7b52e)

v13.0.6

20 Jan 20:05
dc04694
Compare
Choose a tag to compare

13.0.6 (2021-01-20)

Bug Fixes

  • intercept: handle global flags during regexp matching (#2135) (dc04694), closes #2134

v13.0.5

11 Nov 03:33
20e9f8a
Compare
Choose a tag to compare

13.0.5 (2020-11-11)

Bug Fixes

v13.0.4

11 Aug 18:09
6260217
Compare
Choose a tag to compare

13.0.4 (2020-08-11)

Bug Fixes

  • Parallel requests on same Interceptor are exposed correctly in reply functions (#2056) (6260217)

v13.0.3

27 Jul 16:53
ac6ebbb
Compare
Choose a tag to compare

13.0.3 (2020-07-27)

Bug Fixes

  • data comparison with undefined object values (#2049) (ac6ebbb)

v13.0.2

01 Jul 19:05
3b24821
Compare
Choose a tag to compare

13.0.2 (2020-07-01)

Bug Fixes

  • intercept: mark Interceptors consumed immediately (#2033) (3b24821)

v13.0.1

01 Jul 00:46
e432ac5
Compare
Choose a tag to compare

13.0.1 (2020-07-01)

Bug Fixes

  • allow Content-Type request introspection when header is an array (#2010) (e432ac5), closes #2009

v13.0.0

15 Jun 16:11
ce6809f
Compare
Choose a tag to compare

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.

v13.0.0-beta.5

14 May 14:36
46e004c
Compare
Choose a tag to compare
v13.0.0-beta.5 Pre-release
Pre-release

13.0.0-beta.5 (2020-05-14)

Bug Fixes

  • ClientRequest: Use native abort and destroy (#2000) (46e004c)

v13.0.0-beta.4

02 May 13:58
6a5a3cf
Compare
Choose a tag to compare
v13.0.0-beta.4 Pre-release
Pre-release

13.0.0-beta.4 (2020-05-02)

Features

BREAKING CHANGES

  • socketDelay has been removed. Use delayConnection instead.
  • delay, delayConnection, and delayBody are now setters instead of additive.
    example:
nock('http://example.com')
  .get('/')
  .delay(1)
  .delay({ head: 2, body: 3 })
  .delayConnection(4)
  .delayBody(5)
  .delayBody(6)
  .reply()

Previously, the connection would have been delayed by 7 and the body delayed by 14.
Now, the connection will be delayed by 4 and the body delayed by 6.