v1.0.0
@deessejs/errors
1.0.0
Major Changes
-
50bf63f: ## v1.0.0 — Core Foundation
Initial release of
@deessejs/errors, a function-based error handling library inspired by Python's error system.Added
error()function for defining error types with Standard Schema supportraise()function for throwing errors- Native
throwsyntax support is()function for type checking with inheritance supportinheritsoption for single and multiple inheritance.from()method for exception chainingcauses()function for chain traversal (most recent first)err.fieldsnamespace for user-defined data- Message templates with
{field}placeholders - All error properties always defined (never undefined)
- Standard Schema compliance for field definitions (Zod, Valibot, ArkType)
TypeScript Support
- Generic types:
ErrorFactory<T>,ErrorInstance<T> - Full type inference with fields
- No
any— only generics and proper types