From 8f1a3da55caeee3df75853042e57978c45513f18 Mon Sep 17 00:00:00 2001 From: Rinat Zaripov Date: Fri, 5 Jan 2024 22:54:41 +1100 Subject: [PATCH] chore: update versions (#10) Co-authored-by: github-actions[bot] --- .changeset/angry-gorillas-serve.md | 5 ---- .changeset/chilled-rocks-drive.md | 10 ------- .changeset/curvy-baboons-cover.md | 17 ------------ .changeset/dirty-maps-pump.md | 6 ----- .changeset/few-lobsters-suffer.md | 12 --------- .changeset/hip-hotels-jump.md | 6 ----- .changeset/kind-gifts-tease.md | 6 ----- .changeset/large-crews-change.md | 6 ----- .changeset/lovely-berries-tickle.md | 5 ---- .changeset/pink-books-yawn.md | 10 ------- .changeset/pink-lions-report.md | 5 ---- packages/refactor-bot/CHANGELOG.md | 41 +++++++++++++++++++++++++++++ packages/refactor-bot/package.json | 2 +- 13 files changed, 42 insertions(+), 89 deletions(-) delete mode 100644 .changeset/angry-gorillas-serve.md delete mode 100644 .changeset/chilled-rocks-drive.md delete mode 100644 .changeset/curvy-baboons-cover.md delete mode 100644 .changeset/dirty-maps-pump.md delete mode 100644 .changeset/few-lobsters-suffer.md delete mode 100644 .changeset/hip-hotels-jump.md delete mode 100644 .changeset/kind-gifts-tease.md delete mode 100644 .changeset/large-crews-change.md delete mode 100644 .changeset/lovely-berries-tickle.md delete mode 100644 .changeset/pink-books-yawn.md delete mode 100644 .changeset/pink-lions-report.md create mode 100644 packages/refactor-bot/CHANGELOG.md diff --git a/.changeset/angry-gorillas-serve.md b/.changeset/angry-gorillas-serve.md deleted file mode 100644 index beff7d3..0000000 --- a/.changeset/angry-gorillas-serve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: prevent pnpm from asking questions when install command is run diff --git a/.changeset/chilled-rocks-drive.md b/.changeset/chilled-rocks-drive.md deleted file mode 100644 index 7f25b6b..0000000 --- a/.changeset/chilled-rocks-drive.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'refactor-bot': patch ---- - -feat: this one introduces a feature which allows refactor-bot to perform -aggregation and other more advanced analytics in the codebase - -We ask the model to generate a script for us that can use `ts-morph` directly -and execute map/reduce in the repository. The script is ran in a separate -process for a bit of safety and can also be moved to a Docker container. diff --git a/.changeset/curvy-baboons-cover.md b/.changeset/curvy-baboons-cover.md deleted file mode 100644 index 1d6ac1a..0000000 --- a/.changeset/curvy-baboons-cover.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'refactor-bot': patch ---- - -refactor: the caching layer of the refactor bot now supports events - -The events make it easier for separation of concerns between modules. - -For example, it now allows us to collect refactor results from multiple layers -of code without having to pass around mutable references. - -This also allows us to measure the performance of the refactor bot and calculate -the costs associated with OpenAI api. - -All of this to prepare for the refactor bot to have automatically evaluate -itself and setup benchmarks that could be used to further measure and improve -it's performance. diff --git a/.changeset/dirty-maps-pump.md b/.changeset/dirty-maps-pump.md deleted file mode 100644 index fed4a1c..0000000 --- a/.changeset/dirty-maps-pump.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: sanitised result of the functions to exclude user's repository path from -the output of the functions diff --git a/.changeset/few-lobsters-suffer.md b/.changeset/few-lobsters-suffer.md deleted file mode 100644 index 7f01b7a..0000000 --- a/.changeset/few-lobsters-suffer.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: introduced a parameter which allows us to control how TypeScript projects -are loaded in monorepo scenarios - -Ie if `useCombinedTsMorphProject` is `true` then the original strategy is used - -where we load all TypeScript projects into a single ts-morph `Project`. This -allows cross-project references to be easily found and traced. The disadvantage -of this approach is that it might not just work if projects settings are -different. diff --git a/.changeset/hip-hotels-jump.md b/.changeset/hip-hotels-jump.md deleted file mode 100644 index e585a78..0000000 --- a/.changeset/hip-hotels-jump.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: format function would leave one variable unformatted when it is preceeded -with an empty string diff --git a/.changeset/kind-gifts-tease.md b/.changeset/kind-gifts-tease.md deleted file mode 100644 index 10a07c6..0000000 --- a/.changeset/kind-gifts-tease.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: the references function would return empty array when includeFilePaths -parameter is used for a node built-in diff --git a/.changeset/large-crews-change.md b/.changeset/large-crews-change.md deleted file mode 100644 index 89df296..0000000 --- a/.changeset/large-crews-change.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: the package manager not being determined correctly if "packageManager" -field is specified in the package.json diff --git a/.changeset/lovely-berries-tickle.md b/.changeset/lovely-berries-tickle.md deleted file mode 100644 index 92f2538..0000000 --- a/.changeset/lovely-berries-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: formatting going to infinite cycle if the values contain placeholders diff --git a/.changeset/pink-books-yawn.md b/.changeset/pink-books-yawn.md deleted file mode 100644 index 0627769..0000000 --- a/.changeset/pink-books-yawn.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: module imports function is now smarter and doesn't include results from -in-repo modules that import themselves - -This should ensure that when we _ are looking for imports of "package" where the -"package" _ is one of the monorepo packages - we do not include itself importing -its own internal files. diff --git a/.changeset/pink-lions-report.md b/.changeset/pink-lions-report.md deleted file mode 100644 index afb8a4c..0000000 --- a/.changeset/pink-lions-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'refactor-bot': patch ---- - -fix: added new GPT4 models to the list of possible choices diff --git a/packages/refactor-bot/CHANGELOG.md b/packages/refactor-bot/CHANGELOG.md new file mode 100644 index 0000000..05554cd --- /dev/null +++ b/packages/refactor-bot/CHANGELOG.md @@ -0,0 +1,41 @@ +# refactor-bot + +## 0.0.0 + +### Patch Changes + +- [#7](https://github.com/zaripych/gpt-refactor-bot/pull/7) [`5caf325`](https://github.com/zaripych/gpt-refactor-bot/commit/5caf325099513b5dbe58d1fcc8b61bb060be5e14) Thanks [@zaripych](https://github.com/zaripych)! - fix: prevent pnpm from asking questions when install command is run + +- [#6](https://github.com/zaripych/gpt-refactor-bot/pull/6) [`b7ba5a3`](https://github.com/zaripych/gpt-refactor-bot/commit/b7ba5a375fb62cae6ce95ef1f8848694688c9a84) Thanks [@zaripych](https://github.com/zaripych)! - feat: this one introduces a feature which allows refactor-bot to perform aggregation and other more advanced analytics in the codebase + + We ask the model to generate a script for us that can use `ts-morph` directly and execute map/reduce in the repository. The script is ran in a separate process for a bit of safety and can also be moved to a Docker container. + +- [#8](https://github.com/zaripych/gpt-refactor-bot/pull/8) [`438ef72`](https://github.com/zaripych/gpt-refactor-bot/commit/438ef72319a914aa55bd1f9bba2523de7aba0b88) Thanks [@zaripych](https://github.com/zaripych)! - refactor: the caching layer of the refactor bot now supports events + + The events make it easier for separation of concerns between modules. + + For example, it now allows us to collect refactor results from multiple layers of code without having to pass around mutable references. + + This also allows us to measure the performance of the refactor bot and calculate the costs associated with OpenAI api. + + All of this to prepare for the refactor bot to have automatically evaluate itself and setup benchmarks that could be used to further measure and improve it's performance. + +- [#2](https://github.com/zaripych/gpt-refactor-bot/pull/2) [`2d7df8e`](https://github.com/zaripych/gpt-refactor-bot/commit/2d7df8e8d8aa66d3e3817e3865baee87556c2c70) Thanks [@zaripych](https://github.com/zaripych)! - fix: sanitised result of the functions to exclude user's repository path from the output of the functions + +- [#2](https://github.com/zaripych/gpt-refactor-bot/pull/2) [`b04ab6b`](https://github.com/zaripych/gpt-refactor-bot/commit/b04ab6bd8a6514ac41274b6eddfd54a34d61e5fb) Thanks [@zaripych](https://github.com/zaripych)! - fix: introduced a parameter which allows us to control how TypeScript projects are loaded in monorepo scenarios + + Ie if `useCombinedTsMorphProject` is `true` then the original strategy is used - where we load all TypeScript projects into a single ts-morph `Project`. This allows cross-project references to be easily found and traced. The disadvantage of this approach is that it might not just work if projects settings are different. + +- [#7](https://github.com/zaripych/gpt-refactor-bot/pull/7) [`5caf325`](https://github.com/zaripych/gpt-refactor-bot/commit/5caf325099513b5dbe58d1fcc8b61bb060be5e14) Thanks [@zaripych](https://github.com/zaripych)! - fix: format function would leave one variable unformatted when it is preceeded with an empty string + +- [#7](https://github.com/zaripych/gpt-refactor-bot/pull/7) [`5caf325`](https://github.com/zaripych/gpt-refactor-bot/commit/5caf325099513b5dbe58d1fcc8b61bb060be5e14) Thanks [@zaripych](https://github.com/zaripych)! - fix: the references function would return empty array when includeFilePaths parameter is used for a node built-in + +- [#3](https://github.com/zaripych/gpt-refactor-bot/pull/3) [`401d3b5`](https://github.com/zaripych/gpt-refactor-bot/commit/401d3b5a7094d614386cfe8213df4bc03b913f45) Thanks [@zaripych](https://github.com/zaripych)! - fix: the package manager not being determined correctly if "packageManager" field is specified in the package.json + +- [#4](https://github.com/zaripych/gpt-refactor-bot/pull/4) [`ef77b8d`](https://github.com/zaripych/gpt-refactor-bot/commit/ef77b8dea6125709d6faea03c3225f8dcd6fbd90) Thanks [@zaripych](https://github.com/zaripych)! - fix: formatting going to infinite cycle if the values contain placeholders + +- [#2](https://github.com/zaripych/gpt-refactor-bot/pull/2) [`b65fe19`](https://github.com/zaripych/gpt-refactor-bot/commit/b65fe194762509efa23687bce46f086a5d5740ab) Thanks [@zaripych](https://github.com/zaripych)! - fix: module imports function is now smarter and doesn't include results from in-repo modules that import themselves + + This should ensure that when we _ are looking for imports of "package" where the "package" _ is one of the monorepo packages - we do not include itself importing its own internal files. + +- [#2](https://github.com/zaripych/gpt-refactor-bot/pull/2) [`b04ab6b`](https://github.com/zaripych/gpt-refactor-bot/commit/b04ab6bd8a6514ac41274b6eddfd54a34d61e5fb) Thanks [@zaripych](https://github.com/zaripych)! - fix: added new GPT4 models to the list of possible choices diff --git a/packages/refactor-bot/package.json b/packages/refactor-bot/package.json index 658c991..6e46c83 100644 --- a/packages/refactor-bot/package.json +++ b/packages/refactor-bot/package.json @@ -1,6 +1,6 @@ { "name": "refactor-bot", - "version": "0.0.0-development", + "version": "0.0.0", "description": "refactor-bot --help", "type": "module", "bin": {