diff --git a/.travis.yml b/.travis.yml index 801509c..426ad66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,10 @@ language: node_js sudo: false node_js: - - "8" - - "9" - - "10" - - "11" - - "12" + - 8 + - 10 + - 12 + - 16 notifications: email: false diff --git a/HISTORY.md b/HISTORY.md index 6b2b447..6947832 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,10 @@ # Changelog +## v1.2.0: 2021-12-16 + +- Updated to Handlebars 4.7.7 +- Documented render options in readme + ## v1.1.0: 2018-01-28 - Updated Boilerplate diff --git a/README.md b/README.md index 5840d22..7b5bb81 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ handlebars.render('

Hello {{name}}!

', {}, locals).body //=> '

Hello World!

' ``` +In addition to the standard [Handlebars compile options](https://handlebarsjs.com/api-reference/compilation.html#handlebars-compile-template-options), the render method can be passed objects for `partials`, `helpers` and `decorators` (deprecated). + ## License MIT diff --git a/package.json b/package.json index f13ef4d..14d4f9d 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ "index.js" ], "dependencies": { - "handlebars": "^4.0.1" + "handlebars": "^4.7.7" }, "devDependencies": { - "test-jstransformer": "^1.0.0", - "xo": "*" + "test-jstransformer": "^1.1.0", + "xo": "^0.25.4" }, "scripts": { "test": "test-jstransformer",