-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
docusaurus/docs/dev-docs/migration/v4/migration-guide-4.11.4-to-4.14.0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
title: Migrate from 4.11.4 to 4.14.0 | ||
displayed_sidebar: devDocsSidebar | ||
description: Learn how you can migrate your Strapi application from 4.14.0 to 4.14.0. | ||
--- | ||
|
||
import PluginsCaution from '/docs/snippets/migrate-plugins-extension-caution.md' | ||
import BuildCommand from '/docs/snippets/build-npm-yarn.md' | ||
import DevelopCommand from '/docs/snippets/develop-npm-yarn.md' | ||
import InstallCommand from '/docs/snippets/install-npm-yarn.md' | ||
|
||
# v4.11.4 to v4.14.0 migration guide | ||
|
||
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: | ||
|
||
- Upgrading the application dependencies | ||
- Generating your TypeScript typings | ||
- Reinitializing the application | ||
|
||
<PluginsCaution components={props.components} /> | ||
|
||
|
||
## Upgrading the application dependencies to 4.14.0 | ||
|
||
:::prerequisites | ||
Stop the server before starting the upgrade. | ||
::: | ||
|
||
1. Upgrade all of the Strapi packages in `package.json` to `4.14.0`: | ||
|
||
```json title="path: package.json" | ||
{ | ||
// ... | ||
"dependencies": { | ||
"@strapi/strapi": "4.14.0", | ||
"@strapi/plugin-users-permissions": "4.14.0", | ||
"@strapi/plugin-i18n": "4.14.0" | ||
// ... | ||
} | ||
} | ||
``` | ||
|
||
2. Save the edited `package.json` file. | ||
|
||
3. Run the install command: | ||
<InstallCommand components={props.components} /> | ||
|
||
## Generate TypeScript typings | ||
|
||
Generate your TypeScript typings by running the following command in the terminal: | ||
|
||
<Tabs groupId="yarn-npm"> | ||
|
||
<TabItem value="yarn" label="yarn"> | ||
|
||
```bash | ||
yarn strapi ts:generate-types | ||
``` | ||
|
||
</TabItem> | ||
|
||
<TabItem value="npm" label="npm"> | ||
|
||
```bash | ||
npm run strapi ts:generate-types | ||
``` | ||
|
||
</TabItem> | ||
|
||
</Tabs> | ||
|
||
## Rebuild the application | ||
|
||
<BuildCommand components={props.components} /> | ||
|
||
## Restart the application | ||
|
||
<DevelopCommand components={props.components} /> |
26037f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
documentation – ./
docs-vercel-v4.strapi.io
documentation-strapijs.vercel.app
documentation-git-main-strapijs.vercel.app