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

4.0.6 candidate #1270

Merged
merged 19 commits into from
Nov 11, 2016
Merged

4.0.6 candidate #1270

merged 19 commits into from
Nov 11, 2016

Conversation

lawnsea
Copy link
Collaborator

@lawnsea lawnsea commented Nov 9, 2016

Fix #1256 by releasing all changes on master that can ship in a patch release. I've included only bug fixes, non-breaking tooling changes, and documentation updates.

One commit of note that I did not include was 768ddbd, which is a bug fix, but changes undocumented behavior of the custom helper API. I think it should ship in the next major release.

Note that this PR must not be squashed when landed to the 4.x branch.

kpdecker and others added 19 commits November 9, 2016 11:39
The tests are run through the transpiler and just reverting the user of template literal is easier than adding transpiler to the test stack.
This was causing a difficult to diagnose failure under IE and doesn’t give us enough value to justify the change.
To preserve license info in Closure Compiler the license has to be JSDoc-comment (not simple comment) and have @license before license text
Add a new package [just-handlebars-helpers](/~https://github.com/leapfrogtechnology/just-handlebars-helpers) on the list. 

This is a lightweight package that offers a collection of common handlebars helpers. And it is [fully tested](https://codecov.io/github/leapfrogtechnology/just-handlebars-helpers)
The root cause of handlebars-lang#1218 is that `invokePartial` creates a stack of data frames
for nested partial blocks, but `resolvePartial` always uses the value at top of
the stack without "popping" it. The result is an infinite recursive loop, as
references to `@partial-block` in the partial at the top of the stack resolve to
itself.

So, walk up the stack of data frames when evaluating. This is accomplished by
1) setting the `partial-block` property to `noop` after use and
2) using `_parent['partial-block']` if `partial-block` is `noop`

Fix handlebars-lang#1218
@lawnsea lawnsea mentioned this pull request Nov 9, 2016
@lawnsea lawnsea merged commit abc160a into handlebars-lang:4.x Nov 11, 2016
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.

10 participants