Semantic MediaWiki 5.1.0

From semantic-mediawiki.org
Semantic MediaWiki 5.1.0Semantic MediaWiki 5.1.0
This page is a translated version of the page Semantic MediaWiki 5.1.0 and the translation is 100% complete.

Semantic MediaWiki 5.1.0
Date de sortie: 24 07 2025
Version précédente : Semantic MediaWiki 5.1.0
Version suivante : Semantic MediaWiki 6.0.0
Compatible avec (en) : MW 1.39.0 - 1.43.1
Dernière version :
SMW 6.0.1

La version 5.1.0 de Semantic MediaWiki est la publication suivante après la version majeure Semantic MediaWiki 5.0.0. Elle inclut la correction de bogues, deux nouveaux paramètres de configuration et des mises à jour de traductions. Voir les NOTES DE PUBLICATION en anglais ci-dessous pour plus d'informations.

Nous recommandons aux utilisateurs de faire leur mise à jour dès que possible.

Veuillez vous reporter aux pages d'aide concernant l'installation ou la mise à jour de Semantic MediaWiki pour obtenir des instructions détaillées sur la marche à suivre.

Semantic MediaWiki 5.1.0

Released on July 24, 2025.

Summary

This is a minor release. Thus, it contains no breaking changes, only new features and fixes.

Like SMW 5.0.0, this version is compatible with MediaWiki 1.39 up to 1.43 and PHP 8.1 up to 8.4. For more detailed information, see the compatibility matrix.

SMW 5.1.0 brings two new configuration settings and enhances API outputs by including inverse properties. While this version also improves compatibility with MediaWiki 1.44, various issues remain, so this version is known to not yet support MediaWiki 1.44. We recommend SMW users stay on MediaWiki 1.43 LTS for now.

Upgrading

No need to run "update.php" or any other migration scripts.

Get the new version via Composer:

  • Step 1: if you are upgrading from SMW older than 5.0.0, ensure the SMW version in composer.local.json is ^5.1.0
  • Step 2: run composer in your MediaWiki directory: composer update --no-dev --optimize-autoloader

Get the new version via Git:

This is only for those who have installed SMW via Git.

  • Step 1: do a git pull in the SemanticMediaWiki directory
  • Step 2: run composer update --no-dev --optimize-autoloader in the MediaWiki directory

Changes

  • Added smwgSetParserCacheTimestamp setting to allow disabling invalidation of the parser cache (by Professional Wiki)
  • Added smwgSetParserCacheKeys setting to give control over how the parser cache key is built (by Professional Wiki)
  • Added support for serializing inverse (incoming) properties in API output. The API output now contains a direction key (direct or inverse) for each property (by Gesinn.it)
The parser function was called multiple times but with a different language code ("en") which is to be avoided as content of a page is generally expected to be represented by a single language.