-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Remove plugs from Spandex core #81
Comments
👍 |
Thinking about it, we should probably move the plugs stuff over to spandex_phoenix or something. I know plugs are their own thing, but it probably fits more there than it does here. |
Yeah I had the same thought, but at the time, we didn't have |
private
instead of assigns
for storing state
I've updated this issue to represent more modern times. In our 3.0.0 release we should simply remove the plugs from core. |
Agreed, which means we should go ahead and deprecate them now, in favor of the |
Yeah, great plan. How do you deprecate a plug? Do we just deprecate the |
See the Plug docs for details, but libraries aren't supposed to pollute the
assigns
on the Conn.https://github.com/elixir-plug/plug/blob/master/lib/plug/conn.ex#L69
https://github.com/elixir-plug/plug/blob/master/lib/plug/conn.ex#L84-L89
The text was updated successfully, but these errors were encountered: