diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f9cf23..180855d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Pending +- Bumps paper-handlebars to 4.5.2 [#262](https://github.com/bigcommerce/paper/pull/262) ## 3.0.0 (2022-02-08) * Deprecating 2x branch as it's not used and maintained anymore diff --git a/index.js b/index.js index 2f0a18b..2c792b5 100644 --- a/index.js +++ b/index.js @@ -44,17 +44,17 @@ class Paper { * @param {String} rendererType - One of ['handlebars-v3', 'handlebars-v4'] * @param {Object} logger - a console-like logger object */ - constructor(siteSettings, themeSettings, assembler, rendererType, logger = console) { + constructor(siteSettings, themeSettings, assembler, rendererType, logger = console, logLevel = 'info') { this._assembler = assembler || {}; // Build renderer based on type switch(rendererType) { case 'handlebars-v4': - this.renderer = new HandlebarsRenderer(siteSettings, themeSettings, 'v4', logger); + this.renderer = new HandlebarsRenderer(siteSettings, themeSettings, 'v4', logger, logLevel); break; case 'handlebars-v3': default: - this.renderer = new HandlebarsRenderer(siteSettings, themeSettings, 'v3', logger); + this.renderer = new HandlebarsRenderer(siteSettings, themeSettings, 'v3', logger, logLevel); break; } diff --git a/package.json b/package.json index ab7248b..2e87c62 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/bigcommerce/paper", "dependencies": { - "@bigcommerce/stencil-paper-handlebars": "4.5.1", + "@bigcommerce/stencil-paper-handlebars": "4.5.2", "accept-language-parser": "~1.4.1", "messageformat": "~0.2.2" },