@nice-code/error 0.0.21 → 0.1.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/README.md CHANGED
@@ -1 +1,5 @@
1
1
  # @nice-code/error
2
+
3
+ Typed, serializable errors with domain hierarchies, pattern matching, and safe transport across API boundaries.
4
+
5
+ See the [main README](../../README.md) for full documentation and examples.
@@ -4,8 +4,6 @@ import type { NiceErrorHydrated } from "../NiceError/NiceErrorHydrated";
4
4
  export type MaybePromise<T> = T | Promise<T>;
5
5
  /**
6
6
  * Broad handler signature used internally for storage and dispatch.
7
- * Public-facing registration methods use narrower types (`TActionHandlerForDomain`,
8
- * `TActionIdHandlerForDomain`); they are cast to this for storage.
9
7
  */
10
8
  export type TBroadErrorHandler<E extends NiceError = NiceError, RES = unknown> = (action: E) => MaybePromise<RES>;
11
9
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "module": "build/index.js",
5
5
  "types": "build/types/index.d.ts",
6
6
  "type": "module",
7
- "version": "0.0.21",
7
+ "version": "0.1.1",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./build/types/index.d.ts",