Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit da2c349

Browse files
committed
docs(changelog): add deprecation notice
- Add deprecation notice for `angular.lowercase` and `angular.uppercase`
1 parent 9399d68 commit da2c349

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,7 @@ This version of AngularJS is problematic due to a issue during its release. Plea
20282028

20292029
- The `ngTouch` module's `ngClick` directive has been deprecated and disabled by default. See the breaking
20302030
changes section for more information
2031+
- The `angular.lowercase` and `angular.uppercase` functions have been deprecated. It is recommended to use `String.prototype.toLowerCase` and `String.prototype.toUpperCase` functions instead.
20312032

20322033
## Bug Fixes
20332034

src/Angular.js

+24
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,33 @@ var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
122122
// This is used so that it's possible for internal tests to create mock ValidityStates.
123123
var VALIDITY_STATE_PROPERTY = 'validity';
124124

125+
125126
var hasOwnProperty = Object.prototype.hasOwnProperty;
126127

128+
/**
129+
* @ngdoc function
130+
* @name angular.lowercase
131+
* @module ng
132+
* @kind function
133+
* @deprecated
134+
*
135+
* @description Converts the specified string to lowercase.
136+
* @param {string} string String to be converted to lowercase.
137+
* @returns {string} Lowercased string.
138+
*/
127139
var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};
140+
141+
/**
142+
* @ngdoc function
143+
* @name angular.uppercase
144+
* @module ng
145+
* @kind function
146+
* @deprecated
147+
*
148+
* @description Converts the specified string to uppercase.
149+
* @param {string} string String to be converted to uppercase.
150+
* @returns {string} Uppercased string.
151+
*/
128152
var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};
129153

130154

0 commit comments

Comments
 (0)