Update version 8.0.0 information.

This commit is contained in:
Daniel Kraus
2021-04-06 21:35:59 +02:00
parent f9b5de64b2
commit 588b7d6eba
3 changed files with 23 additions and 31 deletions

View File

@ -7,17 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
For changes prior to version 6.0.0, please see [`NEWS.old`](news.old). For changes prior to version 6.0.0, please see [`NEWS.old`](news.old).
## [7.1.0][] - 2021-03-21 ## [8.0.0][] - 2021-04-06
### Changed ### Changed
- The minimum required version of MediaWiki is now 1.35. - The minimum required version of MediaWiki is now 1.35.
- The values of `data-*` attributes in HTML tags are now being ignored.
### Fixed ### Fixed
- Replace PageContentSave with MultiContentSave to fix compatibility with MediaWiki 1.35. - Replace PageContentSave with MultiContentSave to fix compatibility with MediaWiki 1.35.
- The default value for wgLinkTitlesParseOnRender is change back to `false` as support - The default value for wgLinkTitlesParseOnRender is change back to `false` as support
for MediaWiki 1.35+ is fixed. for MediaWiki 1.35+ is fixed.
- Progress reporting by `linktitles-cli.php` is no longer incorrect when a start
page is defined.
## [7.0.0][] - 2020-12-23 ## [7.0.0][] - 2020-12-23

View File

@ -3,7 +3,7 @@
[MediaWiki extension](https://www.mediawiki.org/wiki/Extension:LinkTitles) that [MediaWiki extension](https://www.mediawiki.org/wiki/Extension:LinkTitles) that
automatically adds links to words that match titles of existing pages. automatically adds links to words that match titles of existing pages.
Minimum requirement: MediaWiki 1.28. Source code documentation can be Minimum requirement: MediaWiki 1.35. Source code documentation can be
found at the [Github project pages](https://bovender.github.io/LinkTitles). found at the [Github project pages](https://bovender.github.io/LinkTitles).
## Table of contents ## Table of contents
@ -70,6 +70,8 @@ are fixed.
Version | Date | Major changes || Version | Date | Major changes ||
-|-|-|- -|-|-|-
8 | 04-2021 | Minimum required version is 1.35. | [Details][v8.0.0]
7 | 12-2020 | Minimum required version is 1.32. |
6 | 12-2019 | Renamed deprecated MW constant for compatibility with MW version 1.34, minimum required version is 1.28. | [Details][v6.0.0] 6 | 12-2019 | Renamed deprecated MW constant for compatibility with MW version 1.34, minimum required version is 1.28. | [Details][v6.0.0]
5 | 09-2017 | Rewrote the entire extension; vastly improved namespace support; some breaking changes | [Details][v5.0.0] 5 | 09-2017 | Rewrote the entire extension; vastly improved namespace support; some breaking changes | [Details][v5.0.0]
4 | 11-2016 | Changed format of the extension for MediaWiki version 1.25; added basic namespace support | [Details][v4.0.0] 4 | 11-2016 | Changed format of the extension for MediaWiki version 1.25; added basic namespace support | [Details][v4.0.0]
@ -77,6 +79,8 @@ Version | Date | Major changes ||
2 | 11-2013 | Introduced smart mode | [Details][2.0.0] 2 | 11-2013 | Introduced smart mode | [Details][2.0.0]
1 | 05-2012 | First stable release | 1 | 05-2012 | First stable release |
[v8.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v8.0.0
[v6.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v6.0.0
[v6.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v6.0.0 [v6.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v6.0.0
[v5.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v5.0.0 [v5.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v5.0.0
[v4.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v4.0.0 [v4.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v4.0.0
@ -107,27 +111,6 @@ Do not forget to adjust the [configuration](#configuration) to your needs.
If your MediaWiki version is really old (1.24 and older), you need to use If your MediaWiki version is really old (1.24 and older), you need to use
a [different mechanism](https://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension). a [different mechanism](https://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension).
## Important note for MediaWiki versions 1.32 and newer
**Links can no longer be automatically added when a page is saved with
MediaWiki versions 1.32 and newer.** This is because MediaWiki changed the
signature of an important callback function. See [GitHub issue #43][issue-43]
and [T222413][] for more information. There's a slight chance that link-on-edit
will work again in a future version of MediaWiki (that is, if/when pull request
[467308][] is merged). Until that happens, admins are advised to use the
link-on-render feature (which is now enabled by default).
A workaround is to set up a cron job for the command-line tool, e.g.
# /etc/crontab
# Runs at 1 a.m. every morning.
# m h dom mon dow user command
0 1 * * * www-data php -f /var/www/html/extensions/LinkTitles/linktitles-cli.php
[issue-43]: https://github.com/bovender/LinkTitles/issues/43
[T222413]: https://phabricator.wikimedia.org/T222413
[467308]: https://gerrit.wikimedia.org/r/467308
## Usage ## Usage
### Editing a page ### Editing a page
@ -448,7 +431,7 @@ reload interval is 1 second.
## Development ## Development
As of December 2020, there is only one major branch where all development takes As of December 2020, there is only one major branch where all development takes
place. I used to follow Vincent Driessen's advice on [A successful Git place. Formerly, I used to follow Vincent Driessen's advice on [A successful Git
branching model](http://nvie.com/git-model), but this did not work out for me branching model](http://nvie.com/git-model), but this did not work out for me
after all. Pull requests from other developers were usually issued against the after all. Pull requests from other developers were usually issued against the
`master` branch, and the constant switching between the `develop` and the `master` `master` branch, and the constant switching between the `develop` and the `master`
@ -463,6 +446,8 @@ branches was prone to cause a mess.
- @yoshida3669, namespace-related bug fixes - @yoshida3669, namespace-related bug fixes
- Caleb Mingle (@dentafrice), bug fix - Caleb Mingle (@dentafrice), bug fix
- @paladox, bug fixes and compatilibity fixes - @paladox, bug fixes and compatilibity fixes
- bluedreamer
- j-zero
### Testing ### Testing
@ -475,12 +460,14 @@ know and I will try to add unit tests and fix it.
If you have [Docker](https://www.docker.com) available, simply to this: If you have [Docker](https://www.docker.com) available, simply to this:
docker build -t bovender/linktitles . docker build -t bovender/linktitles .
docker run -it --rm bovender/linktitles # repeat as necessary # repeat the following as necessary
docker run -it --rm -v `pwd`:/var/www/html/extensions/LinkTitles bovender/linktitles
Or: Or:
make build-test-container make build-test-container
make test # repeat as necessary # repeat the following as necessary
make test
#### The Olde Way #### The Olde Way

View File

@ -2,16 +2,18 @@
"name": "LinkTitles", "name": "LinkTitles",
"author": [ "author": [
"[https://www.mediawiki.org/wiki/User:Bovender Daniel Kraus (bovender)]", "[https://www.mediawiki.org/wiki/User:Bovender Daniel Kraus (bovender)]",
"Ulrich Strauss (c0nnex)", "Adrian (bluedreamer)",
"j-zero",
"Brent Laabs (labster)", "Brent Laabs (labster)",
"tetsuya-zama",
"yoshida",
"Caleb Mingle (dentafrice)", "Caleb Mingle (dentafrice)",
"paladox" "paladox",
"Ulrich Strauss (c0nnex)",
"tetsuya-zama",
"yoshida"
], ],
"type": "parserhook", "type": "parserhook",
"url": "https://www.mediawiki.org/wiki/Extension:LinkTitles", "url": "https://www.mediawiki.org/wiki/Extension:LinkTitles",
"version": "7.1.0", "version": "8.0.0",
"license-name": "GPL-2.0+", "license-name": "GPL-2.0+",
"descriptionmsg": "linktitles-desc", "descriptionmsg": "linktitles-desc",
"requires": { "requires": {