Move $.byteLength and $.trimByteLength to new module 'mediawiki.String'
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 19 Feb 2018 20:23:36 +0000 (21:23 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 22 Feb 2018 05:05:17 +0000 (21:05 -0800)
These methods do not belong on the jQuery object. And to resolve
T185948, we need to also add codePointLength and trimCodePointLength,
and this new module seems like a good place to put them.

There is no `mw.String` global, this module has to be used via `require()`.

Deprecations:
* Function `$.byteLength` (from module 'jquery.byteLength') is
  deprecated, use `require( 'mediawiki.String' ).byteLength` instead.
* Function `$.trimByteLength` (from module 'jquery.byteLimit') is
  deprecated, use `require( 'mediawiki.String' ).trimByteLength` instead.
* Module 'jquery.byteLength' is deprecated, use 'mediawiki.String' instead.

Note that `$.fn.byteLimit` and the 'jquery.byteLimit' module are not
deprecated.

Change-Id: I2501a79efee644e5f4a9f5c977fe49c8c05c6eb3


No differences found