@trackunit/shared-utils 0.0.72 → 0.0.74

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/README.md CHANGED
@@ -1,7 +1,3 @@
1
- > **⚠️ Beta**
2
- >
3
- > This is a beta version and subject to change without notice.
4
-
5
1
  # Shared utils
6
2
 
7
3
  This library is meant for utility functions that can be used across the sdk not meant for use by external developers.
package/index.cjs.js CHANGED
@@ -1007,6 +1007,7 @@ const booleanCompare = (a, b) => {
1007
1007
  * @example capitalize("Test") // "Test"
1008
1008
  * @example capitalize("test test") // "Test test"
1009
1009
  * @example capitalize("test-test") // "Test-test"
1010
+ * @deprecated Use `capitalize` from `string-ts` instead
1010
1011
  */
1011
1012
  const capitalize = (s) => {
1012
1013
  if (!s) {
@@ -1022,6 +1023,7 @@ const capitalize = (s) => {
1022
1023
  * @example titleCase("test") // "Test"
1023
1024
  * @example titleCase("Test") // "Test"
1024
1025
  * @example titleCase("test TeSt") // "Test test"
1026
+ * @deprecated Use `titleCase` from `string-ts` instead
1025
1027
  */
1026
1028
  const titleCase = (s) => {
1027
1029
  return s.trimStart().charAt(0).toUpperCase() + s.trimStart().substring(1).toLowerCase().trimEnd();
package/index.esm.js CHANGED
@@ -1005,6 +1005,7 @@ const booleanCompare = (a, b) => {
1005
1005
  * @example capitalize("Test") // "Test"
1006
1006
  * @example capitalize("test test") // "Test test"
1007
1007
  * @example capitalize("test-test") // "Test-test"
1008
+ * @deprecated Use `capitalize` from `string-ts` instead
1008
1009
  */
1009
1010
  const capitalize = (s) => {
1010
1011
  if (!s) {
@@ -1020,6 +1021,7 @@ const capitalize = (s) => {
1020
1021
  * @example titleCase("test") // "Test"
1021
1022
  * @example titleCase("Test") // "Test"
1022
1023
  * @example titleCase("test TeSt") // "Test test"
1024
+ * @deprecated Use `titleCase` from `string-ts` instead
1023
1025
  */
1024
1026
  const titleCase = (s) => {
1025
1027
  return s.trimStart().charAt(0).toUpperCase() + s.trimStart().substring(1).toLowerCase().trimEnd();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/shared-utils",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -7,6 +7,7 @@
7
7
  * @example capitalize("Test") // "Test"
8
8
  * @example capitalize("test test") // "Test test"
9
9
  * @example capitalize("test-test") // "Test-test"
10
+ * @deprecated Use `capitalize` from `string-ts` instead
10
11
  */
11
12
  export declare const capitalize: (s: string | null | undefined) => string;
12
13
  /**
@@ -17,6 +18,7 @@ export declare const capitalize: (s: string | null | undefined) => string;
17
18
  * @example titleCase("test") // "Test"
18
19
  * @example titleCase("Test") // "Test"
19
20
  * @example titleCase("test TeSt") // "Test test"
21
+ * @deprecated Use `titleCase` from `string-ts` instead
20
22
  */
21
23
  export declare const titleCase: (s: string) => string;
22
24
  /**