UNPKG

13.2 kBMarkdownView Raw
1# Changelog
2
3## Pending
4
5## 4.0.1 (2022-06-16)
6- bump paper-handlebars: STRF-9873 use modified implementations of `get`, `getObject`, `moment`, `option` 3p helpers [280](https://github.com/bigcommerce/paper/pull/280)
7
8## 4.0.0 (2022-06-07)
9- bump paper-handlebars: STRF-9835 Reduce proto usage [278](https://github.com/bigcommerce/paper/pull/278)
10- drop node 12 support [277](https://github.com/bigcommerce/paper/pull/277)
11
12## 3.0.4 (2022-03-23)
13- bump paper-handlerbars [#275](https://github.com/bigcommerce/paper/pull/275)
14
15## 3.0.4 (2022-03-18)
16- bump paper-handlerbars [#273](https://github.com/bigcommerce/paper/pull/273)
17- STRF-9705 MessageFormat errors mark as warning [#272](https://github.com/bigcommerce/paper/pull/272)
18
19## 3.0.3 (2022-03-02)
20- STRF-9658 logger accepts strings instead of objects [#270](https://github.com/bigcommerce/paper/pull/270)
21
22# 3.0.2 (2022-02-23)
23- Bumps paper-handlebars to 4.5.3 [#269](https://github.com/bigcommerce/paper/pull/269)
24
25## 3.0.1 (2022-02-17)
26- Bumps paper-handlebars to 4.5.2 [#266](https://github.com/bigcommerce/paper/pull/266)
27## 3.0.0 (2022-02-08)
28* Deprecating 2x branch as it's not used and maintained anymore
29
30
31## 3.0.0-rc.54 (2022-01-31)
32* Revert some unused code that should have been removed as part of previous reversions [#260](https://github.com/bigcommerce/paper/pull/260)
33* Cleanup filterByKey [#261](https://github.com/bigcommerce/paper/pull/261)
34* Improve performance of Translator constructor through internal refactor of Transformer [#262](https://github.com/bigcommerce/paper/pull/262)
35
36## 3.0.0-rc.53 (2021-12-20)
37- STRF-9553 Fallback languages in the chain [#258](https://github.com/bigcommerce/paper/pull/258)
38
39## 3.0.0-rc.52 (2021-12-8)
40- Bumps paper-handlebars to 4.5.1 [#255](https://github.com/bigcommerce/paper/pull/255)
41
42## 3.0.0-rc.51 (2021-10-22)
43- Bumps paper-handlebars to 4.5.0 [#255](https://github.com/bigcommerce/paper/pull/255)
44
45## 3.0.0-rc.50 (2021-10-04)
46- Reverted messageformat library to 0.2.2 [#253](https://github.com/bigcommerce/paper/pull/253)
47-
48## 3.0.0-rc.49 (2021-09-16)
49- Bumps paper-handlebars to 4.4.9 [#252](https://github.com/bigcommerce/paper/pull/252)
50
51## 3.0.0-rc.48 (2021-07-20)
52- Upgrade deprecated messageformat library to @messageformat/core [#246](https://github.com/bigcommerce/paper/pull/246)
53
54## 3.0.0-rc.47 (2021-07-20)
55- Bump paper-handlebars to latest version, includes changes to support region translations [#245](https://github.com/bigcommerce/paper/pull/245)
56
57## 3.0.0-rc.46 (2021-06-17)
58- Do not break render operation if some translation key is not possible to precompile because of wrongly formatted value [#243](https://github.com/bigcommerce/paper/pull/243)
59
60## 3.0.0-rc.45 (2021-06-10)
61- Introduced disablePluralKeyChecks option for disabling plural keys
62[checks](http://messageformat.github.io/messageformat/v2/MessageFormat#disablePluralKeyChecks__anchor) on messageformat library [#241](https://github.com/bigcommerce/paper/pull/241)
63
64## 3.0.0-rc.44 (2021-05-18)
65- Bump messageformat library to latest version [#239](https://github.com/bigcommerce/paper/pull/239)
66
67## 3.0.0-rc.43 (2021-05-18)
68- Created an endpoint for precaching lang helper function [#235](https://github.com/bigcommerce/paper/pull/235)
69
70## 3.0.0-rc.42 (2021-05-11)
71- Improved filtering language object by key for langJSON helper, that was struggling with perfomance on GraalVM [#236](https://github.com/bigcommerce/paper/pull/236)
72
73## 3.0.0-rc.41 (2021-05-07)
74- Improved filtering language object by key for langJSON helper, that was struggling with perfomance on GraalVM [#234](https://github.com/bigcommerce/paper/pull/234)
75
76## 3.0.0-rc.40 (2021-03-30)
77- paper.loadTranslations now supports additional parameter to omit transforming translations [#231](https://github.com/bigcommerce/paper/pull/231)
78
79## 3.0.0-rc.39 (2021-03-15)
80- Bumps paper-handlebars to 4.4.7 [#230](https://github.com/bigcommerce/paper/pull/230)
81
82## 3.0.0-rc.38 (2021-03-15)
83- Added public interface for handlebars to add templates and preprocess them [#228](https://github.com/bigcommerce/paper/pull/228)
84- Bumps paper-handlebars to 4.4.6 [#229](https://github.com/bigcommerce/paper/pull/229)
85
86## 3.0.0-rc.37 (2021-02-12)
87- Bumps paper-handlebars to 4.4.4 [#226](https://github.com/bigcommerce/paper/pull/226)
88
89## 3.0.0-rc.36 (2020-12-15)
90- Bumps paper-handlebars to 4.4.3 [#223](https://github.com/bigcommerce/paper/pull/223)
91
92## 3.0.0-rc.35 (2020-11-17)
93- Bumps paper-handlebars to 4.4.2 [#219](https://github.com/bigcommerce/paper/pull/219)
94
95## 3.0.0-rc.34 (2020-11-16)
96- Rollback paper-handlebars to 4.4.1 [#216](https://github.com/bigcommerce/paper/pull/216)
97
98## 3.0.0-rc.33 (2020-09-21)
99- Bumps paper-handlebars to 4.5.0-rc.2 [#214](https://github.com/bigcommerce/paper/pull/214)
100
101## 3.0.0-rc.32 (2020-09-04)
102- Refactor Translator and drop unneeded dependency. Bumps paper-handlebars to 4.5.0-rc.1 [#208](https://github.com/bigcommerce/paper/pull/208)
103
104## 3.0.0-rc.31 (2020-08-28)
105- Bump paper-handlebars version to 4.4.1 [#204](https://github.com/bigcommerce/paper/pull/204)
106
107## 3.0.0-rc.30 (2020-08-25)
108- Bump paper-handlebars version to 4.4.0 [#202](https://github.com/bigcommerce/paper/pull/202)
109
110## 3.0.0-rc.29 (2020-06-05)
111- Bump paper-handlebars version to 4.3.2 [#199](https://github.com/bigcommerce/paper/pull/199)
112
113## 3.0.0-rc.28 (2020-02-21)
114- Bump paper-handlebars version to 4.3.1 [#195](https://github.com/bigcommerce/paper/pull/195)
115
116## 3.0.0-rc.27 (2020-01-29)
117- Bump paper-handlebars version to 4.3.0 [#193](https://github.com/bigcommerce/paper/pull/193)
118
119## 3.0.0-rc.26 (2019-10-16)
120- Fix Stencil language translation in Safari [#186](https://github.com/bigcommerce/paper/pull/186)
121
122## 3.0.0-rc.25 (2019-10-15)
123- Bump paper-handlebars version to 4.2.3 [#183](https://github.com/bigcommerce/paper/pull/183)
124- Refactor logging. You can now pass an optional console-like logger object which will be used for internal logging as well as Handlebars logging. [#183](https://github.com/bigcommerce/paper/pull/183)
125
126## 3.0.0-rc.24 (2019-10-09)
127- Bump paper version [#182](https://github.com/bigcommerce/paper/pull/182)
128- Fix renderTheme function so that it may work with Stencil CLI [#181](https://github.com/bigcommerce/paper/pull/181)
129
130## 3.0.0-rc.22 (2019-10-02)
131- Bump paper-handlebars version [#180](https://github.com/bigcommerce/paper/pull/180)
132- Bump paper-handlebars version to 4.2.2 [#179](https://github.com/bigcommerce/paper/pull/179)
133
134## 3.0.0-rc.20 (2019-08-06)
135- Bump paper-handlebars to 4.2.1 [#177](https://github.com/bigcommerce/paper/pull/177)
136
137## 3.0.0-rc.19 (2019-07-31)
138- Bump paper-handlebars to 4.2.0 [#175](https://github.com/bigcommerce/paper/pull/175)
139
140## 3.0.0-rc.18 (2019-07-29)
141- Bump paper-handlebars to 4.1.2 [#172](https://github.com/bigcommerce/paper/pull/172)
142
143## 3.0.0-rc.17 (2019-07-12)
144- Bump paper-handlebars to 4.1.1 [#171](https://github.com/bigcommerce/paper/pull/171)
145
146## 3.0.0-rc.16 (2019-07-10)
147- Bump paper-handlebars to 4.1.0 [#166](https://github.com/bigcommerce/paper/pull/166)
148
149## 3.0.0-rc.15 (2019-06-30)
150- Bump paper-handlebars to 4.0.9 [#165](https://github.com/bigcommerce/paper/pull/165)
151
152## 3.0.0-rc.14 (2019-06-30)
153- Bump paper-handlebars to 4.0.8 [#163](https://github.com/bigcommerce/paper/pull/163) to update Handlebars
154
155## 3.0.0-rc.13 (2019-05-24)
156- Bump paper-handlebars to 4.0.6 [#157](https://github.com/bigcommerce/paper/pull/157) to add display support for Google fonts
157
158## 3.0.0-rc.12 (2019-03-29)
159- Added an option to pass in logger and override the default logger of the app [#153](https://github.com/bigcommerce/paper/pull/153)
160
161## 3.0.0-rc.11 (2019-02-14)
162- Bump paper-handlebars to 4.0.4 [#150](https://github.com/bigcommerce/paper/pull/150) to fix
163 regex performance to match precompiled templates.
164
165## 3.0.0-rc.10 (2019-02-04)
166- Bump paper-handlebars to 4.0.4 [#149](https://github.com/bigcommerce/paper/pull/149) to fix
167 cdn url.
168
169## 3.0.0-rc.9 (2018-12-18)
170- Bump paper-handlebars to 4.0.3 [#143](https://github.com/bigcommerce/paper/pull/143) to fix
171 resourceHints to always use https for font providers.
172
173## 3.0.0-rc.8 (2018-12-7)
174- Bump paper-handlebars to 4.0.2 [#142](https://github.com/bigcommerce/paper/pull/142) to fix
175 `region` helper, should render regardless of empty content.
176
177## 3.0.0-rc.7 (2018-10-30)
178- Bump paper-handlebars to 4.0.1 [#140](https://github.com/bigcommerce/paper/pull/140) to fix
179 `cdnify` and avoid double slash in the generated url.
180
181## 3.0.0-rc.6 (2018-10-04)
182Breaking change:
183- Use paper-handlebars 4.0.0, which uses Promises for `render` and `renderString`.
184- Change `loadTheme`, `loadTemplates`, `loadTranslations`, `render`, `renderString`,
185 and `renderTheme` to be based on Promises rather than callbacks.
186
187## 3.0.0-rc.5 (2018-08-23)
188- Bump paper-handlebars to 3.0.3 [#136](https://github.com/bigcommerce/paper/pull/136) which adds support for
189 `gtnum` operator in `if` helper.
190
191## 3.0.0-rc.4 (2018-05-31)
192- Bump paper-handlebars to 3.0.2 [#135](https://github.com/bigcommerce/paper/pull/135) which adds the
193 `resourceHints` helper.
194
195## 3.0.0-rc.3 (2018-01-31)
196- Bump paper-handlebars to 3.0.1 [#132](https://github.com/bigcommerce/paper/pull/132) which has fixes for
197 cdn and stylesheet helpers.
198
199## 3.0.0-rc.2 (2018-01-31)
200- Remove access to siteSettings and themeSettings, use accessors instead [#131](https://github.com/bigcommerce/paper/pull/131)
201
202## 3.0.0-rc.1 (2018-01-24)
203- Major refactor, moving rendering functionality into paper-handlebars [#130](https://github.com/bigcommerce/paper/pull/130) to
204allow for alternate template engines.
205
206v3.0 Contains several breaking changes:
207- Removed the direct access of `contentServiceContext` for setting page content. From now on, use `setContent()`
208 and `getContent()`.
209- Removed direct access of `siteSettings` and `themeSettings`. From now on, use `getSiteSettings()`, `setSiteSettings()`,
210 `getThemeSettings()`, and `setThemeSettings()` if you need to get/set these values after calling the constructor.
211- Removed `getTemplateProcessor()`. This is an internal concern of `paper-handlebars` and is used by `loadTemplates`.
212- Removed `loadTemplatesSync()`. This was only used by helper tests and is no longer needed.
213- Removed `handlebars` instance variable. Hopefully nobody is accessing that directly. Any helpers that were accessing
214 it have been updated in `paper-handlebars` to use the global context they are given rather than accessing Paper
215 directly at all.
216- The `translator` attribute has been moved to `paper-handlebars` and is no longer accessible directly on Paper.
217- The `decorators` attribute has been moved to `paper-handlebars` and is no longer accessible directly on Paper.
218- The `settings` attribute has been renamed to `siteSettings`. This should only be accessed by `paper-handlebars`.
219- The `cdnify()` function has been moved into a helper library in `paper-handlebars`.
220- The `inject` attribute has been removed. This is storage used by two of the helpers, and the implementation has
221 moved to `paper-handlebars`.
222
223## 2.0.9 (2018-08-14)
224- Add `gtnum` support to `if` helper [#138](https://github.com/bigcommerce/paper/pull/138)
225
226## 2.0.8 (2018-05-09)
227- Add resourceHints helper [#133](https://github.com/bigcommerce/paper/pull/133)
228
229## 2.0.7 (2017-10-17)
230- Always render region wrapper even if no content is present [#128](https://github.com/bigcommerce/paper/pull/128)
231
232## 2.0.6 (2017-09-20)
233- Fix a bug in the `replace` helper [#127](https://github.com/bigcommerce/paper/pull/127)
234
235## 2.0.5 (2017-09-15)
236- Added support to use operators in the `unless` helper [#126](https://github.com/bigcommerce/paper/pull/126)
237- Fix a bug in the `replace` helper [#125](https://github.com/bigcommerce/paper/pull/125)
238
239## 2.0.4 (2017-08-21)
240- Lodash deprecated method replaced [#121](https://github.com/bigcommerce/paper/pull/121)
241- Added a test to `first` helper [#120](https://github.com/bigcommerce/paper/pull/120)
242
243## 2.0.3 (2017-06-21)
244- Add `region` helper to render content blocks [#118](https://github.com/bigcommerce/paper/pull/118)
245
246## 2.0.2 (2017-04-20)
247- Bug fix in the `stylesheet` helper [#116](https://github.com/bigcommerce/paper/pull/116)
248
249## 2.0.1 (2017-04-12)
250- Adds the `{{thumbnailImage}}` helper and removes the non-existent `{{thumbnail}}` helper [#114](https://github.com/bigcommerce/paper/pull/114)
251
252## 2.0.0 (2017-04-11)
253- Remove configId from cdn/assets urls for preventing busting the cached assets when configId changes [#112](https://github.com/bigcommerce/paper/pull/112)
254- Update docs to describe the interface required by paper for assembler and callbacks [#111](https://github.com/bigcommerce/paper/pull/111)
255- Adds and exposes the helpers we've selected from the handlebars-helpers library [#110](https://github.com/bigcommerce/paper/pull/110)
256
257## 1.2.0 (2017-02-23)
258- Add a helper that can truncate text. [#106](https://github.com/bigcommerce/paper/pull/106), [#108](https://github.com/bigcommerce/paper/pull/108)
259- Add a helper that can render language strings as a JSON object. [#103](https://github.com/bigcommerce/paper/pull/103)
260- Fix an issue where language strings may not be formatted properly (i.e.: pluralization and gender) when they are cascaded. [#103](https://github.com/bigcommerce/paper/pull/103)