Debian Codegraph @

CHANGELOG.md

raw
1 Changes
2 =======
3
4 ---
5 14:15:14
6 Thursday, October 8, 2022
7
8 New version v4. Breaking changes. [Migrate from v3](#migrate-from-v3).
9
10 - Drop deprecated `Bleach` methods. Use `Reset` or `Clear` instead.
11 - Drop deprecated `Brows` and `BgBrows` methods, and `BrownFg` and `BrownBg`
12 colors. Use `Yellow` variants instead.
13 - Instead of `Aurora` interface introduced `Aurora` structure.
14 - Instead of `Value` interface introduced `Value` structure.
15 - Implemented [hyperlinks feature](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda).
16 - added `Hyperlink` method
17 - added `HyperlinkTarget` and `HyperlinkParams` methods
18 - added `HyperlinkParam` type, `IsValidHyperlinkTarget`,
19 `IsValidHyperlinkParam`, `HyperlinkID`, `HyperlinkEscape`,
20 `HyperlinkUnescape` helper functions.
21 - Introduced `Config` and related functions and methods, such as `NewConfig`,
22 `WithColors`, `WithHyperlinks`.
23 - Removed `NewAurora` function, new function `New` introduced.
24 - Introduced global `DefaultColorizer` that used by package root methods.
25 - `Sprintf` method now belongs to a colorizer and depends on its configurations.
26 For package root `Sprintf` it's the `DefaultColorizer`.
27
28 Performance for all methods is almost the same. But for color- and
29 format-methods `aurora` now takes less allocations. But, unfortunately, for
30 `Sprintf` it takes more allocations.
31
32 ###### Migrate from v3
33
34 1. Use `Reset` or `Clear` instead of `Bleach`.
35 2. Use `Yellow` instead of `Brows`.
36 3. Use `BgYellow` instead of `BgBrown`.
37 4. Use `YellowFg` instead of `BrownFg`.
38 5. Use `YellowBg` instead of `BrownBg`.
39 6. Use `New` instead of `NewAurora`.
40 7. Use `New(WithColors(false))` to disable colors.
41 8. Use `New(WithHyperlinks(false))` to disable hyperlinks.
42
43 ---
44 16:05:02
45 Thursday, July 2, 2020
46
47 Change license from the WTFPL to the Unlicense due to pkg.go.dev restriction.
48
49 ---
50 15:39:40
51 Wednesday, April 17, 2019
52
53 - Bright background and foreground colors
54 - 8-bit indexed colors `Index`, `BgIndex`
55 - 24 grayscale colors `Gray`, `BgGray`
56 - `Yellow` and `BgYellow` methods, mark Brow and BgBrown as deprecated
57 Following specifications, correct name of the colors are yellow, but
58 by historical reason they are called brown. Both, the `Yellow` and the
59 `Brown` methods (including `Bg+`) represents the same colors. The Brown
60 are leaved for backward compatibility until Go modules production release.
61 - Additional formats
62 + `Faint` that is opposite to the `Bold`
63 + `DoublyUnderline`
64 + `Fraktur`
65 + `Italic`
66 + `Underline`
67 + `SlowBlink` with `Blink` alias
68 + `RapidBlink`
69 + `Reverse` that is alias for the `Inverse`
70 + `Conceal` with `Hidden` alias
71 + `CrossedOut` with `StrikeThrough` alias
72 + `Framed`
73 + `Encircled`
74 + `Overlined`
75 - Add AUTHORS.md file and change all copyright notices.
76 - `Reset` method to create clear value. `Reset` method that replaces
77 `Bleach` method. The `Bleach` method was marked as deprecated.
78
79 ---
80
81 14:25:49
82 Friday, August 18, 2017
83
84 - LICENSE.md changed to LICENSE
85 - fix email in README.md
86 - add "no warranty" to README.md
87 - set proper copyright date
88
89 ---
90
91 16:59:28
92 Tuesday, November 8, 2016
93
94 - Rid out off sync.Pool
95 - Little optimizations (very little)
96 - Improved benchmarks
97
98 ---