Skip to content

Releases: wheresrhys/fetch-mock

fetch-mock: v11.1.4

19 Sep 09:48
2d18b63
Compare
Choose a tag to compare

11.1.4 (2024-09-19)

Documentation Changes

  • another occurrence of the cheatsheet ref (875e4f6)
  • fix link to cheatsheet (33e75b1)

codemods: v0.1.0

19 Sep 09:48
2d18b63
Compare
Choose a tag to compare
codemods: v0.1.0 Pre-release
Pre-release

0.1.0 (2024-09-19)

Features

  • add an error to warn of calls() signature change (5bf6f67)
  • add an error to warn of lastCall() signature change (62fc48c)
  • allow manually specifying extra variables that hold fetch-mock instances (317ede7)
  • can identify fetch mock in esm (e523711)
  • codemod fro fallbackToNetwork option (c272f65)
  • codemod reset() (a96f62b)
  • codemod resetHistory to clearHistory (5f1203e)
  • codemod restore() (21e54af)
  • converted codemods to use tsx parser for greater reuse (376d5c3)
  • finished implementing reset method codemods (e9d59df)
  • first codemod for editing an option implemented (6ec5575)
  • lastOptions() and lastResponse() (300e0b8)
  • lastUrl() codemod implemented (a115a27)
  • midway through implementing codemods for sandbox (dbb0b43)
  • more option codemods (23201b0)
  • progress on codemod to alter global options (f790205)
  • remiving options from methods more or less works (e976e7e)
  • remove codemods for sandbox() method (9a06c1e)
  • set up basic codemods package structure (a76cee9)
  • support converting getAny() etc (1ef70ec)
  • use get("*") as a better replacement for getAny() (3b7daf7)

Bug Fixes

  • avoided converting jest.mock() to jest.route() (a42817b)
  • changed to use j.ObjectProperty instead of j.Property (78c2e35)
  • defined types for codemod (0c3debf)
  • reinstated codemods for options on all methods (3a610b7)

Documentation Changes

  • document how to use transform with jodeshift (517a6ac)
  • start documenting usage of codemods (f4a3c39)

vitest: v0.1.4

31 Aug 12:41
f2b0506
Compare
Choose a tag to compare
vitest: v0.1.4 Pre-release
Pre-release

0.1.4 (2024-08-31)

Bug Fixes

  • applied same type fixes to vitest wrapper (817af39)

jest: v0.1.0

31 Aug 12:41
f2b0506
Compare
Choose a tag to compare
jest: v0.1.0 Pre-release
Pre-release

0.1.0 (2024-08-31)

Features

  • new @fetch-mock/jest wrapper (93f35c6)
  • start implementing jest and vitest wrappers (804f885)

Bug Fixes

  • hooks into jest's global mock management functions (aaadda0)
  • one step closer to fixing types in jest wrapper (b69f595)

vitest: v0.1.3

30 Aug 10:06
6f2b9b2
Compare
Choose a tag to compare
vitest: v0.1.3 Pre-release
Pre-release

0.1.3 (2024-08-30)

Bug Fixes

  • force engine to be >=18.11.0 as this fixes an issue in proxying a response (dde5e6b)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @fetch-mock/core bumped from ^0.6.3 to ^0.7.0

core: v0.7.0

30 Aug 10:06
6f2b9b2
Compare
Choose a tag to compare
core: v0.7.0 Pre-release
Pre-release

0.7.0 (2024-08-30)

⚠ BREAKING CHANGES

  • remove sendAsJson option

Features

  • remove sendAsJson option (4b11fc4)
  • send content=length header whenever calculable (ef4c684)

Bug Fixes

  • force engine to be >=18.11.0 as this fixes an issue in proxying a response (dde5e6b)
  • handle all types of BodyInit correctly (0242ea2)

vitest: v0.1.2

29 Aug 17:56
7c74168
Compare
Choose a tag to compare
vitest: v0.1.2 Pre-release
Pre-release

0.1.2 (2024-08-29)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @fetch-mock/core bumped from ^0.6.2 to ^0.6.3

vitest: v0.1.1

29 Aug 17:50
7e2b0c0
Compare
Choose a tag to compare
vitest: v0.1.1 Pre-release
Pre-release

0.1.1 (2024-08-29)

Bug Fixes

  • add missing metadata to package.json files (4ab78b9)

Documentation Changes

  • add vitest as keyword to vitest package (9d6636e)

core: v0.6.3

29 Aug 17:56
7c74168
Compare
Choose a tag to compare
core: v0.6.3 Pre-release
Pre-release

0.6.3 (2024-08-29)

Documentation Changes

  • minor corrections (d77978a)
  • readme for @fetch-mock/core (5fd7c5a)
  • wrote a README for @fetch-mock/vitest (d2d1ea3)

fetch-mock: v11.1.3

28 Aug 20:22
7f50243
Compare
Choose a tag to compare

11.1.3 (2024-08-28)

Bug Fixes

  • add missing metadata to package.json files (4ab78b9)