You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing autofix for methods related to jQuery.sap.* (String Utils)
Methods related to jQuery.sap.* (String Utils) are deprecated. Therefore an autofix should be offered by UI5 linter.
Deprecated APIs:
jQuery.sap.camelCase
jQuery.sap.charToUpperCase
jQuery.sap.escapeRegExp
jQuery.sap.formatMessage
jQuery.sap.hashCode
jQuery.sap.hyphen
Deprecated Usage
vartextCamelVase=jQuery.sap.camelCase(" First Name Last ");vartextUpperCase=jQuery.sap.charToUpperCase("myValue",0);vartextEscapedRegx=jQuery.sap.escapeRegExp("ab.c");vartextWithReplacedPlaceholder=jQuery.sap.formatMessage("Say '{0}'",["Hello"]);varhashCode=jQuery.sap.hashCode("test");vartextHyphenated=jQuery.sap.hyphen("fooBar");
Recommended Usage
sap.ui.define(["sap/base/strings/camelize","sap/base/strings/capitalize","sap/base/strings/escapeRegExp","sap/base/strings/formatMessage","sap/base/strings/hash","sap/base/strings/hyphenate"],(camelize,capitalize,escapeRegExp,formatMessage,hash,hyphenate)=>{vartextCamelVase=camelize(" First Name Last ");vartextUpperCase=capitalize("myValue");vartextEscapedRegx=escapeRegExp("ab.c");vartextWithReplacedPlaceholder=formatMessage("Say '{0}'",["Hello"]);varhashCode=hash("test");vartextHyphenated=hyphenate("fooBar");});
Note for jQuery.sap.charToUpperCase: If no position is given or when it is negative or beyond the last character of the given string, the first character will be converted to upper case.
Note: In older UI5 versions, there were two additional jQuery based APIs available. jQuery.sap.unicode and jQuery.sap.isStringNFC. With UI5 1.58, these APIs were replaced by sap/base/strings/NormalizePolyfill. With the de-support of IE11, all three APIs (also NormalizePolyfill) were removed from the code base because functionality is already supported by native browser APIs. We should also come up with a proposal to offer a migration for these three cases.
The text was updated successfully, but these errors were encountered:
Missing autofix for methods related to jQuery.sap.* (String Utils)
Methods related to
jQuery.sap.* (String Utils)
are deprecated. Therefore an autofix should be offered by UI5 linter.Deprecated APIs:
Deprecated Usage
Recommended Usage
Note for
jQuery.sap.charToUpperCase
: If no position is given or when it is negative or beyond the last character of the given string, the first character will be converted to upper case.Note: In older UI5 versions, there were two additional jQuery based APIs available.
jQuery.sap.unicode
andjQuery.sap.isStringNFC
. With UI5 1.58, these APIs were replaced bysap/base/strings/NormalizePolyfill
. With the de-support of IE11, all three APIs (alsoNormalizePolyfill
) were removed from the code base because functionality is already supported by native browser APIs. We should also come up with a proposal to offer a migration for these three cases.The text was updated successfully, but these errors were encountered: