Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
base repository: handlebars-lang/handlebars.js
base: v4.0.6
Choose a base ref
head repository: handlebars-lang/handlebars.js
compare: v4.0.7
Choose a head ref
  • 10 commits
  • 17 files changed
  • 4 contributors

Commits on Dec 30, 2016

  1. Testcase to verify that compile-errors have a column-property

    Related to #1284
    
    The test ensures that the property is there, because it is important to
    some people.
    nknapp committed Dec 30, 2016
    Copy the full SHA
    c7dc353 View commit details
    Browse the repository at this point in the history
  2. Make "column"-property of Errors enumerable

    Fixes #1284
    
    Appearently, there is a use-case of stringifying the error in order to
    evaluated its properties on another system. There was a regression
    from 4.0.5  to 4.0.6 that the column-property of compilation errors
    was not  enumerable anymore in 4.0.6 (due to  commit 20c965c) and
    thus was not included in the output of "JSON.stringify".
    nknapp committed Dec 30, 2016
    Copy the full SHA
    a023cb4 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2017

  1. require('sys') is deprecated, using 'util' instead

    (node:30288) DeprecationWarning: sys is deprecated. Use util instead.
    
    (cherry picked from commit 9a36966 by @travnels)
    travnels authored and nknapp committed Jan 1, 2017
    Copy the full SHA
    406f2ee View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2017

  1. Avoid duplicate "sourceMappingURL=" lines.

    Avoid duplicate // sourceMappingURL=... lines when minifying AND
    generating a map. UglifyJS2 will write the line when minifying.
    
    (cherry picked from commit 660a117)
    joonas-lahtinen authored and nknapp committed Feb 14, 2017
    Copy the full SHA
    01b0f65 View commit details
    Browse the repository at this point in the history
  2. Fix for #1252: Using @partial-block twice in a template not possible

    Fixes #1252
    - This fix treats partial-blocks more like closures and uses the closure-context of
      the "invokePartial"-function to store the @partial-block for the partial.
    - Adds a tes for the fix
    nknapp committed Feb 14, 2017
    Copy the full SHA
    5a164d0 View commit details
    Browse the repository at this point in the history
  3. Add more tests for partial-blocks and inline partials

    - Multiple partial-blocks at different nesting levels
    - Calling partial-blocks twice with nested partial-blocks
    - Calling the partial-block from within the #each-helper
    - nested inline partials with partial-blocks on different nesting levels
    - nested inline partials (twice at each level)
    nknapp committed Feb 14, 2017
    Copy the full SHA
    63a8e0c View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2017

  1. Parser: Change suffix to use ES6 default module export

    - This export will be transpiled by Babel for the cjs distribution,
      but will enable others to  use a pure ES6 module distribution
    - Instanbul: Ignore "parser.js" for coverage reporting. This file was ignored before
      via annotation, but this has no effect anymore due to the above change
    - Remove istanbul annotation from `parser-prefix` (@nknapp)
    
    Squashed by @nknapp
    
    (cherry picked from commit 508347e)
    Turbo87 authored and nknapp committed Feb 24, 2017
    Copy the full SHA
    b617375 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2017

  1. Fix context-stack when calling block-helpers on null values

    Fixes #1319
    
    Original behaviour:
    - When a block-helper was called on a null-context, an empty object was used
      as context instead. (#1093)
    - The runtime verifies that whether the current context equals the
      last context and adds the current context to the stack, if it is not.
      This is done, so that inside a block-helper, the ".." path can be used
      to go back to the parent element.
    - If the helper is called on a "null" element, the context was added, even
      though it shouldn't be, because the "null != {}"
    
    Fix:
    - The commit replaces "null" by the identifiable "container.nullContext"
      instead of "{}". "nullContext" is a sealed empty object.
    - An additional check in the runtime verifies that the context is
      only added to the stack, if it is not the nullContext.
    
    Backwards compatibility within 4.0.x-versions:
    - This commit changes the compiler and compiled templates would not work
      with runtime-versions 4.0.0 - 4.0.6, because of the "nullContext"
      property. That's way, the compiled code reads
      "(container.nullContext || {})" so that the behavior will degrade
      gracefully with older runtime versions: Everything else will work
      fine, but GH-1319 will still be broken, if you use a newer compiler
      with a pre 4.0.7 runtime.
    nknapp committed Mar 25, 2017
    Copy the full SHA
    c8f4b57 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2017

  1. Update release-notes for 4.0.7

    nknapp committed Apr 29, 2017
    Copy the full SHA
    8e09f0e View commit details
    Browse the repository at this point in the history
  2. v4.0.7

    nknapp committed Apr 29, 2017
    Copy the full SHA
    606fa55 View commit details
    Browse the repository at this point in the history