-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCHANGELOG
More file actions
104 lines (78 loc) · 3.08 KB
/
Copy pathCHANGELOG
File metadata and controls
104 lines (78 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# CHANGELOG
- v3.3.5
- fixed Iss() - dead loop or break unexpected
- v3.3.3
- ensure working on go 1.23+
- v3.3.2
- fixed/improved Attach() - attaching itself is denied now
- v3.3.1
- fixed Iss() couldn't test the others except the first error.
- v3.3.0
- added `Iss(err, errs...)` to test if any of errors are included in 'err'.
- improved As/Is/Unwrap to fit for new joint error since go1.20
- added causes2.Clear, ...
- improved Error() string
- reviewed and re-published this repo from v3.3
- v3.1.9
- fixed error.Is deep test to check two errors' message text contents if matched
- fixed errors.v3.Join when msg is not empty in an err obj
- fixed causes.WithErrors() - err obj has been ignored even if its message is not empty
- v3.1.6
- improved/fixed the formatting algorithm on error object
- added more builtin error codes, such as IllegalState
- improved godoc
- added TestCodeRegister
- added integral value as suffix of Code error formatted output.
- v3.1.5
- fixed `errors.New("").Attach(errs...)` don't skip the `empty` error.
**Attach ignores an error only if it is nil**.
- fixed the emptiness test for `WithStackInfo`.
- cleanup an unused `if len(errs) > 0`.
- added `WithMaxObjectStringLength(maxObjectStringLen)` for long formatting data/taggedData by WithData/WithTaggedData
- v3.1.3
- better output of sites and taggedSites
- v3.1.1
- better message format for a nested error, see [Better format](#better-format-for-a-nested-error)
- v3.1.0
- added `Join()` to compliant with go1.20 errors.Join
- reviewed all of testcases
- v3.0.21
- added RegisterCode() at top level for initialize user-defined Coded decl.
- godoc and fix/imp Attach() to copy inner errors' StackTrace
- fix Is() - Is(err, errors.BadRequest) might be dead lock or cannot return the test result probably
- new lint + fmt.
- imp - remove redundant codes
- update withStackInfo.Stack with WithData() - specially for defer recover codes
- v3.0.15
- fix: make Is() work for go1.12 and below
- v3.0.13
- fea - IsDescended for error template test
- fix - code and causes are present at same time
- v3.0.11
- changed the `FormatWith` interface to support error template feature.
- v3.0.10
- support go1.11-17,18+
- v3.0.9
- fix - WithErrors will check IsEmpty on an error container and avoid adding it if empty.
- v3.0.8
- restore error message template
- all features in v2 are restored with a new fluent style
- v3.0.7
- fix coverall upload
- godoc
- better sites/taggedsites output
- v3.0.6
- back to master branch
- v3.0.5
- break out `New(...).Attach(...)`, instead of `New(...).WithErrors(...)`, so that we can make the type architecture clearly and concisely.
- `Builable` and `Error` interface are the abstract representations about our error objects.
- bugs fixed
- more godoc
- v3.0.3
- review the backward compatibilities
- v3.0.0
- rewrite most codes and cleanup multiple small types
- use `New(...)` or `NewBuilder()` to make an error with code, message, inner error(s) and customizable stacktrace info.
- v2.x
- v1.x
- v0.x