-
Notifications
You must be signed in to change notification settings - Fork 383
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
Provide default for defaultLayout #249
Conversation
shouldn't the default be |
We can name it whatever, happy to go with |
@ericf any objections to this PR? |
/cc @sahat |
Thanks @UziTech when do you expect the next release to happen? |
Sorry for the late reply, the change looks good to me, I am going to go ahead and merge it. |
You can find the latest express-handlebars v3.1.0 on npm, which includes this change, as well as the updated handlebars v4.1.2 dependency. |
This wasn't backwards-compatible. 😢 |
@calebolin how so? Previously you had to |
express-handlebars could be used without a layout when using This should bump the major version #253 |
@jfbrennan exactly what @UziTech said |
No layout at all...never had that use case 🤔 |
IMHO it doesn't matter whether a use case can be imagined. If the API supports it, and a release breaks that API, it should be a major version bump. |
Yes, this should have been a major version bump. |
Broke for me too |
This PR broke an example application I provide to other developers, and I've received complaints from those developers. Code that previously worked without a layout now throws an error, without intentionally updating this dependency:
Please consider reverting the change in the 3.x lifecycle and re-releasing it in a 4.x release, although that's yet another API-breaking change so I could see the argument for leaving this alone now that it's done. See https://semver.org/. Thanks! |
I have the same issue that @donmccurdy has, and that is currently causing me a lot of unnecessary work. Therefore, I support his request. |
For those who were broken does @UziTech's I think the change is a positive one, but could have done my part to help the maintainers identify non-backwards compatible use cases. |
@jfbrennan Yes, it does resolve the issue. Of course, the code to adapt is fairly minimal and takes only 5 minutes. What was quite a bit of work, in my case, was:
All in all, I estimate I lost 4-5 hours due to this change. I was rather unhappy with this, because it produced no value for anybody. |
Just encountered this breaking change today myself. FWIW, I really appreciate the effort you put into the library and the hassle it has saved me. The value it has provided me over the past year of using it nicely balances out the few hours today I had to burn :) |
hit us too, why still no 3.1.1? release this as v4 |
This should have been a major version bump, breaking change... follow sem-ver... |
It pains me to see this:
This PR makes express-handlebars default to
main
ifdefaultLayout
is not set. That way you can do: