-
Notifications
You must be signed in to change notification settings - Fork 2k
Comparing changes
Open a pull request
base repository: handlebars-lang/handlebars.js
base: v4.2.1
head repository: handlebars-lang/handlebars.js
compare: v4.7.6
Commits on Sep 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 2078c72 - Browse repository at this point
Copy the full SHA 2078c72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06b7224 - Browse repository at this point
Copy the full SHA 06b7224View commit details -
Configuration menu - View commit details
-
Copy full SHA for bba6560 - Browse repository at this point
Copy the full SHA bba6560View commit details -
Configuration menu - View commit details
-
Copy full SHA for a89081d - Browse repository at this point
Copy the full SHA a89081dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d148d7c - Browse repository at this point
Copy the full SHA d148d7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93444c5 - Browse repository at this point
Copy the full SHA 93444c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64ecb9e - Browse repository at this point
Copy the full SHA 64ecb9eView commit details -
do not break on precompiled templates from Handlebars >=4.0.0 <4.3.0
- The version-range above have compiler version 7 and precompiled templates expecte the (block) HelperMissing-functions in "helpers" and not in "container.hooks". - Handlebars now accepts precompiled templates of version 7. - If a precompiled template with version 7 is loaded, the (block)HelperMissing-functions are kept in "helpers"
Configuration menu - View commit details
-
Copy full SHA for 1266838 - Browse repository at this point
Copy the full SHA 1266838View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2a17c7 - Browse repository at this point
Copy the full SHA c2a17c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3639e2 - Browse repository at this point
Copy the full SHA e3639e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d55790 - Browse repository at this point
Copy the full SHA 2d55790View commit details -
Configuration menu - View commit details
-
Copy full SHA for 050cca0 - Browse repository at this point
Copy the full SHA 050cca0View commit details
Commits on Sep 26, 2019
-
Use Object.prototype.propertyIsEnumerable to check for constructors
- context.propertyIsEnumerable can be replaced via __definedGetter__ - This is a fix specific to counter a known RCE exploit. Other fixes will follow. closes #1563
Configuration menu - View commit details
-
Copy full SHA for 213c0bb - Browse repository at this point
Copy the full SHA 213c0bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5cbeac - Browse repository at this point
Copy the full SHA c5cbeacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2357140 - Browse repository at this point
Copy the full SHA 2357140View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8742bde - Browse repository at this point
Copy the full SHA 8742bdeView commit details
Commits on Sep 27, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 54f7e11 - Browse repository at this point
Copy the full SHA 54f7e11View commit details -
Configuration menu - View commit details
-
Copy full SHA for e473849 - Browse repository at this point
Copy the full SHA e473849View commit details
Commits on Sep 28, 2019
-
fix: harden "propertyIsEnumerable"-check
- "container" is an internal object that is most likely not accessible through templateing (unlike the proto of "Object", which might be.) In order to prevent overriding this method, we use "propertyIsEnumerable" from the constructor.
Configuration menu - View commit details
-
Copy full SHA for ff4d827 - Browse repository at this point
Copy the full SHA ff4d827View commit details -
Configuration menu - View commit details
-
Copy full SHA for b250b2d - Browse repository at this point
Copy the full SHA b250b2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c958cc8 - Browse repository at this point
Copy the full SHA c958cc8View commit details
Commits on Sep 29, 2019
-
Added support for iterable objects in {{#each}} helper (#1557)
* Added support for iterable object in {{#each}} helper Currently {{#each}} helper supports either arrays, or objects, however nowadays you can define custom iterable objects by overriding a special method called Symbol.iterator, which results in empty result being rendered. * improved a test for iterables in {{#each}} returning empty result * #each helper: using ES5 instead of generator functions in tests * #each helper: using ES5 in the helper itself
Configuration menu - View commit details
-
Copy full SHA for cf7545e - Browse repository at this point
Copy the full SHA cf7545eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f6047c - Browse repository at this point
Copy the full SHA 8f6047cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 059b330 - Browse repository at this point
Copy the full SHA 059b330View commit details
Commits on Oct 2, 2019
-
chore: use @knappi/grunt-saucelabs instead of github-dependency
- mostly because installing dependencies from github takes really long in this case.
Configuration menu - View commit details
-
Copy full SHA for c53f340 - Browse repository at this point
Copy the full SHA c53f340View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cb3165 - Browse repository at this point
Copy the full SHA 9cb3165View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e769f - Browse repository at this point
Copy the full SHA b8e769fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7eada0 - Browse repository at this point
Copy the full SHA b7eada0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26d0f7a - Browse repository at this point
Copy the full SHA 26d0f7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b793350 - Browse repository at this point
Copy the full SHA b793350View commit details
Commits on Oct 8, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0440af2 - Browse repository at this point
Copy the full SHA 0440af2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba570c4 - Browse repository at this point
Copy the full SHA ba570c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e53fba - Browse repository at this point
Copy the full SHA 2e53fbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b593bf - Browse repository at this point
Copy the full SHA 0b593bfView commit details
Commits on Oct 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for feb60f8 - Browse repository at this point
Copy the full SHA feb60f8View commit details
Commits on Oct 20, 2019
-
fix: prevent zero length tokens in raw-blocks (#1577)
This comment ensures that the lexer is not stuck on zero-length tokens, in raw-blocks like {{{{a}}}} {{{{/a}}}}
Configuration menu - View commit details
-
Copy full SHA for aaab609 - Browse repository at this point
Copy the full SHA aaab609View commit details -
fix: prevent zero length tokens in raw-blocks (#1577)
This comment ensures that the lexer is not stuck on zero-length tokens, in raw-blocks like {{{{a}}}} {{{{/a}}}}
Configuration menu - View commit details
-
Copy full SHA for f1752fe - Browse repository at this point
Copy the full SHA f1752feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 143ac80 - Browse repository at this point
Copy the full SHA 143ac80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ab261e - Browse repository at this point
Copy the full SHA 2ab261eView commit details -
fix: non-eager matching raw-block-contents
In 4.4.4 the block-contents was matched with an eager match, which means that with multiple raw-blocks of the same kind, the block was spanned over the first ending-tag until the last one. This commit replaces this by a non-eager match. closes #1579
Configuration menu - View commit details
-
Copy full SHA for 8d5530e - Browse repository at this point
Copy the full SHA 8d5530eView commit details -
fix: non-eager matching raw-block-contents
In 4.4.4 the block-contents was matched with an eager match, which means that with multiple raw-blocks of the same kind, the block was spanned over the first ending-tag until the last one. This commit replaces this by a non-eager match. closes #1579
Configuration menu - View commit details
-
Copy full SHA for fd2e5c9 - Browse repository at this point
Copy the full SHA fd2e5c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for def79fd - Browse repository at this point
Copy the full SHA def79fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e1cce7 - Browse repository at this point
Copy the full SHA 8e1cce7View commit details
Commits on Oct 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a15d01d - Browse repository at this point
Copy the full SHA a15d01dView commit details
Commits on Oct 27, 2019
-
fix: add guard to if & unless helpers (#1549)
fixes #1548 - add a guard to show readable syntax error for if / unless helper - prevents against 3 different errors that can be generated by different systax errors
Configuration menu - View commit details
-
Copy full SHA for c76ded8 - Browse repository at this point
Copy the full SHA c76ded8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fcf9d2 - Browse repository at this point
Copy the full SHA 7fcf9d2View commit details -
Add Handlebars.parseWithoutProcessing (#1584)
When authoring tooling that parses Handlebars files and emits Handlebars files, you often want to preserve the **exact** formatting of the input. The changes in this commit add a new method to the `Handlebars` namespace: `parseWithoutProcessing`. Unlike, `Handlebars.parse` (which will mutate the parsed AST to apply whitespace control) this method will parse the template and return it directly (**without** processing :wink:). For example, parsing the following template: ```hbs {{#foo}} {{~bar~}} {{baz~}} {{/foo}} ``` Using `Handlebars.parse`, the AST returned would have truncated the following whitespace: * The whitespace prior to the `{{#foo}}` * The newline following `{{#foo}}` * The leading whitespace before `{{~bar~}}` * The whitespace between `{{~bar~}}` and `{{baz~}}` * The newline after `{{baz~}}` * The whitespace prior to the `{{/foo}}` When `Handlebars.parse` is used from `Handlebars.precompile` or `Handlebars.compile`, this whitespace stripping is **very** important (these behaviors are intentional, and generally lead to better rendered output). When the same template is parsed with `Handlebars.parseWithoutProcessing` none of those modifications to the AST are made. This enables "codemod tooling" (e.g. `prettier` and `ember-template-recast`) to preserve the **exact** initial formatting. Prior to these changes, those tools would have to _manually_ reconstruct the whitespace that is lost prior to emitting source.
Configuration menu - View commit details
-
Copy full SHA for 62ed3c2 - Browse repository at this point
Copy the full SHA 62ed3c2View commit details
Commits on Oct 28, 2019
-
Add missing types for the Exception class properties (#1583)
* Convert Exception to a class * Add node param type declaration * Test the types
Configuration menu - View commit details
-
Copy full SHA for b8913fc - Browse repository at this point
Copy the full SHA b8913fcView commit details -
Resolve deprecation warning message from eslint while running eslint (#…
…1586) * Resolve eslint deprecation warning There was a DeprecationWarning message from eslint saying that `ecmaFeatures` property has been deprecated. Moved it under the `parserOptions` as per recommended here - https://eslint.org/docs/user-guide/migrating-to-2.0.0. * Set escmaVersion = 6 * Use ES6 built-in global variables * Remove flags in favor of ecmaVersion
Configuration menu - View commit details
-
Copy full SHA for 7052e88 - Browse repository at this point
Copy the full SHA 7052e88View commit details -
chore: add eslint-plugin-compat and eslint-plugin-es5
- tests are not compiled with babel and must thus be in es5 - we don't use polyfills, so we need to make sure no functions aren't used that are not supported by popular browsers. (like Object.assign in Safari and IE11) - Boths are errors that usually only appear when running tests in SauceLabs, which happens only on _after_ merging a PR.
Configuration menu - View commit details
-
Copy full SHA for 088e618 - Browse repository at this point
Copy the full SHA 088e618View commit details
There are no files selected for viewing
This file was deleted.