|
3 | 3 |
|
4 | 4 | <head> |
5 | 5 | <meta charset="utf-8"> |
6 | | -<title>How to release a new AutoUpgrade version | PrestaShop Project - Open Source e-Commerce platform</title> |
7 | | -<meta name="description" content="Release a new version of AutoUpgrade module The AutoUpgrade module is released following the same process as the native modules. |
8 | | -However, after the release has been published, a last step is necessary. |
9 | | -Mark the new version as latest The AutoUpgrade module is able to detect whether a new version is available. If it detects a new version is available it will suggest to user to upgrade itself to the new higher version."/> |
| 6 | +<title>How to release a new Update Assistant version | PrestaShop Project - Open Source e-Commerce platform</title> |
| 7 | +<meta name="description" content="Release a new version of Update Assistant New versions of Update Assistant (autoupgrade module) are released following the same process as the native modules. |
| 8 | +However, after the release has been published, more steps can be necessary. |
| 9 | +Mark the new version as latest Update Assistant can determine whether a newer version is recommended. When the current version is older than the recommended one, the module suggests upgrading to the latest version. Given the critical nature of the process, this check ensures updates are performed with all the latest improvements and bug fixes."/> |
10 | 10 |
|
11 | 11 | <link rel="canonical" href="https://www.prestashop-project.org/maintainers-guide/processes/release/autoupgrade/" itemprop="url" /> |
12 | 12 |
|
|
27 | 27 |
|
28 | 28 |
|
29 | 29 | <!-- Open Graph image and Twitter Card metadata --> |
30 | | -<meta name="twitter:title" content="How to release a new AutoUpgrade version"/> |
31 | | -<meta name="twitter:description" content="Release a new version of AutoUpgrade module The AutoUpgrade module is released following the same process as the native modules. |
32 | | -However, after the release has been published, a last step is necessary. |
33 | | -Mark the new version as latest The AutoUpgrade module is able to detect whether a new version is available. If it detects a new version is available it will suggest to user to upgrade itself to the new higher version."/> |
34 | | -<meta property="og:title" content="How to release a new AutoUpgrade version" /> |
35 | | -<meta property="og:description" content="Release a new version of AutoUpgrade module The AutoUpgrade module is released following the same process as the native modules. |
36 | | -However, after the release has been published, a last step is necessary. |
37 | | -Mark the new version as latest The AutoUpgrade module is able to detect whether a new version is available. If it detects a new version is available it will suggest to user to upgrade itself to the new higher version." /> |
| 30 | +<meta name="twitter:title" content="How to release a new Update Assistant version"/> |
| 31 | +<meta name="twitter:description" content="Release a new version of Update Assistant New versions of Update Assistant (autoupgrade module) are released following the same process as the native modules. |
| 32 | +However, after the release has been published, more steps can be necessary. |
| 33 | +Mark the new version as latest Update Assistant can determine whether a newer version is recommended. When the current version is older than the recommended one, the module suggests upgrading to the latest version. Given the critical nature of the process, this check ensures updates are performed with all the latest improvements and bug fixes."/> |
| 34 | +<meta property="og:title" content="How to release a new Update Assistant version" /> |
| 35 | +<meta property="og:description" content="Release a new version of Update Assistant New versions of Update Assistant (autoupgrade module) are released following the same process as the native modules. |
| 36 | +However, after the release has been published, more steps can be necessary. |
| 37 | +Mark the new version as latest Update Assistant can determine whether a newer version is recommended. When the current version is older than the recommended one, the module suggests upgrading to the latest version. Given the critical nature of the process, this check ensures updates are performed with all the latest improvements and bug fixes." /> |
38 | 38 | <meta property="og:type" content="article" /> |
39 | 39 | <meta property="og:url" content="https://www.prestashop-project.org/maintainers-guide/processes/release/autoupgrade/" /><meta property="article:section" content="maintainers-guide" /> |
40 | 40 |
|
41 | | -<meta property="article:modified_time" content="2023-09-12T09:42:53+02:00" /> |
| 41 | +<meta property="article:modified_time" content="2025-05-09T09:51:47+01:00" /> |
42 | 42 |
|
43 | 43 |
|
44 | 44 |
|
|
275 | 275 |
|
276 | 276 |
|
277 | 277 |
|
278 | | - <li class="breadcrumb-item active" aria-current="page">How to release a new AutoUpgrade version</li> |
| 278 | + <li class="breadcrumb-item active" aria-current="page">How to release a new Update Assistant version</li> |
279 | 279 |
|
280 | 280 |
|
281 | 281 | </ol> |
|
287 | 287 |
|
288 | 288 |
|
289 | 289 | <div class="col-xl ml-auto"> |
290 | | - <div class="content"><h1 id="release-a-new-version-of-autoupgradehttpsgithubcomprestashopautoupgrade-module">Release a new version of <a href="https://github.com/PrestaShop/autoupgrade/">AutoUpgrade</a> module</h1> |
291 | | -<p>The AutoUpgrade module is released following <a href="/maintainers-guide/processes/release/native-module/">the same process as the native modules</a>.</p> |
292 | | -<p>However, after the release has been published, a last step is necessary.</p> |
| 290 | + <div class="content"><h1 id="release-a-new-version-of-update-assistant">Release a new version of Update Assistant</h1> |
| 291 | +<p>New versions of Update Assistant (<a href="https://github.com/PrestaShop/autoupgrade/"><code>autoupgrade</code> module</a>) are released following <a href="/maintainers-guide/processes/release/native-module/">the same process as the native modules</a>.</p> |
| 292 | +<p>However, after the release has been published, more steps can be necessary.</p> |
293 | 293 | <h2 id="mark-the-new-version-as-latest">Mark the new version as latest</h2> |
294 | | -<p>The AutoUpgrade module is able to detect whether a new version is available. If it detects a new version is available it will suggest to user to upgrade itself to the new higher version.</p> |
295 | | -<p>For example if user is using module 4.16.1 and it detects that version 4.16.3 has been published, the module will inform the user that he is using an outdated version and should perform a module upgrade to version 4.16.3 .</p> |
296 | | -<p>The detection mechanism is a simple verification of the file <a href="https://api.prestashop.com/xml/channel.xml">https://api.prestashop.com/xml/channel.xml</a> .</p> |
297 | | -<p>Consequently when a new version of the AutoUpgrade module is published, the file <a href="https://api.prestashop.com/xml/channel.xml">https://api.prestashop.com/xml/channel.xml</a> must be modified. It is stored in the PrestaShop API repository.</p> |
298 | | - |
299 | | -<div class="notices warning" ><p><strong>This step requires special rights.</strong></p> |
300 | | -<p>Ask a maintainer from the PrestaShop Company with administrative rights on the PrestaShop API repository to perform this step.</p> |
301 | | -</div> |
302 | | - |
| 294 | +<p>Update Assistant can determine whether a newer version is recommended. When the current version is older than the recommended one, the module suggests upgrading to the latest version. Given the critical nature of the process, this check ensures updates are performed with all the latest improvements and bug fixes.</p> |
| 295 | +<p>For example, if a user is using version 7.0.0 and version 7.0.1 has been released, the module will inform the user that they are using an outdated version and should update.</p> |
| 296 | +<img src="../../../images/autoupgrade-update-needed.png" alt="Update of the module needed"> |
| 297 | +<p>This detection mechanism is based on the contents of the <a href="https://api.prestashop-project.org/autoupgrade"><code>/autoupgrade</code></a> endpoint of the Distribution API.</p> |
| 298 | +<p>The file maps ranges of PrestaShop versions to a recommended version of Update Assistant. This allows the module to:</p> |
| 299 | +<ul> |
| 300 | +<li>Warn users when their current version is outdated,</li> |
| 301 | +<li>Ensure updates are only allowed if the PrestaShop version falls within one of the defined ranges.</li> |
| 302 | +</ul> |
| 303 | +<p>To enable this check, update the contents of the closest exising version entry in the file <a href="https://github.com/PrestaShop/distribution-api/blob/main/public/json/autoupgrade.json">autoupgrade.json in the Distribution API repository</a>. For instance:</p> |
| 304 | +<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="p">{</span> |
| 305 | + <span class="nt">"prestashop_min"</span><span class="p">:</span> <span class="s2">"1.7.0.0"</span><span class="p">,</span> |
| 306 | + <span class="nt">"prestashop_max"</span><span class="p">:</span> <span class="s2">"8.2.1"</span><span class="p">,</span> |
| 307 | + <span class="nt">"autoupgrade_recommended"</span><span class="p">:</span> <span class="p">{</span> |
| 308 | + <span class="nt">"last_version"</span><span class="p">:</span> <span class="s2">"7.0.0"</span><span class="p">,</span> |
| 309 | + <span class="nt">"download"</span><span class="p">:</span> <span class="p">{</span> |
| 310 | + <span class="nt">"link"</span><span class="p">:</span> <span class="s2">"https://github.com/PrestaShop/autoupgrade/releases/download/v7.0.0/autoupgrade-v7.0.0.zip"</span><span class="p">,</span> |
| 311 | + <span class="nt">"md5"</span><span class="p">:</span> <span class="s2">"c0d83aea9dbb03d7f2f698d011144d43"</span> |
| 312 | + <span class="p">},</span> |
| 313 | + <span class="nt">"changelog"</span><span class="p">:</span> <span class="s2">"https://build.prestashop-project.org/news/2025/autoupgrade-v7.0-release/"</span> |
| 314 | + <span class="p">}</span> |
| 315 | +<span class="p">}</span> |
| 316 | +</code></pre></div><p>If the new module version supports a different range of PrestaShop versions, you’ll need to add a new entry.</p> |
| 317 | +<p>The updated file will be published as part of the API release.</p> |
303 | 318 | </div> |
304 | 319 | </div> |
305 | 320 | </div> |
|
0 commit comments