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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,12 @@
8
8
- feature: added `AppendLine` and `AppendLineFormat`
9
9
- feature: added hexadecimal conversion specifier
10
10
- bugfix: `StringBuilder` initialization without parameter adds empty string to internal Values Array.
11
-
- bugfix: When there is no placeholder in the template passed to String.Format it should return the original template
11
+
- bugfix: When there is no placeholder in the template passed to String.format it should return the original template
12
+
13
+
#### 1.5.0
14
+
- Using latest typescript version, please check if your environment still works with this version before upgrading!
15
+
- feature: !IMPORTANT methods/properties starting with uppercase are marked deprecated now and will be removed in future versions! Check the deprecated infos
16
+
- feature: added class `$String` for everybody who is facing issues when `String` is used.
17
+
- feature: `String.isNullOrWhiteSpace` accepts null or undefined now
import { StringBuilder, join, format, isNullOrWhiteSpace } from'typescript-string-operations';
10
14
```
15
+
16
+
When migrating from Version 1.4.1 or lower, you can also import the class `String`. Using this String class would override the native `String` object from JavaScript. We will remove this declaration with the next major release
| `IsNullOrWhiteSpace` | `Method` | returns true value if given parameter is either null, empty or undefined. | `format`, `args`
102
-
| `Format`| `Method` | Converts the value of objects to strings based on the formats specified and inserts them into another string. | `format`, `args`
103
-
| `Join`| `Method` | Combines arguments delimited by given seperator.| `delimiter`,`args`
104
-
|`Join`|`Method`| Combines arguments delimited by given seperator from array. |`delimiter`,`array`|
110
+
|`empty`|`Property`| simply returns `""`. |
111
+
| `isNullOrWhiteSpace` | `Method` | returns true value if given parameter is either null, empty or undefined. | `format`, `...args`
112
+
| `format`/`formatString` | `Method` | Converts the value of objects to strings based on the formats specified and inserts them into another string. | `format`, `...args`
113
+
| `join`/`joinString` | `Method` | Combines arguments delimited by given seperator.| `delimiter`,`...args`
114
+
|`join`/`joinString`|`Method`| Combines arguments delimited by given seperator from array. |`delimiter`,`array`|
105
115
106
116
107
117
### StringBuilder
@@ -117,7 +127,7 @@ var builder = new StringBuilder("My favorite fruits are: ");
117
127
builder.Append("Apples, ");
118
128
builder.Append("Bananas ");
119
129
120
-
//of course using String.Format()
130
+
// using String.format() internally
121
131
builder.AppendFormat("and especially {0:U}!", favoriteFruit);
122
132
builder.AppendFormat(" I eat {0} every day!", 10);
123
133
@@ -131,8 +141,8 @@ var fruits = builder.ToString();
0 commit comments