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

Deprecate per-operation middleware operation defaults #815

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Mar 23, 2025

As per #804, middleware has been restructed to look more like the design
of hooks, and I was finding that as I restructuring documentation as
part of [1] it was hard to recommend the use of per-operation middleware
defaults.

Here, deprecate the per-operation defaults in favor of just the single
river.MiddlewareDefaults struct. This should also be somewhat more
beneficial in case more middleware operations need to be added in the
future because we'll just have fewer total new types emerge out of it.

[1] https://github.com/riverqueue/homepage/pull/198

@brandur brandur force-pushed the brandur-deprecate-per-middleware-defaults branch from 7080a05 to b4f7ce6 Compare March 23, 2025 19:45
@brandur brandur requested a review from bgentry March 23, 2025 19:50
@brandur brandur force-pushed the brandur-deprecate-per-middleware-defaults branch from d884958 to bde1cd8 Compare March 24, 2025 14:39
As per #804, middleware has been restructed to look more like the design
of hooks, and I was finding that as I restructuring documentation as
part of [1] it was hard to recommend the use of per-operation middleware
defaults.

Here, deprecate the per-operation defaults in favor of just the single
`river.MiddlewareDefaults` struct. This should also be somewhat more
beneficial in case more middleware operations need to be added in the
future because we'll just have fewer total new types emerge out of it.

[1] riverqueue/homepage#198
@brandur brandur force-pushed the brandur-deprecate-per-middleware-defaults branch from bde1cd8 to 93b1c38 Compare March 24, 2025 14:43
@brandur brandur merged commit 125d93a into master Mar 24, 2025
19 of 20 checks passed
@brandur brandur deleted the brandur-deprecate-per-middleware-defaults branch March 24, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants