Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump github.com/tmaxmax/go-sse from 0.7.0 to 0.8.0 #113

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2024

Bumps github.com/tmaxmax/go-sse from 0.7.0 to 0.8.0.

Release notes

Sourced from github.com/tmaxmax/go-sse's releases.

v0.8.0

This version removes all external dependencies of go-sse. All our bugs are belong to us! It also does some API and documentation cleanups.

Removed

  • Client.DefautReconnectionTime, Client.MaxRetries have been replaced with the new Client.Backoff configuration field. See the Added section for more info.
  • ErrReplayFailed is removed from the public API.
  • ReplayProviderWithGC and Joe.ReplayGCInterval are no more. The responsibility for garbage collection is assigned to the replay providers.

Changed

  • Server.Logger is now of a new type: the Logger interface. The dependency on x/exp/slog is removed. This opens up the possibility to adapt any existing logger to be usable with Server.
  • The default backoff behavior has changed. The previous defaults map to the new Backoff configuration as follows:
sse.Backoff{
    InitialInterval:    5 * time.Second,  // currently 500ms
    Multiplier:         1.5,              // currently the same
    Jitter:             0.5,              // currently the same
    MaxInterval:        60 * time.Second, // currently unbounded
    MaxElapsedDuration: 15 * time.Minute, // currently unbounded
    MaxRetries:         -1,               // previously no retries by default, currently unbounded
}
  • Joe now accepts new subscriptions even if replay providers panic (previously ErrReplayFailed would be returned).
  • Server.ServeHTTP panics if a custom OnSession handler returns a Subscription with 0 topics

Added

  • The Logger interface, LogLevel type, and LogLevel(Info|Warn|Error) values.
  • Backoff and Client.Backoff – the backoff strategy is now fully configurable. See the code documentation for info.
  • ValidReplayProvider.GCInterval, to configure at which interval expired events should be cleaned up.
Changelog

Sourced from github.com/tmaxmax/go-sse's changelog.

[0.8.0] - 2024-01-30

This version removes all external dependencies of go-sse. All our bugs are belong to us! It also does some API and documentation cleanups.

Removed

  • Client.DefautReconnectionTime, Client.MaxRetries have been replaced with the new Client.Backoff configuration field. See the Added section for more info.
  • ErrReplayFailed is removed from the public API.
  • ReplayProviderWithGC and Joe.ReplayGCInterval are no more. The responsibility for garbage collection is assigned to the replay providers.

Changed

  • Server.Logger is now of a new type: the Logger interface. The dependency on x/exp/slog is removed. This opens up the possibility to adapt any existing logger to be usable with Server.
  • The default backoff behavior has changed. The previous defaults map to the new Backoff configuration as follows:
sse.Backoff{
    InitialInterval:    5 * time.Second,  // currently 500ms
    Multiplier:         1.5,              // currently the same
    Jitter:             0.5,              // currently the same
    MaxInterval:        60 * time.Second, // currently unbounded
    MaxElapsedDuration: 15 * time.Minute, // currently unbounded
    MaxRetries:         -1,               // previously no retries by default, currently unbounded
}
  • Joe now accepts new subscriptions even if replay providers panic (previously ErrReplayFailed would be returned).
  • Server.ServeHTTP panics if a custom OnSession handler returns a Subscription with 0 topics

Added

  • The Logger interface, LogLevel type, and LogLevel(Info|Warn|Error) values.
  • Backoff and Client.Backoff – the backoff strategy is now fully configurable. See the code documentation for info.
  • ValidReplayProvider.GCInterval, to configure at which interval expired events should be cleaned up.
Commits
  • d2fe2fb Add v0.8.0 in CHANGELOG.md
  • 632c889 Fix race condition in test
  • 07eeb8f Fix go1.20 compatibility issue
  • 27b34cb Update Go in CI
  • e883c7e Make documentation corrections
  • 4fe653c Fix response validator error being temporary
  • 9bacd2e Panic when OnSession gives sub without topics
  • a42a7ff Remove GC responsibility from Joe
  • a284498 Remove ErrReplayFailed
  • 3c854a5 Add bufferBase.dequeue
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 1, 2024
@dependabot dependabot bot requested a review from michaeladler as a code owner February 1, 2024 07:48
@dependabot dependabot bot added the go Pull requests that update Go code label Feb 1, 2024
@dependabot dependabot bot requested a review from stormc as a code owner February 1, 2024 07:48
Bumps [github.com/tmaxmax/go-sse](https://github.com/tmaxmax/go-sse) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/tmaxmax/go-sse/releases)
- [Changelog](https://github.com/tmaxmax/go-sse/blob/master/CHANGELOG.md)
- [Commits](tmaxmax/go-sse@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/tmaxmax/go-sse
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@michaeladler michaeladler force-pushed the dependabot/go_modules/github.com/tmaxmax/go-sse-0.8.0 branch from bf76710 to c8b2b08 Compare February 1, 2024 11:08
@michaeladler michaeladler merged commit 3de80bb into main Feb 1, 2024
18 checks passed
@michaeladler michaeladler deleted the dependabot/go_modules/github.com/tmaxmax/go-sse-0.8.0 branch February 1, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant