@rtorcato/js-common 2.0.1 → 2.2.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/CHANGELOG.md +14 -0
- package/dist/html/index.d.ts +2 -2
- package/dist/i18n/index.d.ts +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.2.0](https://github.com/rtorcato/js-common/compare/v2.1.0...v2.2.0) (2026-06-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **docs:** search, changelog page, CI guardrail ([fd95637](https://github.com/rtorcato/js-common/commit/fd9563767e962116dc0e5bb9ad9a95c5f5ce4d8f))
|
|
7
|
+
|
|
8
|
+
# [2.1.0](https://github.com/rtorcato/js-common/compare/v2.0.1...v2.1.0) (2026-06-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **docs:** full API reference via TypeDoc ([337eb2c](https://github.com/rtorcato/js-common/commit/337eb2c43122685a5fa8321865112800e67c404c))
|
|
14
|
+
|
|
1
15
|
## [2.0.1](https://github.com/rtorcato/js-common/compare/v2.0.0...v2.0.1) (2026-06-10)
|
|
2
16
|
|
|
3
17
|
|
package/dist/html/index.d.ts
CHANGED
|
@@ -17,9 +17,9 @@ export declare function unescapeHtml(str: string): string;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function stripHtmlTags(str: string): string;
|
|
19
19
|
/**
|
|
20
|
-
* Converts a plain text string to a simple HTML paragraph (
|
|
20
|
+
* Converts a plain text string to a simple HTML paragraph (newlines become `<br>` tags).
|
|
21
21
|
* @param str The plain text string.
|
|
22
|
-
* @returns The HTML string with
|
|
22
|
+
* @returns The HTML string with `<br>` tags.
|
|
23
23
|
*/
|
|
24
24
|
export declare function textToHtml(str: string): string;
|
|
25
25
|
/**
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function formatDateI18n(date: Date, locale?: string, options?: In
|
|
|
22
22
|
/**
|
|
23
23
|
* Simple translation function using a dictionary object.
|
|
24
24
|
* @param key The translation key.
|
|
25
|
-
* @param dict The dictionary object (e.g., { en: { hello: 'Hello' }, fr: { hello: 'Bonjour' } }).
|
|
25
|
+
* @param dict The dictionary object (e.g., `{ en: { hello: 'Hello' }, fr: { hello: 'Bonjour' } }`).
|
|
26
26
|
* @param lang The language code (optional, defaults to detected language).
|
|
27
27
|
* @returns {string}
|
|
28
28
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rtorcato/js-common",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "JavaScript and TypeScript common code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"test:watch": "vitest --watch",
|
|
42
42
|
"coverage": "vitest run --coverage",
|
|
43
43
|
"benchmark": "node scripts/benchmark.mjs",
|
|
44
|
+
"docs:generate": "node scripts/generate-module-docs.mjs",
|
|
44
45
|
"commit": "cz",
|
|
45
46
|
"================================================": ""
|
|
46
47
|
},
|