Releases: ivklgn/conway-errors
Releases · ivklgn/conway-errors
3.2.1
3.2.0
What's Changed
Full Changelog: 3.1.2...3.2.0
Updates
- Improve types for subcontext and features
const createErrorContext = createError([{ errorType: "ErrorType1" }, { errorType: "ErrorType2" }] as const);
// ErrorSubcontext<ContextName, "ErrorType1" | "ErrorType2">
const errorContext = createErrorContext("Context");
// ErrorSubcontext<"Context", "ErrorType1" | "ErrorType2">
const featureError = errorContext.feature("Feature");
// ErrorFeature<"Context/Feature", "ErrorType1" | "ErrorType2">- Add new utility type readme
3.1.2
Documentation updates
Full Changelog: 3.1.1...3.1.2
3.1.1
3.1.0
What's Changed
- Fix Readme example by @AlexMubarakshin in #8
- feat: add extended params to error object by @ivklgn in #9
Full Changelog: 3.0.1...3.1.0
3.0.1
What's Changed
- Refactor error handling for emit function in example from README by @AlexMubarakshin in #5
- Fix Readme examples by @AlexMubarakshin in #6
- Add GitHub Actions workflow for linting and testing by @AlexMubarakshin in #7
New Contributors
- @AlexMubarakshin made their first contribution in #5
Full Changelog: 3.0.0...3.0.1
3.0.0
BREAKING CHANGES
- move original error into options object (example: https://github.com/ivklgn/conway-errors/blob/main/index.test.ts#L118)
What's new
- add
extendedParamsto options of error feature instance (example: https://github.com/ivklgn/conway-errors/blob/main/index.test.ts#L231)
2.0.0
What's Changed
- Separate throw and emit by @alex-knyazev in #2
- feat: do not implement throw function in library, allow client to throw error instance by @alex-knyazev in #4
Full Changelog: 0.1.2...2.0.0
0.1.2
0.0.1
First version for testing library API and stuff
check readme:
https://github.com/ivklgn/conway-errors?tab=readme-ov-file#usage