@visulima/string 3.0.0-alpha.6 → 3.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,41 @@
1
+ ## @visulima/string [3.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/string@3.0.0-alpha.7...@visulima/string@3.0.0-alpha.8) (2026-03-26)
2
+
3
+ ### Features
4
+
5
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.7
11
+
12
+ ## @visulima/string [3.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/string@3.0.0-alpha.6...@visulima/string@3.0.0-alpha.7) (2026-03-26)
13
+
14
+ ### Bug Fixes
15
+
16
+ * **docs:** correct code examples found during verification ([8e4f8c4](https://github.com/visulima/visulima/commit/8e4f8c4b0b1664c232fe5ae721b771c72d29a152))
17
+ * **string:** use workspace:* for internal [@visulima](https://github.com/visulima) deps ([767788d](https://github.com/visulima/visulima/commit/767788de6a58ab0d9980f295829de40a7d19bef8))
18
+ * **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
19
+
20
+ ### Documentation
21
+
22
+ * add missing documentation pages for email, string, and storage-client ([623f8af](https://github.com/visulima/visulima/commit/623f8afd2ea03dd2805fb2d7a9d10083571224bb))
23
+
24
+ ### Miscellaneous Chores
25
+
26
+ * **string:** migrate deps to pnpm catalogs ([ae5e04a](https://github.com/visulima/visulima/commit/ae5e04a8823320f54dd0da351f9168a58fa5926c))
27
+ * **string:** update dependencies ([ac1b54e](https://github.com/visulima/visulima/commit/ac1b54e55d33bd1bd381a8d59f664cd7911a4fc3))
28
+ * visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
29
+
30
+ ### Code Refactoring
31
+
32
+ * **docs:** migrate Nextra components to fumadocs-ui, remove Nextra stripping ([484878f](https://github.com/visulima/visulima/commit/484878f01879363ef5e9a0282904dc4627d6060c))
33
+
34
+
35
+ ### Dependencies
36
+
37
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.6
38
+
1
39
  ## @visulima/string [3.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/string@3.0.0-alpha.5...@visulima/string@3.0.0-alpha.6) (2026-03-06)
2
40
 
3
41
  ### Bug Fixes
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ export { closestString } from './closest-string.js';
23
23
  export { compareSimilarity } from './compare-similarity.js';
24
24
  export { countOccurrences } from './packem_shared/countOccurrences-CS9XprQN.js';
25
25
  export { direction } from './packem_shared/direction-BVhR8MOQ.js';
26
- export { excerpt } from './packem_shared/excerpt-BUidaKYe.js';
26
+ export { excerpt } from './packem_shared/excerpt-COsVNttN.js';
27
27
  export { getStringTruncatedWidth } from './get-string-truncated-width.js';
28
28
  export { getStringWidth } from './get-string-width.js';
29
29
  export { closestN } from './packem_shared/closestN-Cvsw0Fue.js';
@@ -41,17 +41,20 @@ declare global {
41
41
  * @param index The zero-based index of the desired character.
42
42
  */
43
43
  charAt<T extends string = string, I extends number = number>(this: T, index: I): CharAt<T, I>;
44
+
44
45
  /**
45
46
  * Returns a string that contains the concatenation of two or more strings.
46
47
  * @param strings The strings to append to the end of the string.
47
48
  */
48
49
  concat<T extends string = string, S extends string[] | string = string>(this: T, ...strings: S extends string ? [S] : S extends string[] ? S : never): S extends string ? Concat<[T, S]> : S extends string[] ? Concat<[T, ...S]> : never;
50
+
49
51
  /**
50
52
  * Returns true if the sequence of elements of searchString converted to a String is the
51
53
  * same as the corresponding elements of this object (converted to a String) starting at
52
54
  * position. Otherwise returns false.
53
55
  */
54
56
  endsWith<T extends string = string, S extends string = string, P extends number | undefined = undefined>(this: T, searchString: S, position?: P): EndsWith<T, S, P>;
57
+
55
58
  /**
56
59
  * Returns true if searchString appears as a substring of the result of converting this
57
60
  * object to a String, at one or more positions that are greater than or equal to
@@ -60,10 +63,12 @@ declare global {
60
63
  * @param position If position is undefined, 0 is assumed, so as to search all of the String.
61
64
  */
62
65
  includes<T extends string = string, S extends string = string, P extends number = 0>(this: T, searchString: S, position?: P): Includes<T, S, P>;
66
+
63
67
  /**
64
68
  * Returns the length of a String object.
65
69
  */
66
70
  length: Length<this>;
71
+
67
72
  /**
68
73
  * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
69
74
  * The padding is applied from the end (right) of the current string.
@@ -71,6 +76,7 @@ declare global {
71
76
  * @param fillString The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied.
72
77
  */
73
78
  padEnd<T extends string = string, N extends number = number, P extends string = " ">(this: T, maxLength: N, fillString?: P): PadEnd<T, N, P>;
79
+
74
80
  /**
75
81
  * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
76
82
  * The padding is applied from the start (left) of the current string.
@@ -78,51 +84,61 @@ declare global {
78
84
  * @param fillString The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied.
79
85
  */
80
86
  padStart<T extends string = string, N extends number = number, P extends string = " ">(this: T, maxLength: N, fillString?: P): PadStart<T, N, P>;
87
+
81
88
  /**
82
89
  * Replace text in a string, using a regular expression or search string.
83
90
  * @param searchValue A string to search for.
84
91
  * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
85
92
  */
86
93
  replace<T extends string = string, S extends RegExp | string = string, R extends string = string>(this: T, searchValue: S, replaceValue: R): Replace<T, S, R>;
94
+
87
95
  /**
88
96
  * Replace all instances of a substring in a string, using a regular expression or search string.
89
97
  * @param searchValue A string to search for.
90
98
  * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
91
99
  */
92
100
  replaceAll<T extends string = string, S extends RegExp | string = string, R extends string = string>(this: T, searchValue: S, replaceValue: R): ReplaceAll<T, S, R>;
101
+
93
102
  /**
94
103
  * Returns a section of a string.
95
104
  * @param start The index to the beginning of the specified portion of stringObj.
96
105
  * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
97
106
  */
98
107
  slice<T extends string = string, S extends number = number, E extends number | undefined = undefined>(this: T, start?: S, end?: E): Slice<T, S, E>;
108
+
99
109
  /**
100
110
  * Split a string into substrings using the specified separator and return them as an array.
101
111
  * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
102
112
  */
103
113
  split<T extends string = string, S extends string = string>(this: T, separator: S): Split<T, S>;
114
+
104
115
  /**
105
116
  * Returns true if the sequence of elements of searchString converted to a String is the
106
117
  * same as the corresponding elements of this object (converted to a String) starting at
107
118
  * position. Otherwise returns false.
108
119
  */
109
120
  startsWith<T extends string = string, S extends string = string, P extends number = 0>(this: T, searchString: S, position?: P): StartsWith<T, S, P>;
121
+
110
122
  /**
111
123
  * Converts all alphabetic characters in a string to lowercase.
112
124
  */
113
125
  toLowerCase<T extends string = string>(this: T): ToLowerCase<T>;
126
+
114
127
  /**
115
128
  * Converts all alphabetic characters in a string to uppercase.
116
129
  */
117
130
  toUpperCase<T extends string = string>(this: T): ToUpperCase<T>;
131
+
118
132
  /**
119
133
  * Returns a string with all whitespace removed from both ends of a string.
120
134
  */
121
135
  trim<T extends string = string>(this: T): Trim<T>;
136
+
122
137
  /**
123
138
  * Returns a string with all whitespace removed from the end of a string.
124
139
  */
125
140
  trimEnd<T extends string = string>(this: T): TrimEnd<T>;
141
+
126
142
  /**
127
143
  * Returns a string with all whitespace removed from the start of a string.
128
144
  */
@@ -1,7 +1,7 @@
1
1
  import { truncate } from '../truncate.js';
2
2
 
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
+ function getDefaultExportFromCjs(x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
5
  }
6
6
 
7
7
  var rfdc_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/string",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "Functions for manipulating strings.",
5
5
  "keywords": [
6
6
  "visulima",
@@ -227,6 +227,9 @@
227
227
  "README.md",
228
228
  "CHANGELOG.md"
229
229
  ],
230
+ "dependencies": {},
231
+ "peerDependencies": {},
232
+ "optionalDependencies": {},
230
233
  "engines": {
231
234
  "node": ">=22.13 <=25.x"
232
235
  },