@thi.ng/strings 3.4.11 → 3.4.13

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,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-08-12T13:14:08Z
3
+ - **Last updated**: 2023-08-27T11:20:59Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [3.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.4.12) (2023-08-22)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - empty string check for capitalize() ([f2dcee5](https://github.com/thi-ng/umbrella/commit/f2dcee5))
17
+
12
18
  ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.4.0) (2023-02-27)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
10
  This project is part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
11
+ [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and anti-framework.
12
12
 
13
13
  - [About](#about)
14
14
  - [General](#general)
@@ -141,7 +141,7 @@ For Node.js REPL:
141
141
  const strings = await import("@thi.ng/strings");
142
142
  ```
143
143
 
144
- Package sizes (brotli'd, pre-treeshake): ESM: 4.62 KB
144
+ Package sizes (brotli'd, pre-treeshake): ESM: 4.61 KB
145
145
 
146
146
  ## Dependencies
147
147
 
package/case.js CHANGED
@@ -15,7 +15,7 @@ export const lower = (x) => x.toLowerCase();
15
15
  *
16
16
  * @param x - string to transform
17
17
  */
18
- export const capitalize = (x) => x[0].toUpperCase() + x.substring(1);
18
+ export const capitalize = (x) => x.length ? x[0].toUpperCase() + x.substring(1) : x;
19
19
  /**
20
20
  * Converts a CamelCase string into kebab case, with optional custom
21
21
  * delimiter (`-` by default).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/strings",
3
- "version": "3.4.11",
3
+ "version": "3.4.13",
4
4
  "description": "Various string formatting & utility functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.9.3",
38
- "@thi.ng/errors": "^2.3.3",
39
- "@thi.ng/hex": "^2.3.15",
40
- "@thi.ng/memoize": "^3.1.36"
37
+ "@thi.ng/api": "^8.9.5",
38
+ "@thi.ng/errors": "^2.3.5",
39
+ "@thi.ng/hex": "^2.3.17",
40
+ "@thi.ng/memoize": "^3.1.38"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.36.4",
44
- "@thi.ng/testament": "^0.3.21",
44
+ "@thi.ng/testament": "^0.3.23",
45
45
  "rimraf": "^5.0.1",
46
46
  "tools": "^0.0.1",
47
- "typedoc": "^0.24.8",
48
- "typescript": "^5.1.6"
47
+ "typedoc": "^0.25.0",
48
+ "typescript": "^5.2.2"
49
49
  },
50
50
  "keywords": [
51
51
  "ansi",
@@ -200,5 +200,5 @@
200
200
  "thi.ng": {
201
201
  "year": 2015
202
202
  },
203
- "gitHead": "399f8c53d66b9b763d16c21bb59f145df5f59514\n"
203
+ "gitHead": "5929dd20497668496af13415cdf784a4d6f69aa3\n"
204
204
  }