type-guardians 1.2.2--canary.5.181a8ea.0 → 1.2.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/error.ts +1 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # 1.2.1 (Wed Aug 20 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 description and keywords ([@pchalupa](https://github.com/pchalupa))
11
+
12
+ #### Authors: 1
13
+
14
+ - Petr Chalupa ([@pchalupa](https://github.com/pchalupa))
15
+
16
+ ---
17
+
1
18
  # 1.2.1 (Tue Aug 19 2025)
2
19
 
3
20
  #### 🐛 Bug Fix
package/error.ts CHANGED
@@ -5,6 +5,6 @@ export function isError(value: unknown): value is Error {
5
5
  export function assertError(
6
6
  value: unknown,
7
7
  message = `Expected an error, received ${typeof value}`,
8
- ): asserts value is string {
8
+ ): asserts value is Error {
9
9
  if (!isError(value)) throw new TypeError(message);
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-guardians",
3
- "version": "1.2.2--canary.5.181a8ea.0",
3
+ "version": "1.2.2",
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",