mediawiki.util: Move mw.RegExp over as well to simplify migration
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 9 Sep 2019 17:23:34 +0000 (18:23 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 9 Sep 2019 17:25:09 +0000 (18:25 +0100)
commit5a5abfd18a6b27f0919fe2ee391fffd09bf637df
tree86a6598059343808de9a2deebd9fb9b5e72fead8
parent982027f9d5636e6c9f2bf17b020742498cc6c014
mediawiki.util: Move mw.RegExp over as well to simplify migration

Follows-up 8697ba835463c94. In order to allow for a simpler migration
and to keep compatibility over 1 stable release at least, deprecate
the module only, and keep the alias in the destination module.

This means 'mediawiki.RegExp' can be replaced with 'mediawiki.util',
without it causing code to break. It will still warn about
the method being deprecated, which can then be fixed separately,
depending on whether compat is needed.

This is mainly to reduce risk from mass migrations in user scripts
and gadgets (to do in two separate passes).

Bug: T218339
Change-Id: I07ba0a481b83fe704be3a17199070bafba4d5233
resources/Resources.php
resources/src/mediawiki.RegExp.js [deleted file]
resources/src/mediawiki.util/util.js