Skip to content

Releases: exogen/ava-nock

v2.1.0

15 Apr 07:06
Compare
Choose a tag to compare

New Feature

This version adds better support for filtering sensitive values in fixtures. All aspects of requests and responses can now be filtered: paths, request & response headers, and request & response bodies.

  • New config option headerFilter for filtering request and response headers.
  • New config option requestBodyFilter for filtering request bodies. Thanks to @alizahid for the original implementation and feature request!
  • New config option responseBodyFilter for filtering response bodies.

v2.0.0

13 Apr 23:19
Compare
Choose a tag to compare

Breaking Change

  • The minimum supported Node.js version is now v12.20.0.
  • The minimum supported AVA version is now v1.0.0.
  • The default fixture directory is now the same as AVA’s snapshot directory, via AVA’s meta.snapshotDirectory value. If you’d like to use the same directory as before, there is a new fixtureDir config option.

New Feature

  • The fixture directory is now configurable via the fixtureDir option.
  • Support for decoding compressed Brotli responses.

Bug Fix

  • Fix detection of the current test file by switching to AVA’s meta.file value. Previously, this could sometimes be incorrect in situations where Node.js was actually running a different file than the actual source file of the test (due to transpilation, source maps, etc.).

Internal

  • Updated all dependencies.

v2.0.0-beta.4

13 Apr 07:41
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release
  • Add support for Brotli decoding.

v2.0.0-beta.3

13 Apr 03:49
Compare
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release
  • Add more debug logging.

v2.0.0-beta.2

13 Apr 03:25
Compare
Choose a tag to compare
v2.0.0-beta.2 Pre-release
Pre-release

Breaking Change

  • The default fixture directory is now the same as AVA’s snapshot directory, via AVA’s meta.snapshotDirectory value.

New Feature

  • The relative fixture directory is now configurable via the fixtureDir option.

v2.0.0-beta.1

12 Apr 08:03
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release
  • All dependencies have been upgraded.
  • peerDependencies has been updated to support AVA v1, v2, and v3.
  • Please report any issues!

v1.0.0

04 Aug 23:09
Compare
Choose a tag to compare

Changed

  • Node 8.10 is now the minimum supported version of Node.
  • All dependencies have been upgraded.

v0.3.0

15 Nov 09:03
Compare
Choose a tag to compare

Changed

  • Use AVA_PATH to import AVA, if set.
  • Fixtures will now be stored in a fixtures directory if the test file lives in a test or tests directory, and a __fixtures__ directory if it lives in a __tests__ directory. This matches how AVA snapshots are stored.

v0.2.0

15 Nov 05:35
Compare
Choose a tag to compare

Added

  • New pathFilter config option.

v0.1.1

15 Nov 05:34
Compare
Choose a tag to compare

Remove accidental unused dependencies.