Skip to content

Releases: ThreeDotsLabs/watermill-http

v2.3.1

Choose a tag to compare

@m110 m110 released this 29 Aug 07:24
e9c4f7f

What's Changed

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

v2.3.0

Choose a tag to compare

@m110 m110 released this 27 Jun 19:45

What's Changed

New Contributors

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

v2.2.0

Choose a tag to compare

@m110 m110 released this 31 May 09:54
92154bf

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

Choose a tag to compare

@m110 m110 released this 08 Jun 17:00
84eb18f
Merge pull request #12 from ThreeDotsLabs/bump-watermill-2

Bump watermill

Bump major version to v2

Choose a tag to compare

@m110 m110 released this 05 Aug 12:22
baf6c4b
Merge pull request #9 from ThreeDotsLabs/bump-major

Bump major version to v2

Rework SSERouter's StreamAdapter

Choose a tag to compare

@m110 m110 released this 05 Aug 12:11
a746d0b

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

Choose a tag to compare

@m110 m110 released this 22 Jul 09:55
5c856a0
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()

Choose a tag to compare

@m110 m110 released this 10 Nov 21:52
146a1af
v1.1.3

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

Add X-Accel-Buffering header to disable proxy buffering

Choose a tag to compare

@m110 m110 released this 05 Feb 11:57
c73befc
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

Choose a tag to compare

@m110 m110 released this 27 Jan 16:06
dab078f
Merge pull request #4 from ThreeDotsLabs/sse-router-order

Fetch the first response before starting the stream