-
Notifications
You must be signed in to change notification settings - Fork 70
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 {@if} and {@idx} #102
Conversation
The code looks good, but how will a dev know what to use instead of these deprecated helpers? Is there anyway we could add a link inside the message? |
That's a great call. I'll build a wiki page and have |
1.4.0 is already out there and in use. Shouldn't the deprecation be after 1.5.x based on two releases of warning (since .1.4.x is already out there without it) |
Less sure about @idx. People have proposed a parameter that would support a base value other than 0 which is really useful for some applications. |
|
128a14e
to
8e1b036
Compare
Linking to #95 |
My thought on an idx that doesn't start from 0 is just to use |
Deprecation wiki page: https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features |
See #80 for an option to have 👎 we should probaly keep idx |
I don't super see the benefit of Mostly it's just the Python principle of "there should be only one-- preferably obvious-- way to do it". So take out the deprecation of Re: deprecation version, should a feature have to be deprecated in x.x.0 to be removed in x.x+1.0? I think that might be too slow, but I'm not hard-set. |
No, you're right-- because we need to have a feature available for the entire life of any version of dust supported by that version of the helpers. So since 1.4.x supports up to Dust 2.5, we can't remove the feature until 1.6 which supports Dust 2.6 and 2.7. I think I'll add a target param to |
Yeh, the |
b1e3c28
to
43ef65a
Compare
43ef65a
to
20e0226
Compare
I know this is way late, but I wanted to let you know of a combination of bad things caused by this PR :( At least, with the version of dust that was active at this time, the log level defaulted to NONE, so the deprecation warning wasn't shown by default. Then, when the package was updated to a version after @if had been removed, it failed to function silently. Finally, this change happened with a minor version update, which means This was a really bad experience, and I hope the procedure is different now and in the future :\ |
Generates a WARN when these helpers are used. This would go into helpers 1.4.x, and these two helpers would be removed in 1.5.x.