@tspro/ts-utils-lib 1.21.0 → 2.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/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
  # Changelog
2
+ ## [2.0.0] - 2025-10-31
3
+ ### **Breaking Major Update**
4
+ - Removed all deprecated functions.
5
+ - Removed all deprecated classes.
6
+ - Removed Utils.Is (-> use Guard).
7
+ - Updated Assert, enable usage `let i = Assert.isInteger(i);`.
8
+ - Renamed or updated some Assert and Guard functions.
9
+ - Added new Assert and Guard functions.
2
10
 
3
11
  ## [1.21.0] - 2025-10-30
4
12
  ### Added
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # TS Utils Lib
2
2
 
3
3
  ## About
4
- A small collection of TypeScript functions, containers, etc. used in my personal projects.
4
+ A small collection of TypeScript functions, containers, modules, etc. used in my personal projects.
5
5
 
6
6
  ## Links
7
7
  [Repository](https://github.com/pahkasoft/ts-utils-lib) |
@@ -10,3 +10,29 @@ A small collection of TypeScript functions, containers, etc. used in my personal
10
10
 
11
11
  ## Install
12
12
  `npm i @tspro/ts-utils-lib`
13
+
14
+ ## Version 2 Update
15
+
16
+ Made major update because
17
+ - Wanted to remove deprecated renamed or obsoloted stuff.
18
+ - Wanted to upgrade Assert and Guard namespaces.
19
+ - Version 1 had already grown long.
20
+
21
+ Deprecations and replacements
22
+ - `Vec2` -> `Vec`
23
+ - `Map1` -> `UniMap`
24
+ - `Map2` -> `BiMap`
25
+ - `Map3` -> `TriMap`
26
+ - `Set1` -> `ValueSet`
27
+ - `DeepSet` -> `ValueSet.createDeep()`
28
+ - `DivRect` -> `AnchoredRect`
29
+ - `Utils.Is.isX...` -> `Guard.isX...`
30
+
31
+ Additions
32
+ - `Rect`
33
+ - `Guard.is*` - intriduced more guards.
34
+ - `Assert.is*` - introduced more assertions.
35
+ - `Utils.Str.stringify(val)` - generic format-anything.
36
+
37
+ There are some other changes (e.g. `Guard.isOddNumber()` -> `Guard.isOdd()`
38
+ and so on), but most the stuff is compatible with 1.x.