Skip to content

Commit 350ae7c

Browse files
authored
fix: invalid links, outdated info, and more (#80)
* fix react-19 * fix other react codemods * fixes * Update .codemodrc.json
1 parent 5715f6e commit 350ae7c

File tree

30 files changed

+40
-365
lines changed

30 files changed

+40
-365
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ sgconfig.yml
22
rules/
33
node_modules
44
dist
5+
cdmd_dist
56
.turbo
67
tsconfig.tsbuildinfo

codemods/i18n/.codemodrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
3-
"version": "1.0.1",
3+
"version": "1.0.4",
44
"private": false,
55
"name": "i18n/remove-unused-translations",
66
"description": "This codemod removes unused translation phrases from i18n resources",
77
"engine": "filemod",
8-
"applicabillity": ["i18n", ">=", "0.0.0"],
8+
"applicability": ["i18n", ">=", "0.0.0"],
99
"meta": {
1010
"tags": ["migration"],
1111
"git": "https://github.com/codemod-com/commons/tree/main/codemods/i18n"

codemods/mocha/vitest/recipe/.codemodrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
33
"name": "mocha/vitest/recipe",
4-
"version": "1.0.1",
4+
"version": "1.0.3",
55
"private": false,
66
"engine": "recipe",
77
"names": ["mocha/vitest/migrate-config", "mocha/vitest/migrate-test"],

codemods/mocha/vitest/recipe/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ This recipe is a set of codemods that will upgrade your project from using `moch
22

33
The recipe includes the following codemods:
44

5-
- [migrate-configuration](https://github.com/codemod-com/codemod-registry/tree/main/codemods/mocha/vitest/migrate-configuration)
6-
- [migrate-tests](https://github.com/codemod-com/codemod-registry/tree/main/codemods/mocha/vitest/migrate-tests)
5+
- [migrate-configuration](https://github.com/codemod-com/commons/tree/main/codemods/mocha/vitest/migrate-configuration)
6+
- [migrate-tests](https://github.com/codemod-com/commons/tree/main/codemods/mocha/vitest/migrate-tests)
77

88
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:
99

codemods/netlify-sdk/0.8.5/netlify-sdk-0.8.5-recipe/.codemodrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
33
"name": "netlify/0.8.5/recipe",
4-
"version": "1.0.1",
4+
"version": "1.0.3",
55
"private": false,
66
"engine": "recipe",
77
"names": [

codemods/netlify-sdk/0.8.5/netlify-sdk-0.8.5-recipe/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ The SDK v0.8.5 Recipe is a set of codemods that assist you with migrating to Net
22

33
The recipe includes the following codemods:
44

5-
- [createEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createEnvironmentVariable)
6-
- [createOrUpdateVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariable)
7-
- [createOrUpdateVariables](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariables)
8-
- [deleteEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable)
9-
- [deleteEnvironmentVariables](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables)
10-
- [getEnvironmentVariables](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/getEnvironmentVariables)
11-
- [patchEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable)
12-
- [updateEnvironmentVariable](https://github.com/codemod-com/codemod-registry/tree/main/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable)
5+
- [createEnvironmentVariable](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/createEnvironmentVariable)
6+
- [createOrUpdateVariable](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariable)
7+
- [createOrUpdateVariables](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/createOrUpdateVariables)
8+
- [deleteEnvironmentVariable](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariable)
9+
- [deleteEnvironmentVariables](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/deleteEnvironmentVariables)
10+
- [getEnvironmentVariables](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/getEnvironmentVariables)
11+
- [patchEnvironmentVariable](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/patchEnvironmentVariable)
12+
- [updateEnvironmentVariable](https://github.com/codemod-com/commons/tree/main/codemods/netlify-sdk/0.8.5/updateEnvironmentVariable)

codemods/python/orjson/recipe/.codemodrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
33
"name": "python/orjson/recipe",
4-
"version": "1.0.0",
4+
"version": "1.0.2",
55
"private": false,
66
"engine": "recipe",
77
"names": [

codemods/python/orjson/recipe/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ This recipe is a set of codemods that will upgrade json to orjson in your python
22

33
The recipe includes the following codemods:
44

5-
- [python/orjson/json.dumps](https://github.com/codemod-com/codemod/tree/main/packages/codemods/python/orjson/json.dumps)
6-
- [python/orjson/json.load](https://github.com/codemod-com/codemod/tree/main/packages/codemods/python/orjson/json.load)
7-
- [python/orjson/json.loads](https://github.com/codemod-com/codemod/tree/main/packages/codemods/python/orjson/json.loads)
8-
- [python/orjson/dumps-add-UTC_Z](https://github.com/codemod-com/codemod/tree/main/packages/codemods/python/orjson/orjson.dumps-add-UTC_Z)
9-
- [python/orjson/sentry-import-replacement](https://github.com/codemod-com/codemod/tree/main/packages/codemods/python/orjson/sentry-import-replacement)
5+
- [python/orjson/json.dumps](https://github.com/codemod-com/commons/tree/main/codemods/python/orjson/json.dumps)
6+
- [python/orjson/json.load](https://github.com/codemod-com/commons/tree/main/codemods/python/orjson/json.load)
7+
- [python/orjson/json.loads](https://github.com/codemod-com/commons/tree/main/codemods/python/orjson/json.loads)
8+
- [python/orjson/dumps-add-UTC_Z](https://github.com/codemod-com/commons/tree/main/codemods/python/orjson/orjson.dumps-add-UTC_Z)
9+
- [python/orjson/sentry-import-replacement](https://github.com/codemod-com/commons/tree/main/codemods/python/orjson/sentry-import-replacement)
1010

1111
```python
1212
import orjson
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
33
"name": "react-router/4/move-hoc-to-global-scope",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"engine": "jscodeshift",
66
"private": false,
77
"arguments": [],
88
"meta": {
99
"tags": ["react", "react router", "migration"],
10-
"git": "https://github.com/codemod-com/commons/tree/main/codemods/react-router/4/move-hoc-to-global-scope"
10+
"git": "https://github.com/codemod-com/commons/tree/main/codemods/react-router/4/move-HOC-to-global-scope"
1111
}
1212
}

codemods/react/19/migration-recipe/.codemodrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
33
"name": "react/19/migration-recipe",
4-
"version": "1.0.8",
4+
"version": "1.0.11",
55
"private": false,
66
"engine": "recipe",
77
"names": [

0 commit comments

Comments
 (0)