Skip to content

Releases: go-goyave/goyave

Release v2.7.1

12 Mar 09:13
73388b3
Compare
Choose a tag to compare
  • Changed MIME type of js and mjs files to text/javascript. This is in accordance with an IETF draft that treats application/javascript as obsolete.
  • Improved error handling: stacktrace wasn't relevant on unexpected panic since it was retrieved from the route's request handler therefore not including the real source of the panic. Stacktrace retrieval has been moved to the recovery middleware to fix this.

Release v2.7.0

23 Feb 11:24
d29bfde
Compare
Choose a tag to compare
  • Added Request.Request() accessor to get the raw *http.Request.
  • Fixed a bug allowing non-core middleware applied to the root router to be executed when the "Not Found" or "Method Not Allowed" routes were matched.
  • Fixed a bug making route groups (sub-routers with empty prefix) conflict with their parent router when two routes having the same path but different methods are registered in both routers.
  • Added chained writers.
  • Added gzip compression middleware.
  • Added the ability to register route-specific middleware in Router.Static().

Release v2.6.0

19 Feb 13:12
f41f40a
Compare
Choose a tag to compare
  • Custom router implementation. Goyave is not using gorilla/mux anymore. The new router is twice as fast and uses about 3 times less memory.
  • Now redirects to configured protocol if request scheme doesn't match.
  • Added named routes.
  • Added Route.GetFullURI() and Route.BuildURL() for dynamic URL generation.
  • Added helper.IndexOfStr() and helper.ContainsStr() for better performance when using string slices.
  • Moved from GoDoc to pkg.go.dev.
  • Print errors to stderr.

Release v2.5.0

05 Feb 15:59
137cacd
Compare
Choose a tag to compare
  • Added an authentication system.
  • Various optimizations.
  • Various documentation improvements.
  • Added dbMaxLifetime configuration entry.
  • Moved from Travis CI to Github Actions.
  • Fixed a bug making duplicate log entries on error.
  • Fixed a bug preventing language lines containing a dot to be retrieved.
  • Fixed TestSuite.GetJSONBody() not working with structs and slices.
  • Added TestSuite.ClearDatabaseTables().
  • Added Config.Has() and Config.Register() to check for the existence of a config entry and to allow custom config entries valdiation.
  • Added Request.BearerToken().
  • Added Response.HandleDatabaseError() for easier database error handling and shorter controller handlers.

Release v2.4.3

15 Jan 09:59
5d44652
Compare
Choose a tag to compare
  • Improved string validation by taking grapheme clusters into consideration when calculating length.
  • lang.LoadDefault now correctly creates a fresh language map and clones the default en-US language. This avoids the default language entries to be overridden permanently.

Release v2.4.2

11 Jan 21:53
9b23149
Compare
Choose a tag to compare
  • Don't override Content-Type header when sending a file if already set.
  • Fixed a bug with validation message placeholder :values, which was mistakenly using the :value placeholder.

Release v2.4.1

11 Jan 18:22
df23af0
Compare
Choose a tag to compare

Bundle default config and language in executable to avoid needing to deploy $GOROOT/pkg/mod/github.com/!system-!glitch/goyave/ with the application.

Release v2.4.0

03 Jan 09:04
2adc2b2
Compare
Choose a tag to compare
  • Added template rendring.
  • Fixed PostgreSQL options not working.
  • TestSuite.Middleware() now has a more realistic behavior: the finalization step of the request life-cycle is now also executed. This may require your tests to be updated if those check the status code in the response.
  • Added status handlers.

Release v2.3.0

31 Dec 13:15
ca97cf1
Compare
Choose a tag to compare

Added CORS support.

Release v2.2.1

19 Dec 14:36
fa7f2e2
Compare
Choose a tag to compare
  • Added domain config entry. This entry is used for url generation, especially for the TLS redirect.
  • Don't show port in TLS redirect response if ports are standard (80 for HTTP, 443 for HTTPS).