@tspro/ts-utils-lib 3.3.0 → 3.3.1
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 +5 -1
- package/README.md +30 -30
- package/dist/index.es5.iife.js +1 -1
- package/dist/index.es5.polyfilled.iife.js +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## [3.3.1] - 2026-01-24
|
|
3
|
+
### Fixed
|
|
4
|
+
- README.md.
|
|
5
|
+
|
|
2
6
|
## [3.3.0] - 2026-01-12
|
|
3
|
-
|
|
7
|
+
### Changed
|
|
4
8
|
- Loosen some Utils.Dom function arguments from HTMLElement to Element.
|
|
5
9
|
- Utils.Dom.addClass() and removeClass() accept multiple class names using variadic arg.
|
|
6
10
|
|
package/README.md
CHANGED
|
@@ -4,55 +4,55 @@
|
|
|
4
4
|
A small collection of TypeScript functions, containers, modules, etc. used
|
|
5
5
|
in my personal projects.
|
|
6
6
|
|
|
7
|
-
I do not use much AI in my work but this is exception. Lot of stuff in this
|
|
8
|
-
lib is written by AI.
|
|
9
|
-
|
|
10
7
|
## Links
|
|
8
|
+
[Homepage](https://pahkasoft.com/ts-utils-lib) |
|
|
11
9
|
[Repository](https://github.com/pahkasoft/ts-utils-lib) |
|
|
12
|
-
[Package](https://www.npmjs.com/package/@tspro/ts-utils-lib)
|
|
13
|
-
[Homepage](https://pahkasoft.github.io/ts-utils-lib)
|
|
14
|
-
|
|
15
|
-
Homepage contains TS Docs/API Reference.
|
|
10
|
+
[Package](https://www.npmjs.com/package/@tspro/ts-utils-lib)
|
|
16
11
|
|
|
17
|
-
##
|
|
18
|
-
Version `3.0.0` changed `Device`.
|
|
12
|
+
## Quick Start
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
Use version `3.1.1` with correct `CallTracker` instead.
|
|
14
|
+
### Install
|
|
22
15
|
|
|
23
|
-
## Install
|
|
24
16
|
`npm install @tspro/ts-utils-lib`
|
|
25
17
|
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
// Import
|
|
29
|
-
import { UniMap } from "@tspro/ts-utils-lib";
|
|
18
|
+
### Import
|
|
30
19
|
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
```ts
|
|
21
|
+
// Import required stuff.
|
|
22
|
+
import { UniMap, Utils } from "@tspro/ts-utils-lib";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Require
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
```ts
|
|
28
|
+
// Require required stuff.
|
|
29
|
+
const { UniMap, Utils } = require("@tspro/ts-utils-lib");
|
|
36
30
|
```
|
|
37
31
|
|
|
38
|
-
|
|
32
|
+
### Browser Script
|
|
33
|
+
|
|
39
34
|
- Available in version `2.1.0`.
|
|
40
35
|
- These bundles are transpiled with `ES5` target.
|
|
41
36
|
- With non-polyfilled versions you can use option to your own polyfilling choise.
|
|
42
37
|
|
|
43
38
|
```html
|
|
44
|
-
<!-- Load non-polyfilled or polyfilled bundles
|
|
45
|
-
<script src="https://unpkg.com/@tspro/ts-utils-lib@
|
|
46
|
-
<script src="https://unpkg.com/@tspro/ts-utils-lib@
|
|
39
|
+
<!-- Unpkg CDM: Load non-polyfilled or polyfilled bundles. -->
|
|
40
|
+
<script src="https://unpkg.com/@tspro/ts-utils-lib@3.3.1/dist/index.es5.iife.js"></script>
|
|
41
|
+
<script src="https://unpkg.com/@tspro/ts-utils-lib@3.3.1/dist/index.es5.polyfilled.iife.js"></script>
|
|
47
42
|
|
|
48
|
-
<!-- Load non-polyfilled or polyfilled bundles
|
|
49
|
-
<script src="https://cdn.jsdelivr.net/npm/@tspro/ts-utils-lib@
|
|
50
|
-
<script src="https://cdn.jsdelivr.net/npm/@tspro/ts-utils-lib@
|
|
43
|
+
<!-- jsDelivr CDN: Load non-polyfilled or polyfilled bundles. -->
|
|
44
|
+
<script src="https://cdn.jsdelivr.net/npm/@tspro/ts-utils-lib@3.3.1/dist/index.es5.iife.js"></script>
|
|
45
|
+
<script src="https://cdn.jsdelivr.net/npm/@tspro/ts-utils-lib@3.3.1/dist/index.es5.polyfilled.iife.js"></script>
|
|
51
46
|
|
|
52
|
-
<!-- JS example: -->
|
|
53
47
|
<script>
|
|
54
48
|
const { UniMap, Utils } = window.TsUtilsLib;
|
|
55
|
-
const map = new UniMap();
|
|
56
|
-
console.log(Utils.Str.stringify(map));
|
|
57
49
|
</script>
|
|
58
50
|
```
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
const map = new UniMap<string, number>();
|
|
56
|
+
|
|
57
|
+
console.log(Utils.Str.stringify(map));
|
|
58
|
+
```
|