Skip to content

Releases: ThreeDotsLabs/watermill-http

v2.3.1

29 Aug 07:24
e9c4f7f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.0...v2.3.1

v2.3.0

27 Jun 19:45
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

31 May 09:54
92154bf
Compare
Choose a tag to compare

What's Changed

Add SSEMarshaler by @m110 in #13

Add a way to provide custom marshaler for the SSE endpoints, instead of the default JSON marshaling.

Full Changelog: v2.1.0...v2.2.0

Bump watermill

08 Jun 17:00
84eb18f
Compare
Choose a tag to compare
Merge pull request #12 from ThreeDotsLabs/bump-watermill-2

Bump watermill

Bump major version to v2

05 Aug 12:22
baf6c4b
Compare
Choose a tag to compare
Merge pull request #9 from ThreeDotsLabs/bump-major

Bump major version to v2

Rework SSERouter's StreamAdapter

05 Aug 12:11
a746d0b
Compare
Choose a tag to compare

Previously, GetResponse took http.ResponseWriter as an argument. Because of this, the client could attempt to write to the response while the request was already cancelled by the user.

The new approach uses two methods for getting the response.

  1. InitialStreamResponse used to initialize the stream. You can set HTTP status code and headers at this point.
  2. NextStreamResponse that verifies if the event should be sent (what Validate previously did) and returns the response.

Please see the tests for an example how the new adapter works.

Expose Close on SSERouter

22 Jul 09:55
5c856a0
Compare
Choose a tag to compare
Merge pull request #7 from ThreeDotsLabs/sse-router-close

Expose Close on SSERouter

Do not panic on a wrong metadata or invalid payload on Subscribe()

10 Nov 21:52
146a1af
Compare
Choose a tag to compare
v1.1.3

Merge pull request #6 from denniselite/bugfix/do-not-panic-on-invalid…

Add X-Accel-Buffering header to disable proxy buffering

05 Feb 11:57
c73befc
Compare
Choose a tag to compare
Merge pull request #5 from ThreeDotsLabs/no-proxy-buffering

Add X-Accel-Buffering header to disable proxy buffering

SSERouter: Fetch the first response before starting the stream

27 Jan 16:06
dab078f
Compare
Choose a tag to compare
Merge pull request #4 from ThreeDotsLabs/sse-router-order

Fetch the first response before starting the stream