Changelog History
Page 1
-
v0.49.2 Changes
December 09, 2020- ๐ Fix identity accept encoding (#307)
-
v0.49.1 Changes
December 08, 2020๐ Changelog
- ๐ Parse Accept-Encoding header, and set Content-Encoding correctly
- Introduce env var for setting the
deflate
compression level - ๐ Enable setting uncompressed paths in the service builder
-
v0.49.0 Changes
November 30, 2020๐ This release includes two major points.
๐ The compression middleware, with support for the
gzip
anddeflate
compression schemes.
0๏ธโฃ The compression middleware is enabled by default in Patron's HTTP component and client. Incoming responses will be automatically decompressed, and all you have to do to send out a gzipped request is add the appropriate Accept-Encoding header.๐ The updated documentation hub.
๐ Our documentation is now available https://beatlabs.github.io/patron/
It is hosted on GitHub Pages and generated using Markdown. There was a big effort in streamlining the existing docs, answering most common questions, structuring the examples; we hope this will help both onboard new engineers as quickly as possible and shed light on more obscure details. Your support is vital, so don't hesitate to file an issue or open a Pull Request for improvements and suggestions! -
v0.48.0 Changes
November 23, 2020 -
v0.47.0 Changes
November 13, 202059b25c7 (HEAD -> master, origin/master, origin/HEAD) Allow setting headers on Kafka messages (#294)
84722bb Fix port conflict for http-cache and grpc examples (#290)
453968e Rename examples for ease of browsing (#276)
a615bdf Fix Patron CLI generated main.go file, use new way initializing logger (#288)
โก๏ธ 42d1517 Add new constructors to get http.Method specific RouterBuilders & Update examples to use the same (#289) -
v0.46.1 Changes
October 25, 2020 -
v0.46.0 Changes
October 23, 2020- ๐ฆ Expose logger interface to Patron Service (#259)
As requested we exposed the logger interface to the Patron service so you can plug-in you own logger.
๐ We have also introduced a textual logger based on the standard Go package logger which can be used when constructing the service builder.
Example 3 shows hot to use the new text logger and show also the breaking change fix.
Before we did setup the framework in this way:err := patron.SetupLogging(name, version)if err != nil { fmt.Printf("failed to set up logging: %v", err) os.Exit(1) }kafkaCmp, err := newKafkaComponent(name, kafkaBroker, kafkaTopic, kafkaGroup, amqpURL, amqpExchange)if err != nil { log.Fatalf("failed to create processor %v", err) }err = patron.New(name, version).WithComponents(kafkaCmp.cmp).Run(context.Background())if err != nil { log.Fatalf("failed to create and run service %v", err) }
๐ Now we create the service builder with the constructor:
service, err := patron.New(name, version, patron.TextLogger())if err != nil { fmt.Printf("failed to set up service: %v", err) os.Exit(1) }kafkaCmp, err := newKafkaComponent(name, kafkaBroker, kafkaTopic, kafkaGroup, amqpURL, amqpExchange)if err != nil { log.Fatalf("failed to create processor %v", err) }err = service.WithComponents(kafkaCmp.cmp).Run(context.Background())if err != nil { log.Fatalf("failed to create and run service %v", err) }
0๏ธโฃ Keep in mind that if no logger is provided it will use the default structured logger:
service, err := patron.New(name, version)if err != nil { fmt.Printf("failed to set up service: %v", err) os.Exit(1) }
-
v0.45.0 Changes
October 11, 2020 -
v0.44.0 Changes
September 17, 2020๐ This is a minor Patron release with no breaking changes from the previous one.
๐ง It introduces quality-of-life improvements when starting a Patron application or configuring HTTP components, allows parsing of multivalue headers, and provides fixes in logged fields and the patron-cli utility.
Thanks to @cgkanatsios @astrikos @j0hnsmith @sgarcez for their contributions!
๐ Changelog
- โ Add support for HTTP read/write timeouts as environment variables (#255)
- โ Add env to log messages (#253)
- ๐ Allow getting encoding from multivalue headers (#207)
- ๐ Fix logger initialization in patron-cli (#258)
- ๐ Fix kafka builder logging interpolation (#251)
- ๐ง Test suite maintenance
-
v0.43.2 Changes
August 18, 2020- ๐ Fix for deadlock on kafka component failure with NackExitStrategy (#249)