@strapi/upgrade 5.0.0 → 5.0.1

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/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 = "5.0.0";
1480
+ const version = "5.0.1";
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": "5.0.0",
3
+ "version": "5.0.1",
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": "5.0.0",
62
+ "@strapi/utils": "5.0.1",
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": "5.0.0",
79
+ "@strapi/types": "5.0.1",
80
80
  "@types/fs-extra": "11.0.4",
81
81
  "@types/jscodeshift": "0.11.10",
82
- "eslint-config-custom": "5.0.0",
82
+ "eslint-config-custom": "5.0.1",
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": "ce84fada19d58a7dfbdd553035e6558f8befcba4"
89
+ "gitHead": "99323ff7d720a309ae03d2fa50b232a25cf57116"
90
90
  }
@@ -18,11 +18,13 @@ const transform: Transform = (file, api) => {
18
18
  toChangeImportSpecifier: boolean;
19
19
  newDependency?: string;
20
20
  newName?: string;
21
+ newImport?: string;
21
22
  };
22
23
 
23
24
  const replacements: Replacement[] = [
24
25
  {
25
26
  oldName: 'AnErrorOccurred',
27
+ newImport: 'Page',
26
28
  newName: 'Page.Error',
27
29
  oldDependency: '@strapi/helper-plugin',
28
30
  newDependency: '@strapi/strapi/admin',
@@ -31,6 +33,7 @@ const transform: Transform = (file, api) => {
31
33
  },
32
34
  {
33
35
  oldName: 'CheckPagePermissions',
36
+ newImport: 'Page',
34
37
  newName: 'Page.Protect',
35
38
  oldDependency: '@strapi/helper-plugin',
36
39
  newDependency: '@strapi/strapi/admin',
@@ -60,6 +63,7 @@ const transform: Transform = (file, api) => {
60
63
  },
61
64
  {
62
65
  oldName: 'LoadingIndicatorPage',
66
+ newImport: 'Page',
63
67
  newName: 'Page.Loading',
64
68
  oldDependency: '@strapi/helper-plugin',
65
69
  newDependency: '@strapi/strapi/admin',
@@ -68,6 +72,7 @@ const transform: Transform = (file, api) => {
68
72
  },
69
73
  {
70
74
  oldName: 'NoContent',
75
+ newImport: 'EmptyStateLayout',
71
76
  newName: 'EmptyStateLayout',
72
77
  oldDependency: '@strapi/helper-plugin',
73
78
  newDependency: '@strapi/design-system',
@@ -76,6 +81,7 @@ const transform: Transform = (file, api) => {
76
81
  },
77
82
  {
78
83
  oldName: 'NoPermissions',
84
+ newImport: 'Page',
79
85
  newName: 'Page.NoPermissions',
80
86
  oldDependency: '@strapi/helper-plugin',
81
87
  newDependency: '@strapi/strapi/admin',
@@ -173,7 +179,7 @@ const transform: Transform = (file, api) => {
173
179
  if (replacement.toChangeImportSpecifier && replacement.newDependency) {
174
180
  changeImportSpecifier(root, j, {
175
181
  oldMethodName: replacement.oldName,
176
- newMethodName: replacement.newName,
182
+ newMethodName: replacement.newImport,
177
183
  oldDependency: replacement.oldDependency,
178
184
  newDependency: replacement.newDependency,
179
185
  });