Skip to content

Latest commit

 

History

History
120 lines (59 loc) · 7.19 KB

CHANGELOG.md

File metadata and controls

120 lines (59 loc) · 7.19 KB

Changelog

0.8.0 (2025-03-07)

Features

0.7.1 (2025-03-03)

Bug Fixes

  • Ensure baseUrl is properly applied to route matching (#71) (96d103c)

0.7.0 (2025-02-27)

Features

  • Implement fetch with mode: 'same-origin' (9add18f)
  • Implement fetch with mode: "same-origin" (#65) (9add18f)
  • Pass more detail to response creator functions (#67) (dc78d00)

Bug Fixes

  • CORS errors should be TypeErrors (#70) (98a46ba)
  • Ensure Access-Control-Allow-Origin header contains valid origin (#68) (0e529ee)

0.6.0 (2025-02-21)

Features

  • Add FetchMocker#mockObject() method to mock non-global fetch (#59) (43495c5)
  • Implement 'no-cors' mode for fetch (#62) (d394e75)

Bug Fixes

  • Ensure Response#mode is 'cors' when Request#type is 'cors' (#60) (910bc87)

0.5.2 (2025-02-19)

Bug Fixes

  • Limit Access-Control-Request-Headers to unsafe headers only (#53) (a604e46)
  • Unsafe CORS content-type throws error without Access-Control-Allow-Headers (#55) (ab3136b), closes #41

0.5.1 (2025-02-13)

Bug Fixes

  • Ensure forbidden CORS headers throw an error (#51) (e472e14), closes #40
  • Request without a body should not throw an error (#49) (0b6b981), closes #48

0.5.0 (2025-02-12)

Features

  • Add response creator function support (#45) (1af9805)
  • Mocking credentialed requests (#39) (cacb6d0)

0.4.0 (2025-02-05)

Features

Bug Fixes

0.3.0 (2025-01-31)

Features

  • Add ability to delay generating a response (#28) (9a384b3)
  • Implement Access-Control-Expose-Headers (#31) (60b5fd0)

Bug Fixes

0.2.0 (2025-01-29)

Features

Bug Fixes

  • deps: update dependency sharp to ^0.33.0 (#11) (235ca34)
  • Ensure request ArrayBuffer body works (#23) (b561ad7)

0.1.0 (2025-01-25)

Features

  • Add baseUrl option to FetchMocker (541a6bc)
  • Add MockServer#traceReceive() method (1a77cf5)
  • Add support for CORS requests (#14) (b3d0323)
  • Add URL parameter matching (8481d81)
  • Fetch Mocker cheks for partial matches (d73d72c)

Bug Fixes