Bladeren bron

Bump version

DarthSim 1 jaar geleden
bovenliggende
commit
e0ea0ba6e1
6 gewijzigde bestanden met toevoegingen van 8 en 12 verwijderingen
  1. 1 1
      CHANGELOG.md
  2. 2 2
      config/config.go
  3. 1 1
      main.go
  4. 2 2
      metrics/datadog/datadog.go
  5. 1 1
      metrics/otel/otel.go
  6. 1 5
      version/version.go

+ 1 - 1
CHANGELOG.md

@@ -1,6 +1,6 @@
 # Changelog
 
-## [Unreleased]
+## [3.24.0] - 2024-04-29
 ### Add
 - Add [IMGPROXY_ALWAYS_RASTERIZE_SVG](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_ALWAYS_RASTERIZE_SVG) config.
 - Add [IMGPROXY_PNG_UNLIMITED](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_PNG_UNLIMITED) and [IMGPROXY_SVG_UNLIMITED](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_SVG_UNLIMITED) configs.

+ 2 - 2
config/config.go

@@ -282,7 +282,7 @@ func Reset() {
 
 	AllowOrigin = ""
 
-	UserAgent = fmt.Sprintf("imgproxy/%s", version.Version())
+	UserAgent = fmt.Sprintf("imgproxy/%s", version.Version)
 
 	IgnoreSslVerification = false
 	DevelopmentErrorsMode = false
@@ -371,7 +371,7 @@ func Reset() {
 
 	SentryDSN = ""
 	SentryEnvironment = "production"
-	SentryRelease = fmt.Sprintf("imgproxy@%s", version.Version())
+	SentryRelease = fmt.Sprintf("imgproxy@%s", version.Version)
 
 	AirbrakeProjecID = 0
 	AirbrakeProjecKey = ""

+ 1 - 1
main.go

@@ -133,7 +133,7 @@ func main() {
 	case "health":
 		os.Exit(healthcheck())
 	case "version":
-		fmt.Println(version.Version())
+		fmt.Println(version.Version)
 		os.Exit(0)
 	}
 

+ 2 - 2
metrics/datadog/datadog.go

@@ -47,7 +47,7 @@ func Init() {
 
 	tracer.Start(
 		tracer.WithService(name),
-		tracer.WithServiceVersion(version.Version()),
+		tracer.WithServiceVersion(version.Version),
 		tracer.WithLogger(dataDogLogger{}),
 	)
 
@@ -70,7 +70,7 @@ func Init() {
 		net.JoinHostPort(statsdHost, statsdPort),
 		statsd.WithTags([]string{
 			"service:" + name,
-			"version:" + version.Version(),
+			"version:" + version.Version,
 		}),
 	)
 	if err == nil {

+ 1 - 1
metrics/otel/otel.go

@@ -108,7 +108,7 @@ func Init() error {
 	res, _ := resource.Merge(
 		resource.Default(),
 		resource.NewSchemaless(
-			semconv.ServiceVersionKey.String(version.Version()),
+			semconv.ServiceVersionKey.String(version.Version),
 		),
 	)
 

+ 1 - 5
version/version.go

@@ -1,7 +1,3 @@
 package version
 
-const version = "3.23.0"
-
-func Version() string {
-	return version
-}
+const Version = "3.24.0"