@leancodepl/utils 8.5.1 → 9.0.0

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/index.cjs.js CHANGED
@@ -32,7 +32,7 @@ function transformFirst(value, transformFn) {
32
32
  }
33
33
  /**
34
34
  * Converts the first character of a string to lowercase.
35
- *
35
+ *
36
36
  * @param value - The string to transform
37
37
  * @returns The string with the first character in lowercase
38
38
  * @example
@@ -45,7 +45,7 @@ function transformFirst(value, transformFn) {
45
45
  }
46
46
  /**
47
47
  * Converts the first character of a string to uppercase.
48
- *
48
+ *
49
49
  * @param value - The string to transform
50
50
  * @returns The string with the first character in uppercase
51
51
  * @example
package/index.esm.js CHANGED
@@ -30,7 +30,7 @@ function transformFirst(value, transformFn) {
30
30
  }
31
31
  /**
32
32
  * Converts the first character of a string to lowercase.
33
- *
33
+ *
34
34
  * @param value - The string to transform
35
35
  * @returns The string with the first character in lowercase
36
36
  * @example
@@ -43,7 +43,7 @@ function transformFirst(value, transformFn) {
43
43
  }
44
44
  /**
45
45
  * Converts the first character of a string to uppercase.
46
- *
46
+ *
47
47
  * @param value - The string to transform
48
48
  * @returns The string with the first character in uppercase
49
49
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/utils",
3
- "version": "8.5.1",
3
+ "version": "9.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -10,7 +10,7 @@
10
10
  "node": ">=18.0.0"
11
11
  },
12
12
  "dependencies": {
13
- "@leancodepl/api-date": "8.5.1",
13
+ "@leancodepl/api-date": "9.0.0",
14
14
  "tiny-invariant": ">=1.3.1"
15
15
  },
16
16
  "peerDependencies": {
@@ -21,4 +21,4 @@ export declare function toLowerFirst(value: string): string;
21
21
  * // Result: 'UserName'
22
22
  * ```
23
23
  */
24
- export declare function toUpperFirst(value: string): string;
24
+ export declare function toUpperFirst<TValue extends string>(value: TValue): Capitalize<TValue>;