Skip to content

Commit

Permalink
docs: document widespread use of CallLog
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 21, 2024
1 parent 8eea9f0 commit ffe60d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/blog/2024-07-21-introducing-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Related to the removal of inferred route names, matchers that are passed in to c

#### `CallLog`

Previously items in the call history were returned as `[url, options]` arrays, with a few additional properties added. Now they are returned as objects - `CallLog`s - that contain all information about the call and how it was handled.
Previously items in the call history were returned as `[url, options]` arrays, with a few additional properties added. Now they are returned as objects - `CallLog`s - that contain all information about the call and how it was handled. The `CallLog` interface is also the expected input for matcher functions and response builder functions.

#### `done()` uses route names

Expand All @@ -97,6 +97,7 @@ These are the new methods for resetting fetch mock to its default state. The nam

A replacement for `sandbox()` that eschews all the weird wiring that `.sandbox()` used. Possibly not very useful for the average user, but I use it a lot in my tests for fetch mock, so it stays :-).


## What's still to come

There are a bunch of [breaking changes](https://github.com/wheresrhys/fetch-mock/issues?q=is%3Aopen+is%3Aissue+label%3A%22breaking+change%22) I'd like to ship before getting to v1.0.0. I also want to give users an incentive to migrate so there are a variety of new features I'd like to add and bugs to fix. Have a look at [the issues list](https://github.com/wheresrhys/fetch-mock/issues) and vote for any you like.

0 comments on commit ffe60d8

Please sign in to comment.