@strapi/upgrade 0.0.0-experimental.fd55b75e545ef2b5c16b5f49a04e0db294663d8d → 0.0.0-experimental.fdacf4285d1cada9d94ab4dcd756c5362cba1b54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Data migrations are not handled by the upgrade tool.
|
|
|
39
39
|
|
|
40
40
|
For Strapi v4, no data migrations will be allowed and no support is planned (except in extenuating circumstances eg, a critical security issue somehow relating to the database shape)
|
|
41
41
|
|
|
42
|
-
For Strapi v5, automated data migrations can be added in the `packages/core/database` package of the `
|
|
42
|
+
For Strapi v5, automated data migrations can be added in the `packages/core/database` package of the `v5/main` branch of this repo.
|
|
43
43
|
|
|
44
44
|
## Usage
|
|
45
45
|
|
package/dist/cli.js
CHANGED
|
@@ -1477,7 +1477,7 @@ When executed on a Strapi plugin project, it shows every codemods.
|
|
|
1477
1477
|
return listCodemods(options);
|
|
1478
1478
|
});
|
|
1479
1479
|
};
|
|
1480
|
-
const version = "0.0.0-experimental.
|
|
1480
|
+
const version = "0.0.0-experimental.fdacf4285d1cada9d94ab4dcd756c5362cba1b54";
|
|
1481
1481
|
register$1(commander.program);
|
|
1482
1482
|
register(commander.program);
|
|
1483
1483
|
commander.program.usage("<command> [options]").on("command:*", ([invalidCmd]) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/upgrade",
|
|
3
|
-
"version": "0.0.0-experimental.
|
|
3
|
+
"version": "0.0.0-experimental.fdacf4285d1cada9d94ab4dcd756c5362cba1b54",
|
|
4
4
|
"description": "CLI to upgrade Strapi applications effortless",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"watch": "pack-up watch"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@strapi/utils": "0.0.0-experimental.
|
|
62
|
+
"@strapi/utils": "0.0.0-experimental.fdacf4285d1cada9d94ab4dcd756c5362cba1b54",
|
|
63
63
|
"chalk": "4.1.2",
|
|
64
64
|
"cli-table3": "0.6.2",
|
|
65
65
|
"commander": "8.3.0",
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@strapi/pack-up": "5.0.0",
|
|
79
|
-
"@strapi/types": "0.0.0-experimental.
|
|
79
|
+
"@strapi/types": "0.0.0-experimental.fdacf4285d1cada9d94ab4dcd756c5362cba1b54",
|
|
80
80
|
"@types/fs-extra": "11.0.4",
|
|
81
81
|
"@types/jscodeshift": "0.11.10",
|
|
82
|
-
"eslint-config-custom": "0.0.0-experimental.
|
|
82
|
+
"eslint-config-custom": "0.0.0-experimental.fdacf4285d1cada9d94ab4dcd756c5362cba1b54",
|
|
83
83
|
"rimraf": "5.0.5"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=18.0.0 <=20.x.x",
|
|
87
87
|
"npm": ">=6.0.0"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "fdacf4285d1cada9d94ab4dcd756c5362cba1b54"
|
|
90
90
|
}
|
|
@@ -18,13 +18,11 @@ const transform: Transform = (file, api) => {
|
|
|
18
18
|
toChangeImportSpecifier: boolean;
|
|
19
19
|
newDependency?: string;
|
|
20
20
|
newName?: string;
|
|
21
|
-
newImport?: string;
|
|
22
21
|
};
|
|
23
22
|
|
|
24
23
|
const replacements: Replacement[] = [
|
|
25
24
|
{
|
|
26
25
|
oldName: 'AnErrorOccurred',
|
|
27
|
-
newImport: 'Page',
|
|
28
26
|
newName: 'Page.Error',
|
|
29
27
|
oldDependency: '@strapi/helper-plugin',
|
|
30
28
|
newDependency: '@strapi/strapi/admin',
|
|
@@ -33,7 +31,6 @@ const transform: Transform = (file, api) => {
|
|
|
33
31
|
},
|
|
34
32
|
{
|
|
35
33
|
oldName: 'CheckPagePermissions',
|
|
36
|
-
newImport: 'Page',
|
|
37
34
|
newName: 'Page.Protect',
|
|
38
35
|
oldDependency: '@strapi/helper-plugin',
|
|
39
36
|
newDependency: '@strapi/strapi/admin',
|
|
@@ -63,7 +60,6 @@ const transform: Transform = (file, api) => {
|
|
|
63
60
|
},
|
|
64
61
|
{
|
|
65
62
|
oldName: 'LoadingIndicatorPage',
|
|
66
|
-
newImport: 'Page',
|
|
67
63
|
newName: 'Page.Loading',
|
|
68
64
|
oldDependency: '@strapi/helper-plugin',
|
|
69
65
|
newDependency: '@strapi/strapi/admin',
|
|
@@ -72,7 +68,6 @@ const transform: Transform = (file, api) => {
|
|
|
72
68
|
},
|
|
73
69
|
{
|
|
74
70
|
oldName: 'NoContent',
|
|
75
|
-
newImport: 'EmptyStateLayout',
|
|
76
71
|
newName: 'EmptyStateLayout',
|
|
77
72
|
oldDependency: '@strapi/helper-plugin',
|
|
78
73
|
newDependency: '@strapi/design-system',
|
|
@@ -81,7 +76,6 @@ const transform: Transform = (file, api) => {
|
|
|
81
76
|
},
|
|
82
77
|
{
|
|
83
78
|
oldName: 'NoPermissions',
|
|
84
|
-
newImport: 'Page',
|
|
85
79
|
newName: 'Page.NoPermissions',
|
|
86
80
|
oldDependency: '@strapi/helper-plugin',
|
|
87
81
|
newDependency: '@strapi/strapi/admin',
|
|
@@ -179,7 +173,7 @@ const transform: Transform = (file, api) => {
|
|
|
179
173
|
if (replacement.toChangeImportSpecifier && replacement.newDependency) {
|
|
180
174
|
changeImportSpecifier(root, j, {
|
|
181
175
|
oldMethodName: replacement.oldName,
|
|
182
|
-
newMethodName: replacement.
|
|
176
|
+
newMethodName: replacement.newName,
|
|
183
177
|
oldDependency: replacement.oldDependency,
|
|
184
178
|
newDependency: replacement.newDependency,
|
|
185
179
|
});
|