From cb4761cd4c1dfd4c4d94aabd2d4d91c8f663e104 Mon Sep 17 00:00:00 2001 From: afilp Date: Thu, 12 Sep 2024 11:38:00 +0300 Subject: [PATCH] Update Upgrade.md to fix the codemod filename extensions to "cjs" --- docs/Upgrade.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/Upgrade.md b/docs/Upgrade.md index ed0bcac10e4..fb95faca601 100644 --- a/docs/Upgrade.md +++ b/docs/Upgrade.md @@ -198,13 +198,13 @@ npx jscodeshift@latest ./path/to/src/ \ Here are the available codemods you may need to run on your codebase: -- `v4/replace-import-specifier.js` -- `v4/key-transformation.js` -- `v5/remove-overloads/remove-overloads.js` -- `v5/is-loading/is-loading.js` -- `v5/keep-previous-data/keep-previous-data.js` -- `v5/rename-properties/rename-properties.js` -- `v5/rename-hydrate/rename-hydrate.js` +- `v4/replace-import-specifier.cjs` +- `v4/key-transformation.cjs` +- `v5/remove-overloads/remove-overloads.cjs` +- `v5/is-loading/is-loading.cjs` +- `v5/keep-previous-data/keep-previous-data.cjs` +- `v5/rename-properties/rename-properties.cjs` +- `v5/rename-hydrate/rename-hydrate.cjs` Check out React Query [codemod documentation](https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#codemod) for more information.