-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
Settings functionality moved out of core #3218
Conversation
…nabled/disabled/disable/enable
29332d1
to
998d395
Compare
Is there something I can do on this PR to move it forward? |
Love it. There hasn't been any objections or anything, and finally gets rid of those annoying overloads like |
Awesome!! I will go through and do a rebase/cleanup pass asap. |
Sweet, that will help a lot 👍 I had noticed two things, mainly, from looking through it at a high level: (1) cap the dependency to |
Yeah I can cap that for sure. For the back porting, I think we can do it, just need to call into the new stuff and log the deprecation in the old. I will take a look at that as well. |
Nice. |
Ok, so the changes in |
Ok, #3714 is open. It ports all these changes to 4.0 and provides deprecation warnings. Once we figure out the points I brought up over there I will finalize the changes in this PR for the 5.0 branch. |
What is the status of this PR? |
@wesleytodd did this die off? Looking at #2237 it seems sensitive to ask about 5.0 considering it is locked. Considering that PR was created on 14 Jul 2014 I think it is a fair question (although I do know these topics are sensitive to maintainers, but 7 years is a long time). |
I am not sure this one can land without addressing the one which targeted v4 #3714. I think we were unclear what we wanted in that thread, so I might need to think on it for a bit and get feedback from the other folks on @expressjs/express-tc if we want to try and land this one with or without the v4 deprecation. |
I agree that we might want to discuss this in more detail. Overall, I am in favor of this approach as |
We discussed this on the call today and have decided that we would not land this. In the future the plan is to revamp the settings api to make it more suitable to the needs of modern express apps. So that we don't break folks twice for the same api we decided this one can be closed. |
This is based on what was discussed at the last TC meeting for a good "first step" in abstracting out parts of core than can be shared. The changes here are rather far reaching, but they basically mean the following:
Become:
I think there are a bunch of points for discussion here:
.settings
, mainly to resolves the weird behavior fromapp.get
being multi purpose. But it could also be done so that the methods remain the same, either via mixing them in, or explicitly calling into.settings
as getter methods.enabled
/disabled
shorthands to minimize the api surface.etag
but it actually settingetag fn
. Not sure, but it seems to me we could get rid of the whole thing but just usingetag
directly.EDIT: standardjs compliance pending :)
**Dont feel like doing all that busy work tonight if the whole PR might get shut down...