Skip to content

Releases: lestrrat-go/strftime

v1.2.0

Choose a tag to compare

@lestrrat lestrrat released this 21 May 08:27

What's Changed

  • Bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in #70
  • Bump codecov/codecov-action from 5.1.2 to 5.5.0 by @dependabot[bot] in #71
  • Fix locking mechanism in Lookup function by @imu2008 in #76
  • Bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by @dependabot[bot] in #73
  • Bump codecov/codecov-action from 5.5.0 to 5.5.1 by @dependabot[bot] in #75
  • Bump actions/checkout from 5.0.0 to 5.0.1 by @dependabot[bot] in #78
  • Bump actions/setup-go from 5.5.0 to 6.1.0 by @dependabot[bot] in #79
  • modernize CI and lint infrastructure by @lestrrat in #87
  • Bump codecov/codecov-action from 5.5.1 to 6.0.1 by @dependabot[bot] in #88
  • Bump github.com/ncruces/go-strftime from 0.1.9 to 1.0.0 in /bench by @dependabot[bot] in #89
  • Bump github.com/lestrrat-go/strftime from 1.1.0 to 1.1.1 in /bench by @dependabot[bot] in #90
  • support no-padding flag for numeric specifiers by @lestrrat in #91
  • add locale support for name specifiers by @lestrrat in #92
  • speed up formatting and pattern compilation by @lestrrat in #93

New Contributors

Full Changelog: v1.1.1...v1.2.0

v1.1.1

Choose a tag to compare

@lestrrat lestrrat released this 29 Jul 04:36
a8371f7

What's Changed

  • Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot[bot] in #48
  • Bump codecov/codecov-action from 4.5.0 to 4.6.0 by @dependabot[bot] in #50
  • Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by @dependabot[bot] in #51
  • Bump actions/checkout from 4.1.7 to 4.2.1 by @dependabot[bot] in #52
  • Add support for %G for week year and %g format for week year without century by @flomedja in #67
  • Bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot[bot] in #53
  • Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot[bot] in #59
  • Bump codecov/codecov-action from 4.6.0 to 5.1.2 by @dependabot[bot] in #62
  • Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 by @dependabot[bot] in #63
  • Bump actions/setup-go from 5.0.2 to 5.3.0 by @dependabot[bot] in #65

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@lestrrat lestrrat released this 28 Aug 00:15
v1.1.0 - 28 Aug 2024
[Miscellaneous]
  * github.com/pkg/errors has been removed (it has been two years :)
  * Updated build/test actions
  * Updated minimum required go version to go 1.21
  * Fix week number handling

v1.0.6

Choose a tag to compare

@lestrrat lestrrat released this 20 Apr 06:26
v1.0.6 - 20 Apr 2022
[Miscellaneous]
  * Minimum go version is now go 1.13
  * github.com/pkg/errors is going to be phased out in steps. In this release,
    users may opt-in to using native errors using `fmt.Errorf("%w")` by
    specifying the tag `strftime_native_errors`. In the next release, the default
    will be to use native errors, but users will be able to opt-in to using
    github.com/pkg/errors using a tag. The version after will remove github.com/pkg/errors.

    This is something that we normally would do over a major version upgrade
    but since we do not expect this library to receive API breaking changes in the
    near future and thus no v2 is expected, we have decided to do this over few
    non-major releases.

v1.0.5

Choose a tag to compare

@lestrrat lestrrat released this 14 Jul 04:27
v1.0.5
[New features]
  * `(strftime.Strftime).FormatBuffer([]byte, time.Time) []byte` has been added.
    This allows the user to provide the same underlying `[]byte` buffer for each
    call to `FormatBuffer`, which avoid allocation per call.
  * `%I` formatted midnight as `00`, where it should have been using `01`

v1.0.4

Choose a tag to compare

@lestrrat lestrrat released this 04 Jan 23:17
fa3af77
  • move benchmark to its own directory so users pulling in this packages do not also
    pull in benchmark dependencies

v1.0.3

Choose a tag to compare

@lestrrat lestrrat released this 25 Jul 06:52
3a6bf1d

This time really fix %r, which was not fixed in v1.0.2

v1.0.2

Choose a tag to compare

@lestrrat lestrrat released this 24 Jul 23:11
3a0d14a

Buf fixes:

  • Correctly format zero-padded hours

Features:

  • Add microseconds in extra specifications (you must explicitly enable this)
  • Add unix epoch seconds in extra specifications (you must explicitly enable this)

v1.0.1

Choose a tag to compare

@lestrrat lestrrat released this 30 Dec 22:13
6b63b6d

v1.0.0 had a problem when multiple verbatim sections existed (e.g. "foo%Ybar", where "foo" and "bar" are the verbatim sections). This has been fixed.

v1.0.0

Choose a tag to compare

@lestrrat lestrrat released this 08 Nov 06:34
76be872

Well, I'm going to bite the bullet and tag a release.

This version introduces a new concept of configurable specifications, which will pave the way for future improvements. Meanwhile, most everything else remains the same old trusty code, so I feel confident in giving it a v1.0.0 name.

Thanks for everyone using my library, and if you like what I do, please consider sponsoring me!