From 9f85089781e16bfa3f1e4cfa6d1c7894c2353f60 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:45:05 +0000 Subject: [PATCH] chore: release main --- .release-please-manifest.json | 5 ++-- package-lock.json | 4 +-- packages/codemods/CHANGELOG.md | 42 ++++++++++++++++++++++++++++++++ packages/codemods/package.json | 2 +- packages/fetch-mock/CHANGELOG.md | 8 ++++++ packages/fetch-mock/package.json | 2 +- 6 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 packages/codemods/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e6e7980c..bff9bf5b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,6 +1,7 @@ { "packages/core": "0.7.0", - "packages/fetch-mock": "11.1.3", + "packages/fetch-mock": "11.1.4", "packages/vitest": "0.1.4", - "packages/jest": "0.1.0" + "packages/jest": "0.1.0", + "packages/codemods": "0.1.0" } diff --git a/package-lock.json b/package-lock.json index cfdd6d18..aa105d2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26558,7 +26558,7 @@ }, "packages/codemods": { "name": "@fetch-mock/codemods", - "version": "0.0.0", + "version": "0.1.0", "license": "MIT", "dependencies": { "jscodeshift": "^17.0.0" @@ -26583,7 +26583,7 @@ } }, "packages/fetch-mock": { - "version": "11.1.3", + "version": "11.1.4", "license": "MIT", "dependencies": { "@types/glob-to-regexp": "^0.4.4", diff --git a/packages/codemods/CHANGELOG.md b/packages/codemods/CHANGELOG.md new file mode 100644 index 00000000..1a8787cb --- /dev/null +++ b/packages/codemods/CHANGELOG.md @@ -0,0 +1,42 @@ +# Changelog + +## 0.1.0 (2024-09-19) + + +### Features + +* add an error to warn of calls() signature change ([5bf6f67](https://github.com/wheresrhys/fetch-mock/commit/5bf6f6765fe54a2eb0e1cc9424df02b721b9610c)) +* add an error to warn of lastCall() signature change ([62fc48c](https://github.com/wheresrhys/fetch-mock/commit/62fc48c8cce70267fe044088ca6cafab4139766c)) +* allow manually specifying extra variables that hold fetch-mock instances ([317ede7](https://github.com/wheresrhys/fetch-mock/commit/317ede7ea305fd9df9c498444df2b7a0e1350449)) +* can identify fetch mock in esm ([e523711](https://github.com/wheresrhys/fetch-mock/commit/e523711b5c05e2adeea96a4478c681c603b329b4)) +* codemod fro fallbackToNetwork option ([c272f65](https://github.com/wheresrhys/fetch-mock/commit/c272f65e903e6e835edbf3a087def0aded796b30)) +* codemod reset() ([a96f62b](https://github.com/wheresrhys/fetch-mock/commit/a96f62b60e95e691dd0f783de419db01a1b92302)) +* codemod resetHistory to clearHistory ([5f1203e](https://github.com/wheresrhys/fetch-mock/commit/5f1203ebfcc173e3293c61e24c7348c5810f1a2e)) +* codemod restore() ([21e54af](https://github.com/wheresrhys/fetch-mock/commit/21e54afbd6eeb47aff1cff4f9ac367b89da4198f)) +* converted codemods to use tsx parser for greater reuse ([376d5c3](https://github.com/wheresrhys/fetch-mock/commit/376d5c3de38a74f38b320f8b3dacffec44993861)) +* finished implementing reset method codemods ([e9d59df](https://github.com/wheresrhys/fetch-mock/commit/e9d59dff405625289eb1378a7943d1cde1950125)) +* first codemod for editing an option implemented ([6ec5575](https://github.com/wheresrhys/fetch-mock/commit/6ec55750ce0eeb1a79ce3559c7d25dbaf9919650)) +* lastOptions() and lastResponse() ([300e0b8](https://github.com/wheresrhys/fetch-mock/commit/300e0b83e0bd5be40c975ace46af86166b7c75e1)) +* lastUrl() codemod implemented ([a115a27](https://github.com/wheresrhys/fetch-mock/commit/a115a2733defc8dbca0554abfaa25750daa9f8fe)) +* midway through implementing codemods for sandbox ([dbb0b43](https://github.com/wheresrhys/fetch-mock/commit/dbb0b431b8d1894d032236199ae206f7790dbb2a)) +* more option codemods ([23201b0](https://github.com/wheresrhys/fetch-mock/commit/23201b0f3ff34f04ae80152847d35d228550ca31)) +* progress on codemod to alter global options ([f790205](https://github.com/wheresrhys/fetch-mock/commit/f7902051c992c869f34481959fef8e59468a7f6d)) +* remiving options from methods more or less works ([e976e7e](https://github.com/wheresrhys/fetch-mock/commit/e976e7edc87927d66570ca41c1a10187d22566e5)) +* remove codemods for sandbox() method ([9a06c1e](https://github.com/wheresrhys/fetch-mock/commit/9a06c1e4386b8d4c33f6b7fea50be49634308fb4)) +* set up basic codemods package structure ([a76cee9](https://github.com/wheresrhys/fetch-mock/commit/a76cee9887d4e2bd56cdb0564ca787190f028aff)) +* support converting getAny() etc ([1ef70ec](https://github.com/wheresrhys/fetch-mock/commit/1ef70ec9bfc7364712f900655bd6f194e2c45b0a)) +* use get("*") as a better replacement for getAny() ([3b7daf7](https://github.com/wheresrhys/fetch-mock/commit/3b7daf71663662265c63169ba036b13e0856b053)) + + +### Bug Fixes + +* avoided converting jest.mock() to jest.route() ([a42817b](https://github.com/wheresrhys/fetch-mock/commit/a42817b392cc035653f0be149a6d51b0dcc53de4)) +* changed to use j.ObjectProperty instead of j.Property ([78c2e35](https://github.com/wheresrhys/fetch-mock/commit/78c2e3541e0be25d267ea47c28ee53641634ce4a)) +* defined types for codemod ([0c3debf](https://github.com/wheresrhys/fetch-mock/commit/0c3debf039d052a92de590cce3ca9d772a76a880)) +* reinstated codemods for options on all methods ([3a610b7](https://github.com/wheresrhys/fetch-mock/commit/3a610b7fce666cb2954715d28c2732ccbabcb960)) + + +### Documentation Changes + +* document how to use transform with jodeshift ([517a6ac](https://github.com/wheresrhys/fetch-mock/commit/517a6ac297e1d5c5bad194a771fa4e1419bd10ad)) +* start documenting usage of codemods ([f4a3c39](https://github.com/wheresrhys/fetch-mock/commit/f4a3c39de4540c7338d65ca59636b413bef11964)) diff --git a/packages/codemods/package.json b/packages/codemods/package.json index 34da6ba6..56429b2b 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -1,7 +1,7 @@ { "name": "@fetch-mock/codemods", "description": "Codemods for upgrading fetch-mock", - "version": "0.0.0", + "version": "0.1.0", "main": "./src/index.js", "type": "commonjs", "engines": { diff --git a/packages/fetch-mock/CHANGELOG.md b/packages/fetch-mock/CHANGELOG.md index 6dae0bd6..765e328e 100644 --- a/packages/fetch-mock/CHANGELOG.md +++ b/packages/fetch-mock/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [11.1.4](https://github.com/wheresrhys/fetch-mock/compare/fetch-mock-v11.1.3...fetch-mock-v11.1.4) (2024-09-19) + + +### Documentation Changes + +* another occurrence of the cheatsheet ref ([875e4f6](https://github.com/wheresrhys/fetch-mock/commit/875e4f6bd7b50229b6f83e14075c1a3fcd6210a4)) +* fix link to cheatsheet ([33e75b1](https://github.com/wheresrhys/fetch-mock/commit/33e75b1cd2391c9d4c1c9770c3be4fb771f7f726)) + ## [11.1.3](https://github.com/wheresrhys/fetch-mock/compare/fetch-mock-v11.1.2...fetch-mock-v11.1.3) (2024-08-28) diff --git a/packages/fetch-mock/package.json b/packages/fetch-mock/package.json index 4cda00da..bffb1060 100644 --- a/packages/fetch-mock/package.json +++ b/packages/fetch-mock/package.json @@ -1,7 +1,7 @@ { "name": "fetch-mock", "description": "Mock http requests made using fetch", - "version": "11.1.3", + "version": "11.1.4", "exports": { "browser": "./dist/esm/index.js", "import": {