Skip to content

codemods: v0.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 19 Sep 09:48
2d18b63

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)