Skip to content

Releases: wheresrhys/fetch-mock

Simplified call filtering

23 Sep 11:36
cb50508
Compare
Choose a tag to compare

Feels like a big step forward in simplicity and power, emerging from the realisation that if a matcher is used to filter as a matcher after it's already been used to filter as a name of a route, then this will be a noop because only calls that satisfy the matcher will be included in the list to filter further

  • matches using name (or inferred identifier) first
  • If no routes have it as a name or identifier, just execute as a matcher
  • Finally, if there are options provided filter further by executing these as a route

Easier to think about, document and implement

Also removed filtering by method from .done() - in hindsight this was a poor idea to ever add

v7.0.0-alpha.6

04 Sep 06:45
Compare
Choose a tag to compare
publish alphas

options and Request made available in more consistent manner

30 Aug 21:21
5dc96e2
Compare
Choose a tag to compare

Matching on express path parameters

23 Aug 06:55
80520fc
Compare
Choose a tag to compare
v7.0.0-alpha.4

Update README.md

reset() -> resetHistory()

21 Aug 21:19
066e812
Compare
Choose a tag to compare
Merge pull request #352 from wheresrhys/resetBehavior

Reset behavior

v7.0.0-alpha.2

20 Aug 21:05
Compare
Choose a tag to compare

Prettier is a dev dependency

22 Jul 13:44
Compare
Choose a tag to compare
Move prettier to devDependencies (#333)

So users of fetch-mock don't install it. Thanks!

Use prettier for linting

17 Jul 19:55
5ce3729
Compare
Choose a tag to compare
v6.5.1

use prettier (#327)

Configure to always fallback to network

30 Jun 11:31
Compare
Choose a tag to compare
v6.5.0

Add global switch to always fallback to network (#323)

Update readme

09 Jun 17:14
609d335
Compare
Choose a tag to compare
v6.4.4

Update README.md