diff --git a/.all-contributorsrc b/.all-contributorsrc index 0df5657d..ce9dd488 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -111,5 +111,5 @@ "repoType": "github", "repoHost": "https://github.com", "projectName": "codemod-registry", - "projectOwner": "intuita-inc" + "projectOwner": "codemod-com" } diff --git a/CHANGELOG.md b/CHANGELOG.md index ee9f236a..63929b72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,8 +17,8 @@ This page lists highlights, releases, bug fixes, and progress for Intuita Codemo **Bug fixes & other changes** -- 🦗 Chore: Add 'type' to import statements when importing types in `remove-get-static-props` codemod ([#495](https://github.com/intuita-inc/codemod-registry/pull/495)) -- 🦗 Bug fix: Rename a function from `buildLegacyContext` to `buildLegacyCtx` in `remove-get-static-props` codemod ([#497](https://github.com/intuita-inc/codemod-registry/pull/497)) -- 🦗 Bug fix: Fix the order of arguments for `buildLegacyCtx` function in `remove-get-static-props` codemod ([#501](https://github.com/intuita-inc/codemod-registry/pull/501)) -- 🦗 Bug fix: Remove dependency on `x-url` header in generic `remove-get-static-props` codemod ([#483](https://github.com/intuita-inc/codemod-registry/pull/483)) -- 🦗 Bug fix: Make `getData` function an ArrowFunction in generic `remove-get-static-props` codemod ([#473](https://github.com/intuita-inc/codemod-registry/pull/474)) +- 🦗 Chore: Add 'type' to import statements when importing types in `remove-get-static-props` codemod ([#495](https://github.com/codemod-com/codemod-registry/pull/495)) +- 🦗 Bug fix: Rename a function from `buildLegacyContext` to `buildLegacyCtx` in `remove-get-static-props` codemod ([#497](https://github.com/codemod-com/codemod-registry/pull/497)) +- 🦗 Bug fix: Fix the order of arguments for `buildLegacyCtx` function in `remove-get-static-props` codemod ([#501](https://github.com/codemod-com/codemod-registry/pull/501)) +- 🦗 Bug fix: Remove dependency on `x-url` header in generic `remove-get-static-props` codemod ([#483](https://github.com/codemod-com/codemod-registry/pull/483)) +- 🦗 Bug fix: Make `getData` function an ArrowFunction in generic `remove-get-static-props` codemod ([#473](https://github.com/codemod-com/codemod-registry/pull/474)) diff --git a/README.md b/README.md index 89496264..8225e7b5 100644 --- a/README.md +++ b/README.md @@ -82,18 +82,18 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d - - - - - - + + + + + + - - - + + +
Max Leiter
Max Leiter

💻
Greg Pabian
Greg Pabian

💻 🐛 📖
DmytroHryshyn
DmytroHryshyn

💻 🐛
Alex Bit
Alex Bit

💻 📖
Benny Joo
Benny Joo

💻 🐛 📖
Mohab Sameh
Mohab Sameh

💻 📖
Max Leiter
Max Leiter

💻
Greg Pabian
Greg Pabian

💻 🐛 📖
DmytroHryshyn
DmytroHryshyn

💻 🐛
Alex Bit
Alex Bit

💻 📖
Benny Joo
Benny Joo

💻 🐛 📖
Mohab Sameh
Mohab Sameh

💻 📖
Serhii Melnyk
Serhii Melnyk

🤔
kevtran2
kevtran2

📖 💻
George W Langham
George W Langham

🐛
Aniello Falcone
Aniello Falcone

🐛
kevtran2
kevtran2

📖 💻
George W Langham
George W Langham

🐛
Aniello Falcone
Aniello Falcone

🐛
diff --git a/SECURITY.md b/SECURITY.md index 1b66d84d..752cb0b9 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,7 +4,7 @@ The Intuita team and community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions. -To report a security issue, please use the [issues page](https://github.com/intuita-inc/codemod-registry/issues) or the [Slack channel](https://intuita.io/community). +To report a security issue, please use the [issues page](https://github.com/codemod-com/codemod-registry/issues) or the [Slack channel](https://intuita.io/community). The Intuita team may send a response indicating the next steps in handling your report. After the initial reply to your report, the team may keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance. diff --git a/codemods/bull/bullmq/README.md b/codemods/bull/bullmq/README.md index 17693e2b..c3c7a3f1 100644 --- a/codemods/bull/bullmq/README.md +++ b/codemods/bull/bullmq/README.md @@ -133,5 +133,5 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/cal.com/app-directory-boilerplate-calcom/README.md b/codemods/cal.com/app-directory-boilerplate-calcom/README.md index 8ce53313..62668b51 100644 --- a/codemods/cal.com/app-directory-boilerplate-calcom/README.md +++ b/codemods/cal.com/app-directory-boilerplate-calcom/README.md @@ -63,7 +63,7 @@ ts-morph ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/cal.com/generate-metadata-tests-calcom/README.md b/codemods/cal.com/generate-metadata-tests-calcom/README.md index fd6dedb9..2de24340 100644 --- a/codemods/cal.com/generate-metadata-tests-calcom/README.md +++ b/codemods/cal.com/generate-metadata-tests-calcom/README.md @@ -30,4 +30,4 @@ filemod ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/cal.com/generate-url-patterns/README.md b/codemods/cal.com/generate-url-patterns/README.md index e87f59a2..5a2fc149 100644 --- a/codemods/cal.com/generate-url-patterns/README.md +++ b/codemods/cal.com/generate-url-patterns/README.md @@ -28,4 +28,4 @@ filemod ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/i18n/README.md b/codemods/i18n/README.md index db08aa98..c0cf3f9e 100644 --- a/codemods/i18n/README.md +++ b/codemods/i18n/README.md @@ -53,4 +53,4 @@ Intuita File Transformation Engine ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/jest/vitest/README.md b/codemods/jest/vitest/README.md index 72d8308d..29831b0e 100644 --- a/codemods/jest/vitest/README.md +++ b/codemods/jest/vitest/README.md @@ -42,5 +42,5 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/mocha/vitest/migrate-configuration/README.md b/codemods/mocha/vitest/migrate-configuration/README.md index 0f6adcf0..d0526ff0 100644 --- a/codemods/mocha/vitest/migrate-configuration/README.md +++ b/codemods/mocha/vitest/migrate-configuration/README.md @@ -132,7 +132,7 @@ v1.0.0 ### **Codemod Engine** -[filemod](https://github.com/intuita-inc/filemod/) +[filemod](https://github.com/codemod-com/filemod/) ### Estimated Time Saving @@ -140,5 +140,5 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/mocha/vitest/migrate-tests/README.md b/codemods/mocha/vitest/migrate-tests/README.md index 65726f49..d2d491d4 100644 --- a/codemods/mocha/vitest/migrate-tests/README.md +++ b/codemods/mocha/vitest/migrate-tests/README.md @@ -54,6 +54,6 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/mocha/vitest/recipe/README.md b/codemods/mocha/vitest/recipe/README.md index f7b0bb52..eabef2f1 100644 --- a/codemods/mocha/vitest/recipe/README.md +++ b/codemods/mocha/vitest/recipe/README.md @@ -6,8 +6,8 @@ This recipe is a set of codemods that will upgrade your project from using `moch The recipe includes the following codemods: -- [migrate-configuration](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/mocha/vitest/migrate-configuration) -- [migrate-tests](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/mocha/vitest/migrate-tests) +- [migrate-configuration](https://github.com/codemod-com/codemod-registry/tree/main/codemods/mocha/vitest/migrate-configuration) +- [migrate-tests](https://github.com/codemod-com/codemod-registry/tree/main/codemods/mocha/vitest/migrate-tests) NOTE: if you are not using vitest default `.spec.*` or `.test.*` file names, then you won't be able to run your tests upon migrating. To mitigate this and add your own set of globs, create `vite.config.ts` file in the root of your project and add the following configuration, replacing `**/test/*.ts` with your own globs: @@ -41,4 +41,4 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/msw/2/callback-signature/README.md b/codemods/msw/2/callback-signature/README.md index f97ef907..3f7e2ef8 100644 --- a/codemods/msw/2/callback-signature/README.md +++ b/codemods/msw/2/callback-signature/README.md @@ -88,7 +88,7 @@ Up to 10 minutes per occurrence ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info - https://mswjs.io/docs/migrations/1.x-to-2.x/#request-changes diff --git a/codemods/msw/2/ctx-fetch/README.md b/codemods/msw/2/ctx-fetch/README.md index d126951b..80fabeab 100644 --- a/codemods/msw/2/ctx-fetch/README.md +++ b/codemods/msw/2/ctx-fetch/README.md @@ -62,7 +62,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/imports/README.md b/codemods/msw/2/imports/README.md index 3ecb3c27..094815f3 100644 --- a/codemods/msw/2/imports/README.md +++ b/codemods/msw/2/imports/README.md @@ -59,7 +59,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/lifecycle-events-signature/README.md b/codemods/msw/2/lifecycle-events-signature/README.md index 58be68f6..00438cf6 100644 --- a/codemods/msw/2/lifecycle-events-signature/README.md +++ b/codemods/msw/2/lifecycle-events-signature/README.md @@ -47,7 +47,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/print-handler/README.md b/codemods/msw/2/print-handler/README.md index 28cb2520..999e8fab 100644 --- a/codemods/msw/2/print-handler/README.md +++ b/codemods/msw/2/print-handler/README.md @@ -46,7 +46,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/req-passthrough/README.md b/codemods/msw/2/req-passthrough/README.md index e57d6890..e845d5cf 100644 --- a/codemods/msw/2/req-passthrough/README.md +++ b/codemods/msw/2/req-passthrough/README.md @@ -50,7 +50,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/request-changes/README.md b/codemods/msw/2/request-changes/README.md index 751c5167..51c7591e 100644 --- a/codemods/msw/2/request-changes/README.md +++ b/codemods/msw/2/request-changes/README.md @@ -75,7 +75,7 @@ Up to 15 minutes per occurrence ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/response-usages/README.md b/codemods/msw/2/response-usages/README.md index adfc493b..013d6c5f 100644 --- a/codemods/msw/2/response-usages/README.md +++ b/codemods/msw/2/response-usages/README.md @@ -170,7 +170,7 @@ Up to 10 minutes per occurrence ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/msw/2/type-args/README.md b/codemods/msw/2/type-args/README.md index 99e9b3f8..fbfee10a 100644 --- a/codemods/msw/2/type-args/README.md +++ b/codemods/msw/2/type-args/README.md @@ -116,4 +116,4 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/msw/2/upgrade-recipe/README.md b/codemods/msw/2/upgrade-recipe/README.md index 95d7a247..b270341b 100644 --- a/codemods/msw/2/upgrade-recipe/README.md +++ b/codemods/msw/2/upgrade-recipe/README.md @@ -6,15 +6,15 @@ This recipe is a set of codemods that will upgrade your project from using msw v The recipe includes the following codemods: -- [imports](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/imports) -- [type-args](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/type-args) -- [request-changes](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/request-changes) -- [ctx-fetch](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/ctx-fetch) -- [req-passthrough](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/req-passthrough) -- [response-usages](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/response-usages) -- [callback-signature](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/callback-signature) -- [lifecycle-events-signature](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/lifecycle-events-signature) -- [print-handler](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/print-handler) +- [imports](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/imports) +- [type-args](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/type-args) +- [request-changes](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/request-changes) +- [ctx-fetch](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/ctx-fetch) +- [req-passthrough](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/req-passthrough) +- [response-usages](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/response-usages) +- [callback-signature](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/callback-signature) +- [lifecycle-events-signature](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/lifecycle-events-signature) +- [print-handler](https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/print-handler) ### FNs This recipe does not change the signatures of MSW handlers, if they were called using a custom factory function, for example to provide more type-safety or else. For example, the following code will only be partially updated: @@ -60,7 +60,7 @@ Depending on the size of the project, this recipe can save up to 6 hours of dedi ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.1/addBuildEventContext/README.md b/codemods/netlify-sdk/0.8.1/addBuildEventContext/README.md index d902c0d3..1aaf8e2c 100644 --- a/codemods/netlify-sdk/0.8.1/addBuildEventContext/README.md +++ b/codemods/netlify-sdk/0.8.1/addBuildEventContext/README.md @@ -52,7 +52,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.1/addBuildEventHandler/README.md b/codemods/netlify-sdk/0.8.1/addBuildEventHandler/README.md index 4547291f..841b1650 100644 --- a/codemods/netlify-sdk/0.8.1/addBuildEventHandler/README.md +++ b/codemods/netlify-sdk/0.8.1/addBuildEventHandler/README.md @@ -56,7 +56,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.1/disableBuildEventHandlers/README.md b/codemods/netlify-sdk/0.8.1/disableBuildEventHandlers/README.md index 9a193268..acb1c78b 100644 --- a/codemods/netlify-sdk/0.8.1/disableBuildEventHandlers/README.md +++ b/codemods/netlify-sdk/0.8.1/disableBuildEventHandlers/README.md @@ -42,7 +42,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.1/enableBuildEventHandlers/README.md b/codemods/netlify-sdk/0.8.1/enableBuildEventHandlers/README.md index b9daa878..5e8b3de0 100644 --- a/codemods/netlify-sdk/0.8.1/enableBuildEventHandlers/README.md +++ b/codemods/netlify-sdk/0.8.1/enableBuildEventHandlers/README.md @@ -42,7 +42,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.1/exportZod/README.md b/codemods/netlify-sdk/0.8.1/exportZod/README.md index eaee0c0f..4f3c66dd 100644 --- a/codemods/netlify-sdk/0.8.1/exportZod/README.md +++ b/codemods/netlify-sdk/0.8.1/exportZod/README.md @@ -42,7 +42,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.4/addApiHandler/README.md b/codemods/netlify-sdk/0.8.4/addApiHandler/README.md index d3c83064..05fc4c30 100644 --- a/codemods/netlify-sdk/0.8.4/addApiHandler/README.md +++ b/codemods/netlify-sdk/0.8.4/addApiHandler/README.md @@ -50,7 +50,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/createEnvironmentVariable/README.md b/codemods/netlify-sdk/0.8.5/createEnvironmentVariable/README.md index 4d670c56..497afa0a 100644 --- a/codemods/netlify-sdk/0.8.5/createEnvironmentVariable/README.md +++ b/codemods/netlify-sdk/0.8.5/createEnvironmentVariable/README.md @@ -47,7 +47,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/createOrUpdateVariable/README.md b/codemods/netlify-sdk/0.8.5/createOrUpdateVariable/README.md index 98a67fa1..d11460f4 100644 --- a/codemods/netlify-sdk/0.8.5/createOrUpdateVariable/README.md +++ b/codemods/netlify-sdk/0.8.5/createOrUpdateVariable/README.md @@ -47,7 +47,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/createOrUpdateVariables/README.md b/codemods/netlify-sdk/0.8.5/createOrUpdateVariables/README.md index 12aca87c..9f75f3fd 100644 --- a/codemods/netlify-sdk/0.8.5/createOrUpdateVariables/README.md +++ b/codemods/netlify-sdk/0.8.5/createOrUpdateVariables/README.md @@ -46,7 +46,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable/README.md b/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable/README.md index 5c84edac..6b25ca70 100644 --- a/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable/README.md +++ b/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable/README.md @@ -46,7 +46,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables/README.md b/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables/README.md index 20ff472e..a69153e0 100644 --- a/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables/README.md +++ b/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables/README.md @@ -46,7 +46,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/getEnvironmentVariables/README.md b/codemods/netlify-sdk/0.8.5/getEnvironmentVariables/README.md index 5c0278dc..c8ea9cad 100644 --- a/codemods/netlify-sdk/0.8.5/getEnvironmentVariables/README.md +++ b/codemods/netlify-sdk/0.8.5/getEnvironmentVariables/README.md @@ -45,7 +45,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/netlify-sdk-0.8.5-recipe/README.md b/codemods/netlify-sdk/0.8.5/netlify-sdk-0.8.5-recipe/README.md index 0218dcd7..202c12c1 100644 --- a/codemods/netlify-sdk/0.8.5/netlify-sdk-0.8.5-recipe/README.md +++ b/codemods/netlify-sdk/0.8.5/netlify-sdk-0.8.5-recipe/README.md @@ -6,14 +6,14 @@ The SDK v0.8.5 Recipe is a set of codemods that assist you with migrating to Net The recipe includes the following codemods: -- [createEnvironmentVariable](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createEnvironmentVariable) -- [createOrUpdateVariable](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariable) -- [createOrUpdateVariables](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariables) -- [deleteEnvironmentVariable](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable) -- [deleteEnvironmentVariables](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables) -- [getEnvironmentVariables](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/getEnvironmentVariables) -- [patchEnvironmentVariable](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable) -- [updateEnvironmentVariable](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable) +- [createEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createEnvironmentVariable) +- [createOrUpdateVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariable) +- [createOrUpdateVariables](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariables) +- [deleteEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable) +- [deleteEnvironmentVariables](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables) +- [getEnvironmentVariables](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/getEnvironmentVariables) +- [patchEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable) +- [updateEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable) ## Applicability Criteria @@ -35,7 +35,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable/README.md b/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable/README.md index e10d2449..2fa7ea62 100644 --- a/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable/README.md +++ b/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable/README.md @@ -56,7 +56,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable/README.md b/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable/README.md index 60bf541e..ff7ca3b4 100644 --- a/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable/README.md +++ b/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable/README.md @@ -47,7 +47,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/next-i18next/copy-keys/README.md b/codemods/next-i18next/copy-keys/README.md index 349d9de7..73ccbfbd 100644 --- a/codemods/next-i18next/copy-keys/README.md +++ b/codemods/next-i18next/copy-keys/README.md @@ -77,4 +77,4 @@ Filemod ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/next/13/ab-test/README.md b/codemods/next/13/ab-test/README.md index 6cb98dd3..d53788c3 100644 --- a/codemods/next/13/ab-test/README.md +++ b/codemods/next/13/ab-test/README.md @@ -28,4 +28,4 @@ filemod ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/next/13/app-directory-boilerplate/README.md b/codemods/next/13/app-directory-boilerplate/README.md index ac1ef4c0..1d8c9c99 100644 --- a/codemods/next/13/app-directory-boilerplate/README.md +++ b/codemods/next/13/app-directory-boilerplate/README.md @@ -72,7 +72,7 @@ ts-morph ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/next/13/app-router-recipe/README.md b/codemods/next/13/app-router-recipe/README.md index 78342b43..4f16781a 100644 --- a/codemods/next/13/app-router-recipe/README.md +++ b/codemods/next/13/app-router-recipe/README.md @@ -6,10 +6,10 @@ The App Router Recipe is a set of codemods that assist you with the pages-to-app The recipe includes the following codemods: -- [replace-next-router](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/next/13/replace-next-router) -- [replace-next-head](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/next/13/replace-next-head) -- [remove-get-static-props](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/next/13/remove-get-static-props) -- [app-directory-boilerplate](https://github.com/intuita-inc/codemod-registry/tree/main/codemods/next/13/app-directory-boilerplate) +- [replace-next-router](https://github.com/codemod-com/codemod-registry/tree/main/codemods/next/13/replace-next-router) +- [replace-next-head](https://github.com/codemod-com/codemod-registry/tree/main/codemods/next/13/replace-next-head) +- [remove-get-static-props](https://github.com/codemod-com/codemod-registry/tree/main/codemods/next/13/remove-get-static-props) +- [app-directory-boilerplate](https://github.com/codemod-com/codemod-registry/tree/main/codemods/next/13/app-directory-boilerplate) ## Applicability Criteria @@ -31,7 +31,7 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/next/13/comment-deletable-files/README.md b/codemods/next/13/comment-deletable-files/README.md index 9fac5494..85d4b260 100644 --- a/codemods/next/13/comment-deletable-files/README.md +++ b/codemods/next/13/comment-deletable-files/README.md @@ -69,4 +69,4 @@ The purpose of this codemod is to guide the user into the files that should be m ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/next/13/move-css-in-js-styles/README.md b/codemods/next/13/move-css-in-js-styles/README.md index 7bf0fe29..bc1182fd 100644 --- a/codemods/next/13/move-css-in-js-styles/README.md +++ b/codemods/next/13/move-css-in-js-styles/README.md @@ -74,7 +74,7 @@ jscodeshift ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/next/13/remove-next-export/README.md b/codemods/next/13/remove-next-export/README.md index f442db98..e8b071d2 100644 --- a/codemods/next/13/remove-next-export/README.md +++ b/codemods/next/13/remove-next-export/README.md @@ -60,7 +60,7 @@ Intuita File Transformation Engine ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) ### Links for more info diff --git a/codemods/next/13/replace-next-router/README.md b/codemods/next/13/replace-next-router/README.md index e2ee84cb..d6ce482b 100644 --- a/codemods/next/13/replace-next-router/README.md +++ b/codemods/next/13/replace-next-router/README.md @@ -70,4 +70,4 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/next/13/upsert-use-client-directive/README.md b/codemods/next/13/upsert-use-client-directive/README.md index ab02145b..e22414ea 100644 --- a/codemods/next/13/upsert-use-client-directive/README.md +++ b/codemods/next/13/upsert-use-client-directive/README.md @@ -59,4 +59,4 @@ v1.0.0 ### Owner -[Intuita](https://github.com/intuita-inc) +[Intuita](https://github.com/codemod-com) diff --git a/codemods/pull_request_template.md b/codemods/pull_request_template.md index ebf4ecd2..e9f56386 100644 --- a/codemods/pull_request_template.md +++ b/codemods/pull_request_template.md @@ -64,7 +64,7 @@ Can be: - [jscodeshift](https://github.com/facebook/jscodeshift) - [ts-morph](https://github.com/dsherret/ts-morph) -- [filemod](https://github.com/intuita-inc/filemod/) +- [filemod](https://github.com/codemod-com/filemod/) - [Uber Piranha](https://github.com/uber/piranha) ### Estimated Time Saving diff --git a/pull_request_template.md b/pull_request_template.md index f4b6ad88..35af07bc 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -1,6 +1,6 @@ **Please check if the PR fulfills these requirements**: -- [ ] The commit message follows [our code of conduct](https://github.com/intuita-inc/codemod-registry/blob/main/CODE_OF_CONDUCT.md) and [contributing guidelines](https://github.com/intuita-inc/codemod-registry/blob/main/CONTRIBUTING.md) +- [ ] The commit message follows [our code of conduct](https://github.com/codemod-com/codemod-registry/blob/main/CODE_OF_CONDUCT.md) and [contributing guidelines](https://github.com/codemod-com/codemod-registry/blob/main/CONTRIBUTING.md) - [ ] Tests for the changes have been added (for bug fixes/features) - [ ] Docs have been added / updated (for bug fixes / features) diff --git a/readme-parser/parse.test.ts b/readme-parser/parse.test.ts index 1513c69a..a1c73856 100644 --- a/readme-parser/parse.test.ts +++ b/readme-parser/parse.test.ts @@ -226,7 +226,7 @@ f_long-description: >- }); \`\`\` -f_github-link: https://github.com/intuita-inc/codemod-registry/tree/main/codemods/msw/2/imports +f_github-link: https://github.com/codemod-com/codemod-registry/tree/main/codemods/msw/2/imports f_vs-code-link: vscode://intuita.intuita-vscode-extension/showCodemod?chd=${vscodeHashDigest} f_cli-command: intuita msw/2/imports f_framework: cms/framework/msw.md @@ -246,9 +246,9 @@ tags: automations updated-on: ${date.toISOString()} published-on: ${date.toISOString()} seo: - title: Msw V2 - Do the thing | Intuita Automations - og:title: Msw V2 - Do the thing | Intuita Automations - twitter:title: Msw V2 - Do the thing | Intuita Automations + title: Msw V2 - Do the thing | Codemod.com Automations + og:title: Msw V2 - Do the thing | Codemod.com Automations + twitter:title: Msw V2 - Do the thing | Codemod.com Automations description: This is an amazing codemod which does \`the thing\` twitter:card: This is an amazing codemod which does \`the thing\` `.trim(), diff --git a/readme-parser/parse.ts b/readme-parser/parse.ts index 2f1ae41c..aa6554fa 100644 --- a/readme-parser/parse.ts +++ b/readme-parser/parse.ts @@ -268,9 +268,9 @@ export const parse = (data: string) => { const examples = exampleHeading ? getTextByHeader(children, exampleHeading, '\n') : null; - if (!examples) { - throw new Error('Examples not found'); - } + // if (!examples) { + // throw new Error('Examples not found'); + // } const applicabilityHeader = getHeading(children, 2, 'Applicability'); const applicability = applicabilityHeader @@ -339,7 +339,7 @@ export const parse = (data: string) => { const ownerHeader = getHeading(children, 3, 'Owner'); const owner = ownerHeader - ? getTextByHeader(children, ownerHeader, '\n') ?? 'Intuita' + ? getTextByHeader(children, ownerHeader, '\n') ?? 'Codemod.com' : null; const linksHeader = getHeading(children, 3, 'Links'); @@ -437,10 +437,9 @@ f_long-description: >- ## Description \n ${description.replace(/\n/g, '\n ')} - \n - ${examples.replace(/\n/g, '\n ')}${ + ${examples ? '\n\n ' + examples.replace(/\n/g, '\n ') : ''}${ path - ? `\nf_github-link: https://github.com/intuita-inc/codemod-registry/tree/main/${cleanPath}` + ? `\nf_github-link: https://github.com/codemod-com/codemod-registry/tree/main/${cleanPath}` : '' }${ vscodeHashDigest @@ -450,10 +449,10 @@ f_long-description: >- framework ? `\nf_framework: cms/framework/${framework}.md` : '' } f_applicability-criteria: "${applicability}" -f_verified-codemod: ${owner === 'Intuita' ? 'true' : 'false'} +f_verified-codemod: ${owner === 'Codemod.com' ? 'true' : 'false'} f_author: ${ - owner === 'Intuita' - ? 'cms/authors/intuita.md' + owner === 'Codemod.com' + ? 'cms/authors/codemod-com.md' : `cms/authors/${owner?.toLowerCase().replace(/ /g, '-') ?? ''}.md` } layout: "[automations].html"${slug ? `\nslug: ${slug}` : ''} @@ -469,9 +468,9 @@ tags: automations updated-on: ${new Date().toISOString()} published-on: ${new Date().toISOString()} seo: - title: ${titleWithVersion} | Intuita Automations - og:title: ${titleWithVersion} | Intuita Automations - twitter:title: ${titleWithVersion} | Intuita Automations + title: ${titleWithVersion} | Codemod.com Automations + og:title: ${titleWithVersion} | Codemod.com Automations + twitter:title: ${titleWithVersion} | Codemod.com Automations description: ${shortDescription} twitter:card: ${shortDescription} `.trim(); diff --git a/readme-parser/sync.ts b/readme-parser/sync.ts index 0bcdcf59..b39b3ea1 100644 --- a/readme-parser/sync.ts +++ b/readme-parser/sync.ts @@ -41,10 +41,10 @@ export const sync = async () => { await git.addRemote( 'website', - 'https://github.com/intuita-inc/website.git', + 'https://github.com/codemod-com/website.git', ); - await git.addConfig('user.email', 'intuita@intuita.io', false, 'local'); - await git.addConfig('user.name', 'Intuita Team', false, 'local'); + await git.addConfig('user.email', 'auto@codemod.com', false, 'local'); + await git.addConfig('user.name', 'codemod.com', false, 'local'); await git.fetch(['website', 'master']); await git.fetch(['origin', 'main', '--depth=2']); @@ -94,7 +94,13 @@ export const sync = async () => { continue; } - const parsedNewFile = parse(newFile); + let parsedNewFile: ReturnType; + try { + parsedNewFile = parse(newFile); + } catch (err) { + console.error(`Could not parse new README file under ${path}`); + continue; + } const newFileShortDescription = parsedNewFile.description .split('\n') .at(0); @@ -133,10 +139,14 @@ export const sync = async () => { // the fields just like any other JS object, to perform the comparison. // Not using valibot's safeParse, because we can just error if that's not an object and we don't care // about the fields to be of a specific type. - const oldContent = valibotParse( - record(any()), - yaml.load(convertToYaml(parse(oldFile), path)), - ); + let oldFileParsedYaml: unknown; + try { + oldFileParsedYaml = yaml.load(convertToYaml(parse(oldFile), path)); + } catch (err) { + console.error(`Could not parse old README file under ${path}`); + continue; + } + const oldContent = valibotParse(record(any()), oldFileParsedYaml); const newContent = valibotParse( record(any()), yaml.load(newReadmeYamlContent),