Skip to content

Releases: ctimmerm/axios-mock-adapter

v1.18.1

22 Mar 22:23
Compare
Choose a tag to compare
  • Don't run bundle size test in prepublish, which prevented unminified umd bundle to be included in the npm package (e047ae2)

v1.18.0

22 Mar 10:34
Compare
Choose a tag to compare
  • Support streams and buffers as a mocked response (b69fc6f)
  • Add request object to response (0ba1ad3)
  • Set isAxiosError property on errors (239ddda)
  • Make response type generic (b493d9c)
  • Add option to pass through unmatched requests to axios (914979f)
  • Add support for asymmetric matchers (0561369)
  • Add Options handler (51eea7c)
  • Add abortRequest and abortRequestOnce (8ccdef2)
  • Use timeoutErrorMessage if provided (262c224)

v1.17.0

02 Jul 16:54
Compare
Choose a tag to compare
  • Add resetHandlers and resetHistory types (456d085)
  • Declare resetHistory method in MockAdapter class (9064f2e)
  • Fix timeout, timeoutOnce, networkError, networkErrorOnce TS typedefs (7bd34fb)
  • Make sure interceptors are only called once when using passThrough (fdb32dd)
  • Correctly handle baseURL when using passthrough (fdb32dd)

v1.16.0

02 Jan 10:11
Compare
Choose a tag to compare
  • Use a local variable instead of modifying config.url (8abf4a5)
  • Add networkErrorOnce and timeoutOnce (4a0e874)
  • Check for functions with typeof (0901797)
  • Implement redirect mocking (447c64b)
  • Add list as an http verb (3aaa145)
  • Improved TypeScript type definitions (592b400, 027a821, 677f1f1)

v1.15.0

26 Aug 10:09
Compare
Choose a tag to compare
  • support for mocks when an interceptor retries a request (#119) (dd8b660)
  • Implemented history to record all calls to the mock (#124) (2eb55cc)

v1.14.1

26 Aug 10:08
Compare
Choose a tag to compare
  • Fix replyOnce when using a function that returns a response. (93a0ae3c)

v1.14.0

26 Aug 10:07
Compare
Choose a tag to compare
  • Investigating new handlers structure (#115) (84e343e)

v1.13.1

26 Aug 10:01
Compare
Choose a tag to compare

v1.13.0

26 Aug 09:59
Compare
Choose a tag to compare
  • Existing mock should be overwritten when new mock is defined (#109) (92ca8e3)
  • add support for matchers on the concatenation of the baseURL and url properties (fixes #74) (#107) (a2dd15f)

v1.12.0

26 Aug 09:53
Compare
Choose a tag to compare