Skip to content

Releases: wheresrhys/fetch-mock

route names can contain capitals

03 Oct 12:55
bbec30b
Compare
Choose a tag to compare
Merge pull request #378 from michaeldfallen/allow-caps-in-names

Support names that include capitals

express: matcher supports absolute urls

28 Sep 21:02
334fcc6
Compare
Choose a tag to compare
Merge pull request #372 from wheresrhys/express-absolute

fix express matching for absolute urls

really fix build

26 Sep 07:42
Compare
Choose a tag to compare
v7.0.5

update webpack-cli

try to fix build

26 Sep 07:30
b1b363e
Compare
Choose a tag to compare
Merge pull request #370 from wheresrhys/fix-qs-regression

fixes bug where routes only differing in qs threw errors

fixes bug where routes only differing in qs threw errors

25 Sep 12:13
b1b363e
Compare
Choose a tag to compare
Merge pull request #370 from wheresrhys/fix-qs-regression

fixes bug where routes only differing in qs threw errors

Removed superfluous treatment of non w3c Promises

24 Sep 13:36
ee3af32
Compare
Choose a tag to compare
Merge pull request #368 from wheresrhys/fix-await-test

fix dodgy use of stub promise in test

Remove beta tester prompt from readme

24 Sep 10:37
4715e34
Compare
Choose a tag to compare
v7.0.1

Update README.md

Version 7

24 Sep 10:36
f085135
Compare
Choose a tag to compare

Minor refactor

23 Sep 16:20
1ca5078
Compare
Choose a tag to compare
Merge pull request #366 from wheresrhys/smells

Smells

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