Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 4.28 KB

CHANGELOG.md

File metadata and controls

47 lines (36 loc) · 4.28 KB

1.0.0 (2020-05-05)

Features

  • Add PATCH method QA-97 (031f11a)

  • Allow to match requests by body QA-95 (a429531)

  • FE-132 add mock.waitForRequestsCount() (142c6b2)

  • FE-88 initial release (5593d92)

  • QA-111 add "params" to request object passed to mocked response function (0784782)

  • QA-126 Add compability with playwright (9970eaf)

  • QA-126 Add playwright tests + upgrade playwright to 0.12 (4dc1e8a)

  • QA-14 Implemented matching most recently added mock first. (9699ef0)

  • QA-15 Added http methods for GET,POST,PUT,DELETE with filter as object or string. Renamed addRestMock to mockREST. (e4c0444)

  • QA-16 Added path variables handling feature. (90258be)

  • QA-17 Added once option. (9be9418)

  • QA-20 add support for CORS requests (4e11645)

  • QA-20 allow to specify responses as functions (b3c3622)

  • QA-20 fixes to CORS (9986645)

  • QA-20 fixes to CORS #2 (62d40ab)

  • QA-20 fixes to CORS #3 (2ea7efb)

  • Mocketeer: QA-12 mocketeer.getRequest throws error when matching request was not found (6d37898)

  • Mocketeer: QA-13 add Mocketeer.setup static method, depracate mocketeer.activate (a02881a)

  • Mocketeer: QA-20 allow to intercept requests of any type (4d0a644)

  • feat!: QA-96 mocketeer.mock requires HTTP Method as parameter (b247ea5)

  • chore!: Rename mock.getRequest to mock.waitForRequest QA-94 (a0af628)

Bug Fixes

  • FE-88 improve documentation and debug info (80128a3)
  • FE-88 minor improvements to debug mode (5708c58)
  • QA-100 stalled request when mocked body is empty and using ppter 2.0+ (a823a61)
  • QA-93 Upgrade path-to-regex (0c0ffd1)

BREAKING CHANGES

    • mocketeer.mock no longer defaults to GET method, but requires to be provided with HTTP method explicitly
  • rename RequestMatcherObject to RequestFilter
  • For consistency with puppeteer and playwright methods .waitForX rename mock.getRequest => mock.waitForRequest
  • Mocketeer: remove deprecated API methods
  • Mocketeer: rename types
  • Mocketeer: can mock any requests, not just FETCH/XHR calls
  • Changed order for adding mocks - newest first.