From dcbed1abd548239847bdfcffb4e636f193648676 Mon Sep 17 00:00:00 2001 From: Yash Rathore Date: Thu, 9 Apr 2026 11:31:10 +0530 Subject: [PATCH 1/5] fix import issue in plugin-react-query-harness AI-Session-Id: 881de0bf-2900-4665-9e7c-83b67e5cd5ad AI-Tool: claude-code AI-Model: unknown --- packages/plugin-react-query-harness/package.json | 2 +- packages/plugin-react-query-harness/src/processOperation.mts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/plugin-react-query-harness/package.json b/packages/plugin-react-query-harness/package.json index 6b98dcc..4f3d610 100644 --- a/packages/plugin-react-query-harness/package.json +++ b/packages/plugin-react-query-harness/package.json @@ -1,6 +1,6 @@ { "name": "@harnessio/oats-plugin-react-query-harness", - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "type": "module", "repository": { diff --git a/packages/plugin-react-query-harness/src/processOperation.mts b/packages/plugin-react-query-harness/src/processOperation.mts index dfe48a6..7337c4a 100644 --- a/packages/plugin-react-query-harness/src/processOperation.mts +++ b/packages/plugin-react-query-harness/src/processOperation.mts @@ -66,6 +66,10 @@ export function processOperation(op: IOperation, config: IConfig): ICodeOutput { const headerParamsCode = headerParams.length > 0 ? liquid.renderSync(OBJECT_TEMPLATE, { props: headerParams }) : null; + queryParams.forEach((queryParam) => queryParam.imports.forEach((imp) => imports.add(imp))); + pathParams.forEach((pathParam) => pathParam.imports.forEach((imp) => imports.add(imp))); + headerParams.forEach((headerParam) => headerParam.imports.forEach((imp) => imports.add(imp))); + const templateProps = { hookName, fetcherPropsName, From 8ea2571cc009122dcf17bfe94ed23b4c747d1525 Mon Sep 17 00:00:00 2001 From: Yash Rathore Date: Thu, 9 Apr 2026 18:54:10 +0530 Subject: [PATCH 2/5] revert package.json change AI-Session-Id: 881de0bf-2900-4665-9e7c-83b67e5cd5ad AI-Tool: claude-code AI-Model: unknown --- packages/plugin-react-query-harness/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-react-query-harness/package.json b/packages/plugin-react-query-harness/package.json index 4f3d610..6b98dcc 100644 --- a/packages/plugin-react-query-harness/package.json +++ b/packages/plugin-react-query-harness/package.json @@ -1,6 +1,6 @@ { "name": "@harnessio/oats-plugin-react-query-harness", - "version": "2.0.1", + "version": "2.0.0", "license": "MIT", "type": "module", "repository": { From 2fa444f9d0253912611a962465dfd0eada4b9671 Mon Sep 17 00:00:00 2001 From: Yash Rathore Date: Thu, 9 Apr 2026 23:00:41 +0530 Subject: [PATCH 3/5] added changeset. moved doc AI-Session-Id: ec8a82eb-7c59-45ad-b389-1672582ee47a AI-Tool: claude-code AI-Model: unknown --- docs/development.md | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 docs/development.md diff --git a/docs/development.md b/docs/development.md deleted file mode 100644 index 288563c..0000000 --- a/docs/development.md +++ /dev/null @@ -1,26 +0,0 @@ -# Development - -This document describes the process for running this application on your local computer. - -## Getting Started - -You'll need Node.js vesion 16 to run this project. You can install Node.js [from here](https://nodejs.org/en/download/package-manager/). - -You'll also need to [install pnpm](https://pnpm.io/installation). - -Once you've installed Node.js and pnpm, open Terminal and run the following: - -``` -git clone git@github.com:harness/oats.git -cd oats -pnpm i -``` - -Now you can make your changes. - -Once you are done with your changes, run `npx changeset` in your terminal and fill in -the required information. - -Now commit your changes along with the files generated, after running the above command. - -Now you are ready to open a Pull Request with your changes. From 56792d3c2f06b2ebb74d197d596d41276f6994b2 Mon Sep 17 00:00:00 2001 From: Yash Rathore Date: Thu, 9 Apr 2026 23:00:55 +0530 Subject: [PATCH 4/5] added changeset. moved doc AI-Session-Id: ec8a82eb-7c59-45ad-b389-1672582ee47a AI-Tool: claude-code AI-Model: unknown --- .changeset/funky-baboons-argue.md | 5 +++++ CONTRIBUTING.md | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .changeset/funky-baboons-argue.md create mode 100644 CONTRIBUTING.md diff --git a/.changeset/funky-baboons-argue.md b/.changeset/funky-baboons-argue.md new file mode 100644 index 0000000..53d8560 --- /dev/null +++ b/.changeset/funky-baboons-argue.md @@ -0,0 +1,5 @@ +--- +'@harnessio/oats-plugin-react-query-harness': minor +--- + +Fixed the issue where imports from params were not being added to the global set of imports diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..288563c --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Development + +This document describes the process for running this application on your local computer. + +## Getting Started + +You'll need Node.js vesion 16 to run this project. You can install Node.js [from here](https://nodejs.org/en/download/package-manager/). + +You'll also need to [install pnpm](https://pnpm.io/installation). + +Once you've installed Node.js and pnpm, open Terminal and run the following: + +``` +git clone git@github.com:harness/oats.git +cd oats +pnpm i +``` + +Now you can make your changes. + +Once you are done with your changes, run `npx changeset` in your terminal and fill in +the required information. + +Now commit your changes along with the files generated, after running the above command. + +Now you are ready to open a Pull Request with your changes. From 6554fe7a4ac1fe2820541ccc510bdd172031c0a5 Mon Sep 17 00:00:00 2001 From: Yash Rathore Date: Thu, 9 Apr 2026 23:10:12 +0530 Subject: [PATCH 5/5] changed doc link AI-Session-Id: ec8a82eb-7c59-45ad-b389-1672582ee47a AI-Tool: claude-code AI-Model: unknown --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3c2943..3965bf4 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ You can also check the [examples](./examples/) folder for usage. This repo uses [pnpm](https://pnpm.io/) as a package manager and [changesets](https://github.com/changesets/changesets) for versioning. -Check out the [development docs](./docs/development.md) for more info. +Check out the [development docs](./CONTRIBUTING.md) for more info. ## License