Uh oh!
There was an error while loading. Please reload this page.
Settings functionality moved out of core - #3218
Conversation
…nabled/disabled/disable/enable
29332d1 to
998d395Comparewesleytodd
commented
Jun 11, 2018
Is there something I can do on this PR to move it forward? |
dougwilson
commented
Aug 2, 2018
Love it. There hasn't been any objections or anything, and finally gets rid of those annoying overloads like |
wesleytodd
commented
Aug 2, 2018
Awesome!! I will go through and do a rebase/cleanup pass asap. |
dougwilson
commented
Aug 2, 2018
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 |
wesleytodd
commented
Aug 2, 2018
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. |
dougwilson
commented
Aug 2, 2018
Nice. |
Ok, so the changes in |
wesleytodd
commented
Aug 11, 2018
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. |
abrahamcuenca
commented
Jan 21, 2020
What is the status of this PR? |
thernstig
commented
Jan 22, 2021
@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). |
wesleytodd
commented
May 17, 2024
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. |
UlisesGascon
commented
May 27, 2024
I agree that we might want to discuss this in more detail. Overall, I am in favor of this approach as |
wesleytodd
commented
Jul 8, 2024
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.getbeing multi purpose. But it could also be done so that the methods remain the same, either via mixing them in, or explicitly calling into.settingsas getter methods.enabled/disabledshorthands to minimize the api surface.etagbut it actually settingetag fn. Not sure, but it seems to me we could get rid of the whole thing but just usingetagdirectly.EDIT: standardjs compliance pending :)
**Dont feel like doing all that busy work tonight if the whole PR might get shut down...