Skip to content
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

Bump the handlebars helpers #36

Merged
merged 1 commit into from
Mar 15, 2017
Merged

Bump the handlebars helpers #36

merged 1 commit into from
Mar 15, 2017

Conversation

LaurentGoderre
Copy link
Contributor

@LaurentGoderre
Copy link
Contributor Author

@jonschlinkert I am using the 0.6.0 handlebars-helpers combination for which the helpers have been tested against.

@jonschlinkert
Copy link
Member

@LaurentGoderre how extensive are the tests? I'm not sure how compatible the 0.6.0 helpers are.

@LaurentGoderre
Copy link
Contributor Author

@jonschlinkert I just updated the tests. 0.6.0 was not quite compatible but I think I fixed it. Can you review the change to this as well as the tests I wrote?
https://github.com/assemble/assemble-handlebars/blob/master/test/core_test.js

@LaurentGoderre
Copy link
Contributor Author

LaurentGoderre commented Mar 3, 2017

@jonschlinkert I also ran the tests in grunt-assemble with this and it all passed.

@LaurentGoderre
Copy link
Contributor Author

@jonschlinkert any objection with me merging this?

@doowb
Copy link
Member

doowb commented Mar 7, 2017

@LaurentGoderre I'm testing this out by running it through a few projects. I think the reason that we haven't updated this is because when handlebars-helpers@0.6.0 was published there were a lot of changes to how the helpers were registered and helpers were removed and added. Because of this, we'll need to bump the minor here and in grunt-assemble since these are breaking changes.

Have you tried the latest version of handlebars-helpers yet?

@LaurentGoderre
Copy link
Contributor Author

I haven't tested the latest but I know that the version here fixes the issues mentioned at the top. That is what I'm trying to solve. I was thinking of bumping it and bumping minor version and do the same to assemble so users can choose which version they want.

index.js Outdated
}
helpers(null, options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should just be helpers(options), otherwise the options aren't used in this version of handlebars-helpers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@doowb
Copy link
Member

doowb commented Mar 7, 2017

We'll definitely have to bump the minors. Most of the helpers are working fine but upgrading a project will require template changes.

I commented in the code on a change that should be made, then I think this is okay to merge. We'll then need to update grunt-assemble and document some of the changes.

@LaurentGoderre
Copy link
Contributor Author

Any update on this?

@doowb doowb merged commit 9f96b56 into assemble:master Mar 15, 2017
@doowb
Copy link
Member

doowb commented Mar 15, 2017

Sorry for the delay. I'll get this published and update grunt-assemble too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants