32 Commits

Author SHA1 Message Date
Jean-Sébastien Herbaux
a9112aaf80
[Upgrade Tool] Fix JSON Transform Loader (#20593) 2024-06-21 17:17:37 +02:00
Convly
a9b61589c8 chore: update dependencies to 5.0.0-beta.4 2024-04-17 15:43:36 +02:00
Alexandre Bodin
6b059628de fix: release invalid versions 2024-04-11 14:14:02 +02:00
Ben Irvin
9139d4b029
test: use object.defineProperty to mock global.fetch 2024-04-05 15:22:19 +02:00
Alexandre Bodin
cb63439231 fix: invalid dep version after beta release 2024-04-03 20:43:12 +02:00
Convly
76a943360c chore: update codemods debug logs and fix formatting issues 2024-04-03 11:58:38 +02:00
Convly
08be1fade2 fix: update path to the INTERNAL_CODEMODS_DIRECTORY 2024-04-03 10:52:19 +02:00
Convly
10f94d744c fix: lint 2024-04-02 13:04:34 +02:00
Convly
55652b8a77 fix: style 2024-04-02 12:47:14 +02:00
Convly
4928f9527f feat: refactor upgrade-cli and add new codemods commands 2024-04-02 11:35:19 +02:00
Jean-Sébastien Herbaux
c2e4bddef9
fix: typo 2024-03-22 10:54:57 +01:00
Convly
9a5d752f94 fix: refresh project files after applying codemods 2024-03-22 10:51:50 +01:00
Convly
d671c5698d Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-20 08:51:37 +01:00
Ben Irvin
6b73e9c201
enhancement: add support for codemods command to run on plugins
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2024-03-19 16:50:38 +01:00
Convly
c8836c003b chore: update upgrade test 2024-03-13 12:01:58 +01:00
Convly
a8e77a1506 feat: add support for react files in codemods 2024-03-13 11:56:07 +01:00
Convly
836a1eabf7 Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-12 11:50:42 +01:00
Ben Irvin
ab2af1e539
fix(core): use module uid for config namespace instead of dot notation 2024-03-11 12:28:46 +01:00
Convly
9100ea9527 chore: lint fix 2024-03-06 16:07:04 +01:00
Convly
7ca6f2723a chore: fix lint issues (unnecessary else after return) 2024-01-15 12:07:22 +01:00
Convly
71336319dd feat: update commands' types, add a hidden "to" command with a codemod target option 2024-01-12 15:31:45 +01:00
Convly
803724d019 enhancement: override the upgrader's codemods target if specified in the task options 2024-01-12 15:31:45 +01:00
Convly
0578c01f64 fix: update the codemods task with previous changes 2024-01-12 15:31:45 +01:00
Convly
e559f78f78 enhancement: skip range creation in the upgrader factory when the target is a valid semver 2024-01-12 15:31:45 +01:00
Convly
13c7fd1a41 feat: add a codemodsTarget (upgrader module) that can be sync to/desync from the original target 2024-01-12 15:31:45 +01:00
Convly
b6bf9f3896 chore: rename version utils and introduce an isValidSemVer helper 2024-01-12 15:31:45 +01:00
Convly
b8a12ac27d enhancement: match any semver (instead of x.x.x only) for strapi deps in the project module 2024-01-12 15:31:45 +01:00
Convly
f1a604dde8 feat: add findVersion(version) helper to the npm package module 2024-01-12 15:31:45 +01:00
Convly
d667638e68 fix: update codemod-runner.test.ts to accommodate latest changes 2024-01-12 14:52:55 +01:00
Convly
5e819945cb chore: improve logging and comments in Codemod Runner 2024-01-12 14:41:13 +01:00
Christian Capeans
08147cbfb9 chore: add comments to codemod 2024-01-08 13:17:25 +01:00
Ben Irvin
7d13a12c99
feat: Upgrade Tool
* feat: upgrade tool refactor for updated specs (v5)
* chore: format code (prettier)
* chore: remove debug comments
* feat: upgrade the strapi dependencies in project's package.json
* feat: install dependencies during the upgrade process
* chore: fix lint issue
* chore: rephrase requirement sentence's sentiment
* feat: add a --yes option for the upgrade CLI
* enh: make properties readonly to avoid mutations
* chore: adding better logs to the upgrade CLI
* chore: remove unused import
* feat: add minor and patch commands
* fix: use major and minor instead of premajor and preminor
* fix: re-add type casting
* fix: make major requirements required
* chore: revert sentiment update on GIT_CLEAN requirement
* fix: make promisify working by mocking the entire file-system
* fix: yarn.lock update
* feat: Select and run codemods only (#19083)
* chore: add unit tests for upgrader tasks
* fix: rename tests
* chore: Update packages/utils/upgrade/src/tasks/__tests__/upgrade.test.ts
* chore: Add unit tests for upgrade tool (#19056)
* chore: move example codemods (#19156)
* chore: fix yarn.lock
* fix: sync glob versions
* chore: add comment
* chore: update docs

---------

Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Christian <christian.capeans.perez@strapi.io>
Co-authored-by: Christian Capeans <christiancp100@gmail.com>
2024-01-08 11:26:27 +01:00