Debian Codegraph @

Changes

raw
1 Changes
2 =======
3
4 v1.2.0 - 21 May 2026
5 [New features]
6 * Support a no-padding flag for numeric specifiers. A `-` (glibc) or `#`
7 (Windows) flag placed between the `%` and the conversion specifier
8 suppresses the leading zero/blank padding, e.g. `%-m` -> "1" instead of
9 "01". (#91)
10 * Add locale support for name-based specifiers (%A, %a, %B, %b, %p, etc.).
11 A new `WithLocale` option accepts a `Locale`, with `DefaultLocale()`
12 providing the English defaults. Supporting `MonthNames` / `WeekdayNames`
13 types and a `LocaleOption` constructor are also exported. (#92)
14
15 [Performance]
16 * Speed up formatting and pattern compilation. (#93)
17
18 [Bug fixes]
19 * Fix the locking mechanism in the package-level `Lookup` function. (#76)
20
21 [Miscellaneous]
22 * Modernize CI and lint infrastructure. (#87)
23 * Updated dependencies (testify, GitHub Actions, codecov).
24
25 v1.1.1 - 29 Jul 2025
26 * Implement %G and %g (#67)
27
28 v1.1.0 - 28 Aug 2024
29 [Miscellaneous]
30 * github.com/pkg/errors has been removed (it has been two years :)
31 * Updated build/test actions
32 * Updated minimum required go version to go 1.21
33 * Fix week number handling
34
35 v1.0.6 - 20 Apr 2022
36 [Miscellaneous]
37 * Minimum go version is now go 1.13
38 * github.com/pkg/errors is going to be phased out in steps. In this release,
39 users may opt-in to using native errors using `fmt.Errorf("%w")` by
40 specifying the tag `strftime_native_errors`. In the next release, the default
41 will be to use native errors, but users will be able to opt-in to using
42 github.com/pkg/errors using a tag. The version after will remove github.com/pkg/errors.
43
44 This is something that we normally would do over a major version upgrade
45 but since we do not expect this library to receive API breaking changes in the
46 near future and thus no v2 is expected, we have decided to do this over few
47 non-major releases.
48
49 v1.0.5
50 [New features]
51 * `(strftime.Strftime).FormatBuffer([]byte, time.Time) []byte` has been added.
52 This allows the user to provide the same underlying `[]byte` buffer for each
53 call to `FormatBuffer`, which avoid allocation per call.
54 * `%I` formatted midnight as `00`, where it should have been using `01`
55
56
57 before v1.0.4
58
59 Apparently we have failed to provide Changes prior to v1.0.5 :(