Skip to content

Commit 26037f0

Browse files
authored
Migration guide for v4.14.0 (#1852)
* Add migration guide to 4.14.0 to re-generate Strapi typings * Add migration guide to 4.14.0 to re-generate Strapi typings * Fix latest migration guide title * Fix latest migration guide h1 * Remove unnecessary TODO
1 parent 66ec5b4 commit 26037f0

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

docusaurus/docs/dev-docs/migration-guides.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ If there is no specific migration guide between your current version and the lat
2828
- [Migration guide from 4.5.1 to 4.6.1](/dev-docs/migration/v4/migration-guide-4.5.1-to-4.6.1)
2929
- [Migration guide from 4.6.1 to 4.7.0](/dev-docs/migration/v4/migration-guide-4.6.1-to-4.7.0)
3030
- [Migration guide from 4.7.0 to 4.11.4](/dev-docs/migration/v4/migration-guide-4.7.0-to-4.11.4)
31+
- [Migration guide from 4.11.4 to 4.14.0](/dev-docs/migration/v4/migration-guide-4.11.4-to-4.14.0)
3132

3233
## v3 to v4 migration guides
3334

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
title: Migrate from 4.11.4 to 4.14.0
3+
displayed_sidebar: devDocsSidebar
4+
description: Learn how you can migrate your Strapi application from 4.14.0 to 4.14.0.
5+
---
6+
7+
import PluginsCaution from '/docs/snippets/migrate-plugins-extension-caution.md'
8+
import BuildCommand from '/docs/snippets/build-npm-yarn.md'
9+
import DevelopCommand from '/docs/snippets/develop-npm-yarn.md'
10+
import InstallCommand from '/docs/snippets/install-npm-yarn.md'
11+
12+
# v4.11.4 to v4.14.0 migration guide
13+
14+
The Strapi v4.11.4 to v4.14.0 migration guide upgrades v4.11.4 to v4.14.0. Strapi v4.14.0 migrated the `strapi/strapi` package to TypeScript and introduced a new `@strapi/typings` package. This migration is required if you have used TypeScript in your project prior to 4.14.0. The migration guide consists of:
15+
16+
- Upgrading the application dependencies
17+
- Generating your TypeScript typings
18+
- Reinitializing the application
19+
20+
<PluginsCaution components={props.components} />
21+
22+
23+
## Upgrading the application dependencies to 4.14.0
24+
25+
:::prerequisites
26+
Stop the server before starting the upgrade.
27+
:::
28+
29+
1. Upgrade all of the Strapi packages in `package.json` to `4.14.0`:
30+
31+
```json title="path: package.json"
32+
{
33+
// ...
34+
"dependencies": {
35+
"@strapi/strapi": "4.14.0",
36+
"@strapi/plugin-users-permissions": "4.14.0",
37+
"@strapi/plugin-i18n": "4.14.0"
38+
// ...
39+
}
40+
}
41+
```
42+
43+
2. Save the edited `package.json` file.
44+
45+
3. Run the install command:
46+
<InstallCommand components={props.components} />
47+
48+
## Generate TypeScript typings
49+
50+
Generate your TypeScript typings by running the following command in the terminal:
51+
52+
<Tabs groupId="yarn-npm">
53+
54+
<TabItem value="yarn" label="yarn">
55+
56+
```bash
57+
yarn strapi ts:generate-types
58+
```
59+
60+
</TabItem>
61+
62+
<TabItem value="npm" label="npm">
63+
64+
```bash
65+
npm run strapi ts:generate-types
66+
```
67+
68+
</TabItem>
69+
70+
</Tabs>
71+
72+
## Rebuild the application
73+
74+
<BuildCommand components={props.components} />
75+
76+
## Restart the application
77+
78+
<DevelopCommand components={props.components} />

0 commit comments

Comments
 (0)