56 Commits

Author SHA1 Message Date
Josh
08bc82a220 Merge branch 'develop' into v5/main 2024-02-07 18:27:45 +00:00
Fernando Chavez
f6928f6864 Merge branch 'develop' of github.com:strapi/strapi into v5/merge2 2024-02-05 10:48:01 +01:00
Josh
1ec998ff84 Merge branch 'develop' into v5/main 2024-01-26 08:31:31 +00:00
Jean-Sébastien Herbaux
e788a1076f
Merge pull request #19264 from strapi/chore/remove-s3-creds-transform 2024-01-24 10:53:51 +01:00
Christian Capeans
64888d3fa8 chore: refactor codemod for better readability 2024-01-19 11:23:52 +01:00
Christian Capeans
0ef18ac1b5 chore: use type checking in codemod 2024-01-19 09:34:05 +01:00
Ben Irvin
40fcf9b3c9
fix: remove useless codemod for isSupportedImage 2024-01-18 16:01:11 +01:00
Christian Capeans
44dbe85dfd chore: unify credentials shape for v5 2024-01-18 14:07:56 +01:00
Ben Irvin
01dfca22b2
chore: remove deprecated isSupportedImage 2024-01-18 11:50:21 +01:00
Josh
316470cdf8 Merge branch 'develop' into v5/main 2024-01-16 17:46:26 +00: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
Josh
f324494fe9 Merge branch 'develop' into v5/main 2024-01-10 15:58:45 +00:00
Christian Capeans
8b8e269f89 fix: update legacy dependencies 2024-01-08 16:46:06 +01:00
Christian Capeans
ad288a5769 fix: update documentation 2024-01-08 15:58:22 +01:00
Christian Capeans
c1ec41edad Merge branch 'chore/sqlite3-codemod' of github.com:strapi/strapi into chore/sqlite3-codemod 2024-01-08 15:55:09 +01:00
Christian Capeans
f94626d375 fix: update documentation 2024-01-08 15:54:23 +01:00
Christian Capeans
501f42defd fix: typo 2024-01-08 15:22:43 +01:00
Christian Capeans
17a31c60a4 fix: avoid changing better-sqlite3 version 2024-01-08 15:21:54 +01:00
Christian Capeans
b25c854cc4 fix: remove unnecessary codemod 2024-01-08 13:27:52 +01:00
Christian Capeans
08147cbfb9 chore: add comments to codemod 2024-01-08 13:17:25 +01:00
Christian Capeans
2c499f3395 Merge branch 'v5/main' of github.com:strapi/strapi into chore/sqlite3-codemod 2024-01-08 12:31:08 +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
Christian Capeans
30eebd0bcc chore: create script for sqlite migration 2024-01-04 18:36:41 +01:00
Christian
cb6f5d7891
Merge pull request #19111 from strapi/chore/tasks-tests
Add tests for the upgrade task
2023-12-24 16:49:17 +01:00
Christian
69a0284191
chore: Add unit tests for upgrade tool (#19056) 2023-12-22 18:29:34 +01:00
Ben Irvin
bd1faa1a29
Update packages/utils/upgrade/src/tasks/__tests__/upgrade.test.ts 2023-12-22 18:26:32 +01:00
Christian Capeans
07a9db4884 fix: rename tests 2023-12-22 17:56:07 +01:00
Christian Capeans
c2b8acad48 chore: add unit tests for upgrader tasks 2023-12-22 16:54:26 +01:00
Christian
7de4744503
feat: Select and run codemods only (#19083) 2023-12-22 15:24:11 +01:00
Convly
f646f9ceda chore: revert sentiment update on GIT_CLEAN requirement 2023-12-14 10:52:09 +01:00
Convly
a17f4e8617 fix: make major requirements required 2023-12-14 10:29:30 +01:00
Convly
c56802ae6f Merge branch 'features/upgrade-tool' of github.com:strapi/strapi into upgrade-tool/chores 2023-12-14 10:26:11 +01:00
Bassel Kanso
fec3b08033 fix: re-add type casting 2023-12-12 13:27:02 +02:00
Bassel Kanso
315452778c fix: use major and minor instead of premajor and preminor 2023-12-12 13:24:58 +02:00
Bassel Kanso
8a84ee15e6 feat: add minor and patch commands 2023-12-12 00:08:46 +02:00
Convly
f59036e01a chore: remove unused import 2023-12-11 11:12:04 +01:00
Convly
157485bba6 chore: adding better logs to the upgrade CLI 2023-12-11 11:11:39 +01:00
Convly
b1db985dbe enhancement: make properties readonly to avoid mutations 2023-12-11 10:57:14 +01:00
Convly
3985636f21 feat: add a --yes option for the upgrade CLI
This option will allow automatically answering yes to every CLI prompts
2023-12-11 10:55:51 +01:00
Convly
1a0e5e68b6 chore: rephrase requirement sentence's sentiment 2023-12-11 10:54:17 +01:00