@bigcommerce/stencil-paper
Advanced tools
Comparing version 3.0.0-rc.41 to 3.0.0-rc.42
# Changelog | ||
## 3.0.0-rc.42 (2021-05-11) | ||
- Improved filtering language object by key for langJSON helper, that was struggling with perfomance on GraalVM [#236](https://github.com/bigcommerce/paper/pull/236) | ||
## 3.0.0-rc.41 (2021-05-07) | ||
- Improved filtering language object by key for langJSON helper, that was struggling with perfomance on GraalVM [#226](https://github.com/bigcommerce/paper/pull/234) | ||
- Improved filtering language object by key for langJSON helper, that was struggling with perfomance on GraalVM [#234](https://github.com/bigcommerce/paper/pull/234) | ||
## 3.0.0-rc.40 (2021-03-30) | ||
- paper.loadTranslations now supports additional parameter to omit transforming translations [#226](https://github.com/bigcommerce/paper/pull/231) | ||
- paper.loadTranslations now supports additional parameter to omit transforming translations [#231](https://github.com/bigcommerce/paper/pull/231) | ||
## 3.0.0-rc.39 (2021-03-15) | ||
- Bumps paper-handlebars to 4.4.7 [#226](https://github.com/bigcommerce/paper/pull/230) | ||
- Bumps paper-handlebars to 4.4.7 [#230](https://github.com/bigcommerce/paper/pull/230) | ||
## 3.0.0-rc.38 (2021-03-15) | ||
- Added public interface for handlebars to add templates and preprocess them [#228](https://github.com/bigcommerce/paper/pull/228) | ||
- Bumps paper-handlebars to 4.4.6 [#226](https://github.com/bigcommerce/paper/pull/229) | ||
- Bumps paper-handlebars to 4.4.6 [#229](https://github.com/bigcommerce/paper/pull/229) | ||
@@ -16,0 +19,0 @@ ## 3.0.0-rc.37 (2021-02-12) |
@@ -20,8 +20,6 @@ 'use strict'; | ||
const languageSubKeys = Object.keys(language[key]); | ||
result[key] = {}; | ||
for (let k = 0; k < languageSubKeys.length; k++) { | ||
const subKey = languageSubKeys[k]; | ||
if (subKey.startsWith(keyFilter)) { | ||
if (!result[key]) { | ||
result[key] = {}; | ||
} | ||
result[key][subKey] = language[key][subKey]; | ||
@@ -28,0 +26,0 @@ } |
{ | ||
"name": "@bigcommerce/stencil-paper", | ||
"version": "3.0.0-rc.41", | ||
"version": "3.0.0-rc.42", | ||
"description": "A Stencil plugin to load template files and render pages using backend renderer plugins.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -262,2 +262,8 @@ 'use strict'; | ||
expect(translator.getLanguage('non-existent')).to.equal({ | ||
locale: 'en', | ||
locales: {}, | ||
translations: {}, | ||
}); | ||
done(); | ||
@@ -264,0 +270,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56091
1031