Releases: exogen/ava-nock
Releases · exogen/ava-nock
v2.1.0
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
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 newfixtureDir
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
- Add support for Brotli decoding.
v2.0.0-beta.3
- Add more debug logging.
v2.0.0-beta.2
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
- All dependencies have been upgraded.
peerDependencies
has been updated to support AVA v1, v2, and v3.- Please report any issues!
v1.0.0
v0.3.0
Changed
- Use
AVA_PATH
to import AVA, if set. - Fixtures will now be stored in a
fixtures
directory if the test file lives in atest
ortests
directory, and a__fixtures__
directory if it lives in a__tests__
directory. This matches how AVA snapshots are stored.