type-guardians 1.2.2 → 1.2.4

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.
@@ -28,6 +28,7 @@ jobs:
28
28
  name: npm
29
29
  url: https://www.npmjs.com/package/type-guardians
30
30
  if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
31
+ needs: code-quality
31
32
  steps:
32
33
  - uses: actions/checkout@v5
33
34
  with:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ # 1.2.1 (Thu Aug 21 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - feat: add error type guard [#5](https://github.com/pchalupa/type-guardians/pull/5) ([@pchalupa](https://github.com/pchalupa))
6
+ - chore: setup auto release [#4](https://github.com/pchalupa/type-guardians/pull/4) ([@pchalupa](https://github.com/pchalupa))
7
+
8
+ #### ⚠️ Pushed to `main`
9
+
10
+ - docs: add error ([@pchalupa](https://github.com/pchalupa))
11
+ - ci: needs ([@pchalupa](https://github.com/pchalupa))
12
+ - docs: add description and keywords ([@pchalupa](https://github.com/pchalupa))
13
+
14
+ #### Authors: 1
15
+
16
+ - Petr Chalupa ([@pchalupa](https://github.com/pchalupa))
17
+
18
+ ---
19
+
20
+ # 1.2.1 (Wed Aug 20 2025)
21
+
22
+ #### 🐛 Bug Fix
23
+
24
+ - feat: add error type guard [#5](https://github.com/pchalupa/type-guardians/pull/5) ([@pchalupa](https://github.com/pchalupa))
25
+ - chore: setup auto release [#4](https://github.com/pchalupa/type-guardians/pull/4) ([@pchalupa](https://github.com/pchalupa))
26
+
27
+ #### ⚠️ Pushed to `main`
28
+
29
+ - ci: needs ([@pchalupa](https://github.com/pchalupa))
30
+ - docs: add description and keywords ([@pchalupa](https://github.com/pchalupa))
31
+
32
+ #### Authors: 1
33
+
34
+ - Petr Chalupa ([@pchalupa](https://github.com/pchalupa))
35
+
36
+ ---
37
+
1
38
  # 1.2.1 (Wed Aug 20 2025)
2
39
 
3
40
  #### 🐛 Bug Fix
package/README.md CHANGED
@@ -60,3 +60,8 @@ function double(value: unknown) {
60
60
 
61
61
  - `isNumber(value: unknown): value is number`
62
62
  - `assertNumber(value: unknown, message?: string): asserts value is number`
63
+
64
+ ### Error
65
+
66
+ - `isError(value: unknown): value is Error`
67
+ - `assertError(value: unknown, message?: string): asserts value is Error`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-guardians",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "A lightweight, zero-dependency TypeScript library providing type guards and assertions for safer and more readable code",
5
5
  "keywords": [
6
6
  "typescript",