github.com/teambition/gear
v1.27.3
#2436 most downloaded on Go modules
teambition/gear
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 4 months
Most releases are documented
notes for 105 of 153 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
184 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
184 releases · Oct 2016 to Apr 2024Releases
latest 60 of 184-
v1.27.4-0.20240419153608-183e49112fcd19 Apr 2024 pre-releaseNothing published for this version
-
v1.27.4-0.20231011233938-1d2489a357c511 Oct 2023 pre-releaseNothing published for this version
-
v1.27.308 Aug 2023Release notes
Open source →Changed:
- Add
gear.ThresholdCompressinstead ofgithub.com/teambition/compressible-go. - Update dependencies.
- Add
-
v1.27.3-0.20230808143006-e044e813712e08 Aug 2023 pre-releaseNothing published for this version
-
v1.27.210 Jul 2023 -
v1.27.2-0.20230710023313-17cc7bb8be4b10 Jul 2023 pre-releaseNothing published for this version
-
v1.27.2-0.20230709164411-aae3e213341c09 Jul 2023 pre-releaseNothing published for this version
-
v1.27.2-0.20230709163408-1cec3993ceaa09 Jul 2023 pre-releaseNothing published for this version
-
v1.27.104 Jul 2023 -
v1.27.1-0.20230704025443-0c132b2a845104 Jul 2023 pre-releaseNothing published for this version
-
v1.27.1-0.20230509094042-d2096c85579809 May 2023 pre-releaseNothing published for this version
-
v1.27.013 Jan 2023Release notes
Open source →Changed:
- Improve gear.Context with generics.
- Add
gear.Statefor passing information through middleware and handlers. - Add functions:
func CtxWith[T any](parent context.Context, v *T) context.Contextfunc CtxValue[T any](ctx context.Context) *Tfunc CtxDoIf[T any, TI isValid[T]](ctx context.Context, fn func(v *T))
Fixed:
- Fix gear.ValuesToStruct for slice type.
-
v1.27.0-beta12 Jan 2023 pre-release -
v1.26.1-0.20230112092856-b70cfc24447012 Jan 2023 pre-releaseNothing published for this version
-
v1.26.1-0.20230112090306-0c2f7476726612 Jan 2023 pre-releaseNothing published for this version
-
v1.26.1-0.20230112085351-76f539fcc59212 Jan 2023 pre-releaseNothing published for this version
-
v1.26.1-0.20230106111824-20c4c96220e206 Jan 2023 pre-releaseNothing published for this version
-
v1.26.1-0.20230106110729-bbaade5c5e7006 Jan 2023 pre-releaseNothing published for this version
-
v1.26.1-0.20221212072554-e1f34869ed9412 Dec 2022 pre-releaseNothing published for this version
-
v1.26.1-0.20221212065642-ea562f757a8112 Dec 2022 pre-releaseNothing published for this version
-
v1.26.030 Jun 2022 -
v1.25.106 Feb 2022 -
v1.25.010 Sep 2021Release notes
Open source →Changed:
- update trie-mux mod for issue #54. Your routing may be affected!
-
v1.24.210 Sep 2021 -
v1.24.111 Jun 2021 -
v1.24.003 Feb 2021Release notes
Open source →Changed:
- Remove ctx.Get and ctx.Set methods.
- Change Log structure fields: "time" -> "duration"; "timestamp" -> "time".
-
v1.23.007 Jan 2021 -
v1.22.012 Nov 2020 -
v1.21.725 Sep 2020Release notes
Open source →Changed:
- Add gear.MIMEApplicationSchemaGraphQL constant.
- Enlarge Error' Stack trace buffer size.
Fixed:
- Fix ctx.ParseBody' error code.
-
v1.21.628 Aug 2020Release notes
Open source →Changed:
- Add gear.ErrorResponse struct that represents error response like JSON-RPC2 or Google cloud API.
- Add gear.RenderErrorResponse function that render error with ErrorResponse struct.
Fixed:
- Fix default SetRenderError function.
- Fix
xCanaryfield in logging middleware.
-
v1.21.514 Aug 2020Release notes
Open source →Changed:
- Add gear.SetRenderError hook that convert error to raw response.
- Add gear.MIMEApplicationSchemaJSONLD MIME type.
-
v1.21.405 Aug 2020Release notes
Open source →Changed:
- Add default ReadHeaderTimeout, ReadTimeout, WriteTimeout and IdleTimeout for Server.
-
v1.21.331 Jul 2020 -
v1.21.214 May 2020Release notes
Open source →Fixed:
- Fix ctx.WithContext: sets the context to underlying request object.
-
v1.21.128 Mar 2020Release notes
Open source →Changed:
- Add ctx.Scheme() instead of ctx.Protocol().
Fixed:
- Fix ctx.Protocol() and ctx.IP() for proxy.
-
v1.21.024 Mar 2020Release notes
Open source →Changed:
- Add request body and response body to access log when 500 error.
Fixed:
- Fix start time error for development logging.
-
v1.20.024 Mar 2020Release notes
Open source →Changed:
- Add "X-Canary" Header.
- Add ctx.StartAt property.
- Add ctx.GetHeaders method.
-
v1.19.029 Feb 2020Release notes
Open source →Changed:
- Add gear.App.ListenWithContext method.
- Add gear.ContextWithSignal function.
- Add logging.SetLoggerLevel function.
-
v1.18.023 Feb 2020Release notes
Open source →Changed:
- Improve misdirected response with message (421).
Fixed:
- Fix error's stack.
-
v1.17.123 Dec 2019 -
v1.17.003 Sep 2019Release notes
Open source →Changed:
- Remove "application/x-www-form-urlencoded" supporting from DefaultBodyParser.
-
v1.16.229 Jul 2019Release notes
Open source →Fixed:
- Fix logging middleware: fix time format.
- Fix logging middleware: change severity level to lowercase (https://en.wikipedia.org/wiki/Syslog).
-
v1.16.125 Jul 2019 -
v1.16.024 Jul 2019 -
v1.15.403 Jul 2019 -
v1.15.313 Jun 2019Release notes
Open source →Fixed:
- Allow add "after hook" and "end hook" after context ended but before header wrote.
-
v1.15.205 Apr 2019 -
v1.15.107 Feb 2019 -
v1.15.013 Jan 2019 -
v1.14.110 Jan 2019 -
v1.14.008 Jan 2019Release notes
Open source →Changed:
- Add ctx.OkHTML, ctx.OkJSON, ctx.OkXML, ctx.OkSend, ctx.OkRender, ctx.OkStream
-
v1.13.127 Dec 2018 -
v1.13.002 Dec 2018 -
v1.12.221 Sep 2018 -
v1.12.125 Jul 2018 -
v1.12.006 Jul 2018Release notes
Open source →Fixed:
- Fix gear.SetOnError hook.
Changed:
- ctx.Error and ctx.ErrorStatus will not trigger gear.SetOnError hook now.
- Add gear.SetParseError hook.
-
v1.11.020 Jun 2018 -
v1.10.115 Jun 2018 -
v1.10.008 Jun 2018Release notes
Open source →Changed:
- Add MIMEApplicationYAML (for OpenAPI 3) and MIMEApplicationTOML, remove MIMEApplicationMsgpack.
-
v1.9.1315 May 2018